Skip to content

Commit

Permalink
refa: async component k-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 7, 2022
1 parent eb3b81f commit 1c49262
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions build/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export async function build(root: string, config: vite.UserConfig) {
build: {
outDir: '../dist',
emptyOutDir: true,
cssCodeSplit: false,
...config.build,
rollupOptions: {
...rollupOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"dependencies": {
"@koishijs/utils": "^5.0.0",
"fastest-levenshtein": "^1.0.12",
"schemastery": "^2.3.0"
"schemastery": "^2.4.0"
}
}
2 changes: 1 addition & 1 deletion plugins/frontend/components/client/common/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</span>
<input
autocomplete="off"
step="0.00001"
step="any"
:value="value"
:type="type"
:style="inputStyle"
Expand Down
2 changes: 0 additions & 2 deletions plugins/frontend/components/client/layout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import CardAside from './card-aside.vue'
import CardNumeric from './card-numeric.vue'
import Card from './card.vue'
import Content from './content.vue'
import Markdown from './markdown.vue'
import TabGroup from './tab-group.vue'
import TabItem from './tab-item.vue'

Expand All @@ -12,7 +11,6 @@ export default function (app: App) {
app.component('k-card-numeric', CardNumeric)
app.component('k-card', Card)
app.component('k-content', Content)
app.component('k-markdown', Markdown)
app.component('k-tab-group', TabGroup)
app.component('k-tab-item', TabItem)
}
4 changes: 1 addition & 3 deletions plugins/frontend/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"vue": "^3.2.21"
},
"devDependencies": {
"@types/marked": "^4.0.1",
"marked": "^4.0.10",
"schemastery": "^2.3.0"
"schemastery": "^2.4.0"
}
}
3 changes: 2 additions & 1 deletion plugins/frontend/console/client/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-undef */

import { createApp } from 'vue'
import { createApp, defineAsyncComponent } from 'vue'
import { connect, router, config } from './client'
import Collapse from './components/collapse.vue'
import View from './components/view'
Expand All @@ -25,6 +25,7 @@ app.use(client)

app.component('k-collapse', Collapse)
app.component('k-view', View)
app.component('k-markdown', defineAsyncComponent(() => import('./components/markdown.vue')))

app.provide('ecTheme', 'dark-blue')

Expand Down
2 changes: 2 additions & 0 deletions plugins/frontend/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
"koishi": "^4.1.2"
},
"devDependencies": {
"@types/marked": "^4.0.1",
"@types/uuid": "^8.3.4",
"@vitejs/plugin-vue": "^2.0.1",
"@vueuse/core": "^7.5.3",
"element-plus": "^1.3.0-beta.5",
"marked": "^4.0.10",
"sass": "^1.48.0",
"vite": "~2.5.10",
"vue": "^3.2.21",
Expand Down

0 comments on commit 1c49262

Please sign in to comment.