From af10bd234a299c2900b12da636ebf0700526eaed Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Sat, 7 May 2022 22:51:40 +0800 Subject: [PATCH] feat(manager): support non-plugin deps --- docs/.vuepress/layouts/home/screen-6.vue | 6 +- packages/core/src/app.ts | 3 +- .../frontend/manager/client/deps/index.vue | 13 ++-- .../frontend/manager/client/deps/package.vue | 48 ++++++++------- plugins/frontend/manager/client/index.ts | 2 +- plugins/frontend/manager/client/utils.ts | 10 ++-- plugins/frontend/manager/src/installer.ts | 59 +++++++++++-------- 7 files changed, 80 insertions(+), 61 deletions(-) diff --git a/docs/.vuepress/layouts/home/screen-6.vue b/docs/.vuepress/layouts/home/screen-6.vue index 4ab60b4b26..2fa8381219 100644 --- a/docs/.vuepress/layouts/home/screen-6.vue +++ b/docs/.vuepress/layouts/home/screen-6.vue @@ -74,7 +74,11 @@ function getSidebarItems(route: string) { } &.api { - @media (max-width: 1200px) or (max-height: 800px) { + @media (max-width: 1200px) { + display: none; + } + + @media (max-height: 800px) { display: none; } } diff --git a/packages/core/src/app.ts b/packages/core/src/app.ts index fbc1eac4b4..731091c72d 100644 --- a/packages/core/src/app.ts +++ b/packages/core/src/app.ts @@ -34,8 +34,7 @@ export class App extends Context { public options: App.Config public isActive = false public registry = new Plugin.Registry() - - private _nameRE: RegExp + public _nameRE: RegExp constructor(options: App.Config = {}) { super(() => true) diff --git a/plugins/frontend/manager/client/deps/index.vue b/plugins/frontend/manager/client/deps/index.vue index 58955e62b1..3e6c6142ed 100644 --- a/plugins/frontend/manager/client/deps/index.vue +++ b/plugins/frontend/manager/client/deps/index.vue @@ -1,7 +1,7 @@