2020-10-08 04:14:14 +08:00
|
|
|
import { createApp } from 'vue'
|
2021-03-30 02:25:22 +08:00
|
|
|
import naive, { NThemeEditor } from '../src/index'
|
2021-02-17 23:31:56 +08:00
|
|
|
import { installDemoComponents } from './setup'
|
2021-01-13 12:01:02 +08:00
|
|
|
import SiteRoot from './SiteRoot.vue'
|
2022-01-05 02:20:22 +08:00
|
|
|
import { routes } from './routes/routes'
|
2020-10-08 04:14:14 +08:00
|
|
|
import createDemoRouter from './routes/router'
|
2019-06-03 13:47:12 +08:00
|
|
|
|
2021-01-13 12:01:02 +08:00
|
|
|
const app = createApp(SiteRoot)
|
2020-10-08 04:14:14 +08:00
|
|
|
|
|
|
|
const router = createDemoRouter(app, routes)
|
|
|
|
|
|
|
|
app.use(router)
|
|
|
|
app.use(naive)
|
2021-03-30 02:25:22 +08:00
|
|
|
app.component('NThemeEditor', NThemeEditor)
|
2020-10-08 04:14:14 +08:00
|
|
|
installDemoComponents(app)
|
2020-07-08 21:57:07 +08:00
|
|
|
|
2021-02-22 17:53:01 +08:00
|
|
|
router.isReady().then(() => {
|
|
|
|
app.mount('#app')
|
|
|
|
})
|