From 298df91f8d90565ddb86aa47d6fd525ae5eaeb44 Mon Sep 17 00:00:00 2001 From: Shigma Date: Wed, 15 May 2024 02:29:01 +0800 Subject: [PATCH] refa: rename config to manager --- .../client/components/forks.vue | 0 .../client/components/group.vue | 0 .../client/components/index.vue | 0 .../client/components/plugin.vue | 0 .../client/components/select.vue | 0 .../client/components/tree.vue | 0 .../client/icons/add-group.vue | 0 .../client/icons/add-plugin.vue | 0 .../{config => manager}/client/icons/check.vue | 0 .../{config => manager}/client/icons/clone.vue | 0 .../{config => manager}/client/icons/index.ts | 0 .../{config => manager}/client/icons/manage.vue | 0 .../{config => manager}/client/icons/play.vue | 0 .../{config => manager}/client/icons/plugin.vue | 0 .../{config => manager}/client/icons/save.vue | 0 .../{config => manager}/client/icons/stop.vue | 0 .../client/icons/trash-can.vue | 0 plugins/{config => manager}/client/index.scss | 0 plugins/{config => manager}/client/index.ts | 2 +- plugins/{config => manager}/client/tsconfig.json | 0 plugins/{config => manager}/package.json | 15 ++++++++------- plugins/{config => manager}/src/browser.ts | 0 plugins/{config => manager}/src/index.ts | 0 plugins/{config => manager}/src/shared.ts | 2 +- plugins/{config => manager}/tsconfig.json | 0 plugins/notifier/client/config.vue | 2 +- plugins/notifier/package.json | 15 ++++++--------- plugins/notifier/src/index.ts | 16 ++++++---------- 28 files changed, 23 insertions(+), 29 deletions(-) rename plugins/{config => manager}/client/components/forks.vue (100%) rename plugins/{config => manager}/client/components/group.vue (100%) rename plugins/{config => manager}/client/components/index.vue (100%) rename plugins/{config => manager}/client/components/plugin.vue (100%) rename plugins/{config => manager}/client/components/select.vue (100%) rename plugins/{config => manager}/client/components/tree.vue (100%) rename plugins/{config => manager}/client/icons/add-group.vue (100%) rename plugins/{config => manager}/client/icons/add-plugin.vue (100%) rename plugins/{config => manager}/client/icons/check.vue (100%) rename plugins/{config => manager}/client/icons/clone.vue (100%) rename plugins/{config => manager}/client/icons/index.ts (100%) rename plugins/{config => manager}/client/icons/manage.vue (100%) rename plugins/{config => manager}/client/icons/play.vue (100%) rename plugins/{config => manager}/client/icons/plugin.vue (100%) rename plugins/{config => manager}/client/icons/save.vue (100%) rename plugins/{config => manager}/client/icons/stop.vue (100%) rename plugins/{config => manager}/client/icons/trash-can.vue (100%) rename plugins/{config => manager}/client/index.scss (100%) rename plugins/{config => manager}/client/index.ts (99%) rename plugins/{config => manager}/client/tsconfig.json (100%) rename plugins/{config => manager}/package.json (81%) rename plugins/{config => manager}/src/browser.ts (100%) rename plugins/{config => manager}/src/index.ts (100%) rename plugins/{config => manager}/src/shared.ts (98%) rename plugins/{config => manager}/tsconfig.json (100%) diff --git a/plugins/config/client/components/forks.vue b/plugins/manager/client/components/forks.vue similarity index 100% rename from plugins/config/client/components/forks.vue rename to plugins/manager/client/components/forks.vue diff --git a/plugins/config/client/components/group.vue b/plugins/manager/client/components/group.vue similarity index 100% rename from plugins/config/client/components/group.vue rename to plugins/manager/client/components/group.vue diff --git a/plugins/config/client/components/index.vue b/plugins/manager/client/components/index.vue similarity index 100% rename from plugins/config/client/components/index.vue rename to plugins/manager/client/components/index.vue diff --git a/plugins/config/client/components/plugin.vue b/plugins/manager/client/components/plugin.vue similarity index 100% rename from plugins/config/client/components/plugin.vue rename to plugins/manager/client/components/plugin.vue diff --git a/plugins/config/client/components/select.vue b/plugins/manager/client/components/select.vue similarity index 100% rename from plugins/config/client/components/select.vue rename to plugins/manager/client/components/select.vue diff --git a/plugins/config/client/components/tree.vue b/plugins/manager/client/components/tree.vue similarity index 100% rename from plugins/config/client/components/tree.vue rename to plugins/manager/client/components/tree.vue diff --git a/plugins/config/client/icons/add-group.vue b/plugins/manager/client/icons/add-group.vue similarity index 100% rename from plugins/config/client/icons/add-group.vue rename to plugins/manager/client/icons/add-group.vue diff --git a/plugins/config/client/icons/add-plugin.vue b/plugins/manager/client/icons/add-plugin.vue similarity index 100% rename from plugins/config/client/icons/add-plugin.vue rename to plugins/manager/client/icons/add-plugin.vue diff --git a/plugins/config/client/icons/check.vue b/plugins/manager/client/icons/check.vue similarity index 100% rename from plugins/config/client/icons/check.vue rename to plugins/manager/client/icons/check.vue diff --git a/plugins/config/client/icons/clone.vue b/plugins/manager/client/icons/clone.vue similarity index 100% rename from plugins/config/client/icons/clone.vue rename to plugins/manager/client/icons/clone.vue diff --git a/plugins/config/client/icons/index.ts b/plugins/manager/client/icons/index.ts similarity index 100% rename from plugins/config/client/icons/index.ts rename to plugins/manager/client/icons/index.ts diff --git a/plugins/config/client/icons/manage.vue b/plugins/manager/client/icons/manage.vue similarity index 100% rename from plugins/config/client/icons/manage.vue rename to plugins/manager/client/icons/manage.vue diff --git a/plugins/config/client/icons/play.vue b/plugins/manager/client/icons/play.vue similarity index 100% rename from plugins/config/client/icons/play.vue rename to plugins/manager/client/icons/play.vue diff --git a/plugins/config/client/icons/plugin.vue b/plugins/manager/client/icons/plugin.vue similarity index 100% rename from plugins/config/client/icons/plugin.vue rename to plugins/manager/client/icons/plugin.vue diff --git a/plugins/config/client/icons/save.vue b/plugins/manager/client/icons/save.vue similarity index 100% rename from plugins/config/client/icons/save.vue rename to plugins/manager/client/icons/save.vue diff --git a/plugins/config/client/icons/stop.vue b/plugins/manager/client/icons/stop.vue similarity index 100% rename from plugins/config/client/icons/stop.vue rename to plugins/manager/client/icons/stop.vue diff --git a/plugins/config/client/icons/trash-can.vue b/plugins/manager/client/icons/trash-can.vue similarity index 100% rename from plugins/config/client/icons/trash-can.vue rename to plugins/manager/client/icons/trash-can.vue diff --git a/plugins/config/client/index.scss b/plugins/manager/client/index.scss similarity index 100% rename from plugins/config/client/index.scss rename to plugins/manager/client/index.scss diff --git a/plugins/config/client/index.ts b/plugins/manager/client/index.ts similarity index 99% rename from plugins/config/client/index.ts rename to plugins/manager/client/index.ts index d86df00..6271f19 100644 --- a/plugins/config/client/index.ts +++ b/plugins/manager/client/index.ts @@ -21,7 +21,7 @@ declare module '@cordisjs/client' { export const coreDeps = [ '@cordisjs/plugin-webui', - '@cordisjs/plugin-config', + '@cordisjs/plugin-manager', '@cordisjs/plugin-server', ] diff --git a/plugins/config/client/tsconfig.json b/plugins/manager/client/tsconfig.json similarity index 100% rename from plugins/config/client/tsconfig.json rename to plugins/manager/client/tsconfig.json diff --git a/plugins/config/package.json b/plugins/manager/package.json similarity index 81% rename from plugins/config/package.json rename to plugins/manager/package.json index 8943ae6..1af9f9c 100644 --- a/plugins/config/package.json +++ b/plugins/manager/package.json @@ -1,7 +1,7 @@ { - "name": "@cordisjs/plugin-config", + "name": "@cordisjs/plugin-manager", "description": "Manage your bots and plugins with console", - "version": "2.8.6", + "version": "0.1.0", "type": "module", "exports": { ".": { @@ -14,6 +14,7 @@ "default": "./lib/shared.js" }, "./src/*": "./src/*", + "./client": "./client/index.ts", "./package.json": "./package.json" }, "files": [ @@ -42,7 +43,7 @@ "dist" ], "description": { - "en": "Configure your plugins with WebUI", + "en": "Manage your plugins with WebUI", "zh": "使用控制台查看、配置你的插件" }, "service": { @@ -55,12 +56,12 @@ } }, "peerDependencies": { - "@cordisjs/loader": "^0.9.0", - "@cordisjs/plugin-webui": "^0.1.0", - "cordis": "^3.14.0" + "@cordisjs/loader": "^0.10.0", + "@cordisjs/plugin-webui": "^0.1.1", + "cordis": "^3.15.0" }, "devDependencies": { - "@cordisjs/client": "^0.1.0", + "@cordisjs/client": "^0.1.1", "@cordisjs/plugin-hmr": "^0.2.1" }, "dependencies": { diff --git a/plugins/config/src/browser.ts b/plugins/manager/src/browser.ts similarity index 100% rename from plugins/config/src/browser.ts rename to plugins/manager/src/browser.ts diff --git a/plugins/config/src/index.ts b/plugins/manager/src/index.ts similarity index 100% rename from plugins/config/src/index.ts rename to plugins/manager/src/index.ts diff --git a/plugins/config/src/shared.ts b/plugins/manager/src/shared.ts similarity index 98% rename from plugins/config/src/shared.ts rename to plugins/manager/src/shared.ts index c44b05c..a7406ee 100644 --- a/plugins/config/src/shared.ts +++ b/plugins/manager/src/shared.ts @@ -72,7 +72,7 @@ export abstract class Manager extends Service { super(ctx, 'manager', true) if (!ctx.loader?.writable) { - throw new Error('@cordisjs/plugin-config is only available for json/yaml config file') + throw new Error('@cordisjs/plugin-manager is only available for json/yaml config file') } } diff --git a/plugins/config/tsconfig.json b/plugins/manager/tsconfig.json similarity index 100% rename from plugins/config/tsconfig.json rename to plugins/manager/tsconfig.json diff --git a/plugins/notifier/client/config.vue b/plugins/notifier/client/config.vue index 172363c..8fa4939 100644 --- a/plugins/notifier/client/config.vue +++ b/plugins/notifier/client/config.vue @@ -7,7 +7,7 @@