Skip to content

Commit

Permalink
chore: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jun 17, 2024
1 parent db96a8c commit 5f55653
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 32 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"yakumo": "^1.0.0-beta.16",
"yakumo-esbuild": "^1.0.0-beta.6",
"yakumo-mocha": "^1.0.0-beta.2",
"yakumo-tsc": "^1.0.0-beta.3"
"yakumo-tsc": "^1.0.0-beta.4"
}
}
6 changes: 3 additions & 3 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/client",
"description": "Koishi Console Client",
"version": "0.1.6",
"version": "0.1.8",
"type": "module",
"exports": {
".": "./client/index.ts",
Expand Down Expand Up @@ -46,11 +46,11 @@
"dependencies": {
"@cordisjs/components": "0.1.0",
"@maikolib/vite-plugin-yaml": "^1.0.1",
"@satorijs/protocol": "^1.4.0",
"@satorijs/protocol": "^1.4.1",
"@vitejs/plugin-vue": "^4.6.2",
"@vueuse/core": "^10.9.0",
"cac": "^6.7.14",
"cordis": "^3.16.1",
"cordis": "^3.17.1",
"cosmokit": "^1.6.2",
"element-plus": "2.7.3",
"marked-vue": "^1.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/client/virtual/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ onActivated(() => {
}
})
function onScroll(ev: MouseEvent) {
function onScroll(ev: { scrollTop: number, scrollLeft: number }) {
const offset = Math.ceil(scrollTop = root.value.wrapRef.scrollTop)
const clientLength = Math.ceil(root.value.wrapRef.clientHeight)
const scrollLength = Math.ceil(root.value.wrapRef.scrollHeight)
Expand All @@ -145,7 +145,7 @@ function onScroll(ev: MouseEvent) {
emitEvent(offset, clientLength, scrollLength, ev)
}
function emitEvent(offset: number, clientLength: number, scrollLength: number, ev: MouseEvent) {
function emitEvent(offset: number, clientLength: number, scrollLength: number, ev: { scrollTop: number, scrollLeft: number }) {
emit('scroll', ev, virtual.range)
checkBoundary(true)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"dependencies": {
"@satorijs/element": "^3.1.7",
"cosmokit": "^1.6.2",
"schemastery-vue": "^7.3.3"
"schemastery-vue": "^7.3.4"
}
}
8 changes: 4 additions & 4 deletions plugins/insight/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/plugin-insight",
"description": "Show plugin dependency graph for Cordis",
"version": "3.5.3",
"version": "3.5.4",
"type": "module",
"main": "lib/index.js",
"files": [
Expand Down Expand Up @@ -43,11 +43,11 @@
}
},
"peerDependencies": {
"@cordisjs/plugin-webui": "^0.1.6",
"cordis": "^3.16.1"
"@cordisjs/plugin-webui": "^0.1.8",
"cordis": "^3.17.1"
},
"devDependencies": {
"@cordisjs/client": "^0.1.6",
"@cordisjs/client": "^0.1.8",
"@types/d3-force": "^3.0.9",
"d3-force": "^3.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions plugins/logger/client/logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const logs = computed(() => {
})
async function onTop() {
if (!props.showHistory) return
const keys = Object.keys(data.value).filter(key => !data.value[key]).sort((a, b) => {
return a.slice(0, 11).localeCompare(b.slice(0, 11)) || +a.slice(11) - +b.slice(11)
}).reverse()
Expand Down
10 changes: 5 additions & 5 deletions plugins/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/plugin-logger",
"description": "Logger service for Cordis",
"version": "0.1.0",
"version": "0.1.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -50,12 +50,12 @@
}
},
"peerDependencies": {
"@cordisjs/plugin-webui": "^0.1.7",
"cordis": "^3.16.2"
"@cordisjs/plugin-webui": "^0.1.8",
"cordis": "^3.17.1"
},
"devDependencies": {
"@cordisjs/client": "^0.1.7",
"@cordisjs/plugin-manager": "^0.3.0",
"@cordisjs/client": "^0.1.8",
"@cordisjs/plugin-manager": "^0.3.1",
"ansi_up": "^6.0.2"
},
"dependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/manager/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/plugin-manager",
"description": "Manage your bots and plugins with console",
"version": "0.3.0",
"version": "0.3.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -56,12 +56,12 @@
}
},
"peerDependencies": {
"@cordisjs/plugin-webui": "^0.1.6",
"cordis": "^3.16.1"
"@cordisjs/plugin-webui": "^0.1.8",
"cordis": "^3.17.1"
},
"devDependencies": {
"@cordisjs/client": "^0.1.6",
"@cordisjs/loader": "^0.11.1",
"@cordisjs/client": "^0.1.8",
"@cordisjs/loader": "^0.12.1",
"@cordisjs/plugin-hmr": "^0.2.3"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class NodeManager extends Manager {
} catch (error) {
this.ctx.logger.warn('failed to parse %c', name)
this.ctx.logger.debug(error)
object.runtime = { failed: true }
object.runtime = null
}
this.flushPackage(name)
},
Expand Down
8 changes: 4 additions & 4 deletions plugins/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
}
},
"peerDependencies": {
"@cordisjs/plugin-webui": "^0.1.6",
"cordis": "^3.16.1"
"@cordisjs/plugin-webui": "^0.1.8",
"cordis": "^3.17.1"
},
"devDependencies": {
"@cordisjs/client": "^0.1.6",
"@cordisjs/plugin-manager": "^0.3.0"
"@cordisjs/client": "^0.1.8",
"@cordisjs/plugin-manager": "^0.3.1"
},
"dependencies": {
"@cordisjs/element": "^0.1.0",
Expand Down
10 changes: 5 additions & 5 deletions plugins/webui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/plugin-webui",
"description": "Web User Interface for Koishi",
"version": "0.1.6",
"version": "0.1.8",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -51,17 +51,17 @@
}
},
"peerDependencies": {
"@cordisjs/client": "^0.1.6",
"cordis": "^3.16.1"
"@cordisjs/client": "^0.1.8",
"cordis": "^3.17.1"
},
"peerDependenciesMeta": {
"@cordisjs/client": {
"optional": true
}
},
"devDependencies": {
"@cordisjs/client": "^0.1.6",
"@cordisjs/loader": "^0.11.1",
"@cordisjs/client": "^0.1.8",
"@cordisjs/loader": "^0.12.1",
"@cordisjs/plugin-server": "^0.2.3",
"@maikolib/vite-plugin-yaml": "^1.0.1",
"@types/uuid": "^8.3.4",
Expand Down
5 changes: 4 additions & 1 deletion plugins/webui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ interface HeartbeatConfig {
}

class NodeWebUI extends WebUI<NodeWebUI.Config> {
static inject = ['server']
static inject = {
required: ['server'],
optional: ['webui'], // FIXME
}

public vite!: ViteDevServer
public root: string
Expand Down
5 changes: 5 additions & 0 deletions plugins/webui/src/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ declare module 'cordis' {
export type SocketListener = (this: Client, ...args: any[]) => void

export abstract class WebUI<T = unknown> extends Service<T> {
// FIXME
public inject = {
optional: ['webui'],
}

public id = Math.random().toString(36).slice(2)

readonly entries: Dict<Entry> = Object.create(null)
Expand Down

0 comments on commit 5f55653

Please sign in to comment.