mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
28 lines
754 B
JavaScript
28 lines
754 B
JavaScript
|
|
import { Vue, i18n } from './init'
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
|
import hljs from './hljs'
|
|
import demoRouterView from './DemoRouterView'
|
|
// import './styles/test-customize-style-scheme.scss' // test customize style scheme
|
|
import naive from '../src/index'
|
|
import '../src/_styles/index.scss'
|
|
import '../src/_styles/fonts/Lato.scss'
|
|
import '../src/_styles/fonts/FiraCode.scss'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createRouter from './routes/router'
|
|
import tusimpleTheme from '../themes/tusimple'
|
|
|
|
debugRouteMixin(routes, childRoutes)
|
|
const router = createRouter(Vue, routes)
|
|
|
|
naive.setHljs(hljs)
|
|
naive.use(tusimpleTheme)
|
|
|
|
Vue.use(naive)
|
|
|
|
new Vue({
|
|
...demoRouterView,
|
|
router,
|
|
i18n
|
|
}).$mount('#app')
|