diff --git a/packages/auth/package.json b/packages/auth/package.json index 0a82ec0a..7f0aef8e 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-auth", "description": "Console User Authentication", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -15,11 +15,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/auth" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/auth" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/auth.html", "keywords": [ @@ -45,10 +45,10 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/plugin-console": "^4.3.2", "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1" + "@koishijs/client": "^4.3.2" } } diff --git a/packages/chat/package.json b/packages/chat/package.json index 530088c2..d4781c9f 100644 --- a/packages/chat/package.json +++ b/packages/chat/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-chat", "description": "Display and respond to messages for Koishi", - "version": "3.1.0", + "version": "3.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -12,11 +12,11 @@ "license": "AGPL-3.0", "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/chat" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/chat" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/chat.html", "keywords": [ @@ -45,7 +45,7 @@ "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", - "@koishijs/plugin-console": "^4.3.1" + "@koishijs/client": "^4.3.2", + "@koishijs/plugin-console": "^4.3.2" } } diff --git a/packages/client/package.json b/packages/client/package.json index cc8e9da1..b741d73c 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/client", "description": "Koishi Console Client", - "version": "4.3.1", + "version": "4.3.2", "main": "client/index.ts", "files": [ "app", @@ -17,11 +17,11 @@ "license": "AGPL-3.0", "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/client" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/client" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org", "keywords": [ diff --git a/packages/commands/package.json b/packages/commands/package.json index 4429c3a2..ad460f7c 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-commands", "description": "Override Command Config for Koishi", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -39,8 +39,8 @@ "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/client": "^4.3.2", + "@koishijs/plugin-console": "^4.3.2", "@koishijs/plugin-mock": "^2.0.0", "@types/throttle-debounce": "^2.1.0" }, diff --git a/packages/console/package.json b/packages/console/package.json index 641fd717..bb8b9ee2 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-console", "description": "Web User Interface for Koishi", - "version": "4.3.1", + "version": "4.3.2", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -13,11 +13,11 @@ "license": "AGPL-3.0", "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/console" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/console" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/", "keywords": [ @@ -25,7 +25,9 @@ "chatbot", "koishi", "plugin", - "webui" + "frontend", + "webui", + "console" ], "koishi": { "description": { @@ -42,7 +44,7 @@ "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", + "@koishijs/client": "^4.3.2", "@types/uuid": "^8.3.4" }, "dependencies": { diff --git a/packages/dataview/package.json b/packages/dataview/package.json index 8f72b873..1f636456 100644 --- a/packages/dataview/package.json +++ b/packages/dataview/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-dataview", "description": "View Database in Koishi Console", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -15,11 +15,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/dataview" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/dataview" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/dataview.html", "keywords": [ @@ -42,10 +42,10 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/plugin-console": "^4.3.2", "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1" + "@koishijs/client": "^4.3.2" } } diff --git a/packages/insight/package.json b/packages/insight/package.json index 07b39a9c..7e6f1215 100644 --- a/packages/insight/package.json +++ b/packages/insight/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-insight", "description": "Show plugin dependency graph for Koishi", - "version": "3.1.0", + "version": "3.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -15,11 +15,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/insight" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/insight" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/insight.html", "keywords": [ @@ -41,12 +41,12 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/plugin-console": "^4.3.2", "koishi": "^4.8.3" }, "devDependencies": { "@koishijs/cli": "^4.8.3", - "@koishijs/client": "^4.3.1", + "@koishijs/client": "^4.3.2", "@types/d3-force": "^3.0.3", "@types/throttle-debounce": "^2.1.0" }, diff --git a/packages/logger/package.json b/packages/logger/package.json index 2f20ccb9..6e3d4b29 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-logger", "description": "Dump log files for Koishi", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -15,11 +15,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/logger" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/logger" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/logger.html", "keywords": [ @@ -41,11 +41,11 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/plugin-console": "^4.3.2", "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", + "@koishijs/client": "^4.3.2", "@koishijs/cli": "^4.8.3", "ansi_up": "^5.1.0" } diff --git a/packages/market/client/market/index.vue b/packages/market/client/market/index.vue index 6cb769f8..8e36de5c 100644 --- a/packages/market/client/market/index.vue +++ b/packages/market/client/market/index.vue @@ -98,7 +98,7 @@ const packages = computed(() => { return Object.values(store.market.data) .filter(data => words.every(word => validate(data, word))) .filter(item => config.showInstalled || !store.packages[item.name]) - .sort((a, b) => b.popularity - a.popularity) + .sort((a, b) => b.score - a.score) }) diff --git a/packages/market/package.json b/packages/market/package.json index fcc73834..ee51fbf8 100644 --- a/packages/market/package.json +++ b/packages/market/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-market", "description": "Manage your bots and plugins with console", - "version": "1.1.2", + "version": "1.1.3", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -12,11 +12,11 @@ "license": "AGPL-3.0", "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/market" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/market" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/market.html", "keywords": [ @@ -41,16 +41,16 @@ }, "peerDependencies": { "@koishijs/cli": "^4.8.3", - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/plugin-console": "^4.3.2", "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", + "@koishijs/client": "^4.3.2", "@types/cross-spawn": "^6.0.2", "@types/which-pm-runs": "^1.0.0" }, "dependencies": { - "@koishijs/registry": "^2.2.1", + "@koishijs/registry": "^2.2.3", "cross-spawn": "^7.0.3", "ns-require": "^1.1.4", "semver": "^7.3.7", diff --git a/packages/sandbox/package.json b/packages/sandbox/package.json index 0943fad6..3c607921 100644 --- a/packages/sandbox/package.json +++ b/packages/sandbox/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-sandbox", "description": "Test Your Virtual Bot in Console", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -15,11 +15,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/sandbox" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/sandbox" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/sandbox.html", "keywords": [ @@ -47,7 +47,7 @@ "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", - "@koishijs/plugin-console": "^4.3.1" + "@koishijs/client": "^4.3.2", + "@koishijs/plugin-console": "^4.3.2" } } diff --git a/packages/scripts/package.json b/packages/scripts/package.json index acc404ce..56ae0479 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/scripts", "description": "Workspace Scripts for Koishi", - "version": "3.1.0", + "version": "3.2.0", "main": "lib/index.js", "typings": "lib/index.d.ts", "engines": { @@ -31,7 +31,7 @@ "koishi" ], "peerDependencies": { - "@koishijs/client": "^4.3.1" + "@koishijs/client": "^4.3.2" }, "devDependencies": { "@types/cross-spawn": "^6.0.2", diff --git a/packages/scripts/template/client/tsconfig.json b/packages/scripts/template/client/tsconfig.json index 079f39e8..02b01b54 100644 --- a/packages/scripts/template/client/tsconfig.json +++ b/packages/scripts/template/client/tsconfig.json @@ -11,4 +11,4 @@ "include": [ "." ] -} \ No newline at end of file +} diff --git a/packages/scripts/template/src/index.console.ts b/packages/scripts/template/src/index.console.ts index bca61650..0b2ec72f 100644 --- a/packages/scripts/template/src/index.console.ts +++ b/packages/scripts/template/src/index.console.ts @@ -1,9 +1,13 @@ -import { Context } from 'koishi' +import { Context, Schema } from 'koishi' import { resolve } from 'path' import {} from '@koishijs/plugin-console' export const name = '{{name}}' +export interface Config {} + +export const Config: Schema = Schema.object({}) + export function apply(ctx: Context) { ctx.using(['console'], (ctx) => { ctx.console.addEntry({ diff --git a/packages/scripts/template/src/index.default.ts b/packages/scripts/template/src/index.default.ts index f3c887bb..d5dff01d 100644 --- a/packages/scripts/template/src/index.default.ts +++ b/packages/scripts/template/src/index.default.ts @@ -1,7 +1,11 @@ -import { Context } from 'koishi' +import { Context, Schema } from 'koishi' export const name = '{{name}}' +export interface Config {} + +export const Config: Schema = Schema.object({}) + export function apply(ctx: Context) { // write your plugin here } diff --git a/packages/status/package.json b/packages/status/package.json index fe5d4555..f91baa1c 100644 --- a/packages/status/package.json +++ b/packages/status/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-status", "description": "Status view for Koishi", - "version": "6.1.1", + "version": "6.1.2", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -12,11 +12,11 @@ "license": "AGPL-3.0", "repository": { "type": "git", - "url": "git+https://github.com/koishijs/koishi.git", - "directory": "plugins/frontend/status" + "url": "git+https://github.com/koishijs/console.git", + "directory": "packages/status" }, "bugs": { - "url": "https://github.com/koishijs/koishi/issues" + "url": "https://github.com/koishijs/console/issues" }, "homepage": "https://koishi.js.org/plugins/console/status.html", "keywords": [ @@ -42,11 +42,11 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^4.3.1", + "@koishijs/plugin-console": "^4.3.2", "koishi": "^4.8.3" }, "devDependencies": { - "@koishijs/client": "^4.3.1", + "@koishijs/client": "^4.3.2", "@koishijs/cli": "^4.8.3", "echarts": "^5.3.3", "vue-echarts": "^6.2.3"