2019-06-03 13:47:12 +08:00
|
|
|
|
2020-03-20 17:32:05 +08:00
|
|
|
import { Vue, i18n } from './init'
|
2020-09-04 01:19:54 +08:00
|
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
2020-03-18 13:42:48 +08:00
|
|
|
import hljs from './hljs'
|
2020-09-03 17:02:31 +08:00
|
|
|
import demoRouterView from './DemoRouterView'
|
2020-06-18 01:47:22 +08:00
|
|
|
// import './styles/test-customize-style-scheme.scss' // test customize style scheme
|
2020-06-18 01:33:55 +08:00
|
|
|
import naive from '../src/index'
|
2020-05-16 21:08:06 +08:00
|
|
|
import '../src/_styles/index.scss'
|
2020-06-01 12:38:10 +08:00
|
|
|
import '../src/_styles/fonts/Lato.scss'
|
|
|
|
import '../src/_styles/fonts/FiraCode.scss'
|
2020-03-20 17:32:05 +08:00
|
|
|
import { routes, childRoutes } from './routes/routes'
|
|
|
|
import createRouter from './routes/router'
|
2020-08-04 21:45:05 +08:00
|
|
|
import tusimpleTheme from '../themes/tusimple'
|
2019-06-03 13:47:12 +08:00
|
|
|
|
2020-03-19 18:26:48 +08:00
|
|
|
debugRouteMixin(routes, childRoutes)
|
2020-03-20 17:32:05 +08:00
|
|
|
const router = createRouter(Vue, routes)
|
|
|
|
|
2020-06-18 01:33:55 +08:00
|
|
|
naive.setHljs(hljs)
|
2020-08-04 21:45:05 +08:00
|
|
|
naive.use(tusimpleTheme)
|
2020-02-12 13:44:53 +08:00
|
|
|
|
2020-07-08 21:57:07 +08:00
|
|
|
Vue.use(naive)
|
|
|
|
|
2019-06-26 20:16:11 +08:00
|
|
|
new Vue({
|
2020-01-18 13:33:57 +08:00
|
|
|
...demoRouterView,
|
2020-03-19 18:26:48 +08:00
|
|
|
router,
|
|
|
|
i18n
|
2019-06-26 20:16:11 +08:00
|
|
|
}).$mount('#app')
|