Skip to content

Commit

Permalink
fix(console): use absolute path in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 15, 2022
1 parent 22117d8 commit 87e3a4c
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 28 deletions.
1 change: 0 additions & 1 deletion build/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/create/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions plugins/frontend/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion plugins/frontend/client/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/console/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/dataview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions plugins/frontend/insight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions plugins/frontend/status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 1 addition & 6 deletions plugins/teach/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "../../../tsconfig.base",
"extends": "../../frontend/tsconfig.base",
"compilerOptions": {
"rootDir": ".",
"noEmit": true,
"target": "es2020",
"module": "esnext",
"emitDeclarationOnly": false,
},
"include": [
".",
"../src",
],
}
3 changes: 2 additions & 1 deletion plugins/teach/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 87e3a4c

Please sign in to comment.