From 87e3a4cba23b3a4668edbea341b48b000c07f66e Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Tue, 15 Feb 2022 17:53:55 +0800 Subject: [PATCH] fix(console): use absolute path in index.html --- build/frontend.ts | 1 - packages/create/template/package.json | 2 +- plugins/frontend/auth/package.json | 4 ++-- plugins/frontend/chat/package.json | 4 ++-- plugins/frontend/client/package.json | 2 +- plugins/frontend/commands/package.json | 4 ++-- plugins/frontend/console/package.json | 4 ++-- plugins/frontend/dataview/package.json | 4 ++-- plugins/frontend/insight/package.json | 4 ++-- plugins/frontend/logger/package.json | 4 ++-- plugins/frontend/manager/package.json | 4 ++-- plugins/frontend/status/package.json | 4 ++-- plugins/teach/client/tsconfig.json | 7 +------ plugins/teach/package.json | 3 ++- 14 files changed, 23 insertions(+), 28 deletions(-) diff --git a/build/frontend.ts b/build/frontend.ts index d97730b1e1..f7ff5b8f9c 100644 --- a/build/frontend.ts +++ b/build/frontend.ts @@ -20,7 +20,6 @@ export async function build(root: string, config: vite.UserConfig = {}) { const { rollupOptions = {} } = config.build || {} return vite.build({ root, - base: './', build: { outDir: cwd + '/plugins/frontend/console/dist', emptyOutDir: true, diff --git a/packages/create/template/package.json b/packages/create/template/package.json index 00d1021fe7..90b4393196 100644 --- a/packages/create/template/package.json +++ b/packages/create/template/package.json @@ -16,7 +16,7 @@ "@koishijs/plugin-adapter-discord": "^2.0.3", "@koishijs/plugin-adapter-onebot": "^4.1.0", "@koishijs/plugin-adapter-telegram": "^2.1.1", - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "@koishijs/plugin-dataview": "^1.2.0", "@koishijs/plugin-insight": "^1.2.0", "@koishijs/plugin-logger": "^1.2.0", diff --git a/plugins/frontend/auth/package.json b/plugins/frontend/auth/package.json index 4c8e762dd7..cd76402fdd 100644 --- a/plugins/frontend/auth/package.json +++ b/plugins/frontend/auth/package.json @@ -34,10 +34,10 @@ "required:console" ], "peerDependencies": { - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0" + "@koishijs/client": "^3.0.1" } } diff --git a/plugins/frontend/chat/package.json b/plugins/frontend/chat/package.json index e6a05a82bc..5aeadbe302 100644 --- a/plugins/frontend/chat/package.json +++ b/plugins/frontend/chat/package.json @@ -34,7 +34,7 @@ "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", - "@koishijs/plugin-console": "^3.0.0" + "@koishijs/client": "^3.0.1", + "@koishijs/plugin-console": "^3.0.1" } } diff --git a/plugins/frontend/client/package.json b/plugins/frontend/client/package.json index 625f6a997e..3a12fadab8 100644 --- a/plugins/frontend/client/package.json +++ b/plugins/frontend/client/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/client", "description": "Koishi Console Client", - "version": "3.0.0", + "version": "3.0.1", "main": "client/index.ts", "files": [ "lib", diff --git a/plugins/frontend/commands/package.json b/plugins/frontend/commands/package.json index d640ca9c67..baf3cc28b8 100644 --- a/plugins/frontend/commands/package.json +++ b/plugins/frontend/commands/package.json @@ -36,8 +36,8 @@ "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/client": "^3.0.1", + "@koishijs/plugin-console": "^3.0.1", "@koishijs/plugin-mock": "^1.0.2", "@types/throttle-debounce": "^2.1.0" }, diff --git a/plugins/frontend/console/package.json b/plugins/frontend/console/package.json index 612aeceb9f..3a8fc79690 100644 --- a/plugins/frontend/console/package.json +++ b/plugins/frontend/console/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-console", "description": "A web user interface for Koishi", - "version": "3.0.0", + "version": "3.0.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -34,7 +34,7 @@ "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", + "@koishijs/client": "^3.0.1", "@types/uuid": "^8.3.4" }, "dependencies": { diff --git a/plugins/frontend/dataview/package.json b/plugins/frontend/dataview/package.json index 011cf4200b..328e308004 100644 --- a/plugins/frontend/dataview/package.json +++ b/plugins/frontend/dataview/package.json @@ -34,10 +34,10 @@ "required:database" ], "peerDependencies": { - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0" + "@koishijs/client": "^3.0.1" } } diff --git a/plugins/frontend/insight/package.json b/plugins/frontend/insight/package.json index 7d1d3121f5..d250ca5705 100644 --- a/plugins/frontend/insight/package.json +++ b/plugins/frontend/insight/package.json @@ -33,11 +33,11 @@ "required:console" ], "peerDependencies": { - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", + "@koishijs/client": "^3.0.1", "@types/throttle-debounce": "^2.1.0" }, "dependencies": { diff --git a/plugins/frontend/logger/package.json b/plugins/frontend/logger/package.json index a02a327861..17f8916289 100644 --- a/plugins/frontend/logger/package.json +++ b/plugins/frontend/logger/package.json @@ -33,11 +33,11 @@ "optional:console" ], "peerDependencies": { - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", + "@koishijs/client": "^3.0.1", "@koishijs/cli": "^4.2.1", "ansi_up": "^5.1.0" } diff --git a/plugins/frontend/manager/package.json b/plugins/frontend/manager/package.json index ca99522234..00c97596a4 100644 --- a/plugins/frontend/manager/package.json +++ b/plugins/frontend/manager/package.json @@ -34,11 +34,11 @@ ], "peerDependencies": { "@koishijs/cli": "^4.2.1", - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", + "@koishijs/client": "^3.0.1", "@types/cross-spawn": "^6.0.2" }, "dependencies": { diff --git a/plugins/frontend/status/package.json b/plugins/frontend/status/package.json index 81832c2961..26826dff99 100644 --- a/plugins/frontend/status/package.json +++ b/plugins/frontend/status/package.json @@ -31,11 +31,11 @@ "required:console" ], "peerDependencies": { - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/plugin-console": "^3.0.1", "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/client": "^3.0.0", + "@koishijs/client": "^3.0.1", "@koishijs/cli": "^4.2.1", "echarts": "^5.2.2", "vue-echarts": "^6.0.2" diff --git a/plugins/teach/client/tsconfig.json b/plugins/teach/client/tsconfig.json index 587826d91d..f889ba395c 100644 --- a/plugins/teach/client/tsconfig.json +++ b/plugins/teach/client/tsconfig.json @@ -1,14 +1,9 @@ { - "extends": "../../../tsconfig.base", + "extends": "../../frontend/tsconfig.base", "compilerOptions": { "rootDir": ".", - "noEmit": true, - "target": "es2020", - "module": "esnext", - "emitDeclarationOnly": false, }, "include": [ ".", - "../src", ], } \ No newline at end of file diff --git a/plugins/teach/package.json b/plugins/teach/package.json index 30660c08e4..e7e92a3178 100644 --- a/plugins/teach/package.json +++ b/plugins/teach/package.json @@ -41,7 +41,8 @@ "koishi": "^4.2.1" }, "devDependencies": { - "@koishijs/plugin-console": "^3.0.0", + "@koishijs/client": "^3.0.1", + "@koishijs/plugin-console": "^3.0.1", "@koishijs/plugin-database-memory": "^1.0.1", "@koishijs/plugin-status": "^5.3.0", "@koishijs/plugin-mock": "^1.0.2"