Skip to content

Commit

Permalink
refa: refactor webui to pure esm
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 27, 2024
1 parent 0f8048b commit a9980c7
Show file tree
Hide file tree
Showing 15 changed files with 392 additions and 423 deletions.
1 change: 1 addition & 0 deletions packages/client/client/plugins/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ declare module '../context' {
page(options: Activity.Options): () => void
}

// https://github.com/typescript-eslint/typescript-eslint/issues/6720
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Events<C> {
'activity'(activity: Activity): boolean
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
"dependencies": {
"@cordisjs/components": "1.5.11",
"@maikolib/vite-plugin-yaml": "^1.0.1",
"@satorijs/protocol": "^1.3.0",
"@satorijs/protocol": "^1.3.1",
"@vitejs/plugin-vue": "^4.6.2",
"@vueuse/core": "^10.9.0",
"cac": "^6.7.14",
"cordis": "^3.13.6",
"cordis": "^3.14.0",
"cosmokit": "^1.6.2",
"element-plus": "2.4.0",
"marked-vue": "^1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"vue": "^3"
},
"dependencies": {
"@satorijs/element": "^3.1.6",
"@satorijs/element": "^3.1.7",
"cosmokit": "^1.6.2",
"schemastery-vue": "^7.3.3"
}
Expand Down
34 changes: 0 additions & 34 deletions packages/core/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions packages/core/tsconfig.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Schema } from 'cordis'
import { makeArray } from 'cosmokit'
import { Console, Entry } from '@cordisjs/webui'
import { Console, Entry } from './shared/index.ts'
import {} from '@cordisjs/loader'

export * from '@cordisjs/webui'
export * from './shared/index.ts'

class BrowserConsole extends Console {
start() {
this.accept(this.ctx.loader[Symbol.for('koishi.socket')])
this.accept(this.ctx.loader[Symbol.for('cordis.webui.socket')])
}

resolveEntry(files: Entry.Files) {
Expand Down
Loading

0 comments on commit a9980c7

Please sign in to comment.