2020-03-20 17:32:05 +08:00
|
|
|
import { Vue, i18n } from './init'
|
2020-03-18 13:42:48 +08:00
|
|
|
import hljs from './hljs'
|
2020-02-11 20:24:56 +08:00
|
|
|
import demoRouterView from './demoRouterView'
|
2020-06-18 01:47:22 +08:00
|
|
|
import naive from '../lib/index'
|
2020-02-11 20:24:56 +08:00
|
|
|
import '../lib/styles/index.css'
|
2020-07-08 23:06:11 +08:00
|
|
|
// import './styles/test-customize-style-scheme.scss' // test
|
2020-06-01 12:38:10 +08:00
|
|
|
import '../lib/styles/fonts/Lato.css'
|
2020-06-01 13:02:22 +08:00
|
|
|
import '../lib/styles/fonts/FiraCode.css'
|
2020-03-20 17:32:05 +08:00
|
|
|
import createRouter from './routes/router'
|
|
|
|
import { routes } from './routes/routes'
|
2020-02-11 20:24:56 +08:00
|
|
|
|
2020-06-18 01:47:22 +08:00
|
|
|
naive.setHljs(hljs)
|
2020-07-08 22:11:02 +08:00
|
|
|
|
|
|
|
Vue.use(naive)
|
|
|
|
|
2020-03-20 17:32:05 +08:00
|
|
|
const router = createRouter(Vue, routes)
|
2020-03-20 17:39:00 +08:00
|
|
|
|
2020-02-11 20:24:56 +08:00
|
|
|
new Vue({
|
|
|
|
...demoRouterView,
|
2020-03-19 18:26:48 +08:00
|
|
|
router,
|
|
|
|
i18n
|
2020-02-11 20:24:56 +08:00
|
|
|
}).$mount('#app')
|