mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-12 16:59:01 +08:00
42 lines
920 B
JavaScript
42 lines
920 B
JavaScript
import '@babel/polyfill'
|
|
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import svgSpriteLoader from 'helpers/svg-sprite-loader'
|
|
import App from 'Components/App'
|
|
import RouteDefault from 'Components/Routes/Default'
|
|
import RouteBubbleNavigation from 'Components/Routes/BubbleNavigation'
|
|
import RouteLinks from 'Components/Routes/Links'
|
|
|
|
const __svg__ = { path: './assets/images/icons/*.svg', name: 'assets/images/[hash].sprite.svg' }
|
|
svgSpriteLoader(__svg__.filename)
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: RouteDefault,
|
|
},
|
|
{
|
|
path: '/bubble-navigation',
|
|
component: RouteBubbleNavigation,
|
|
},
|
|
{
|
|
path: '/links',
|
|
component: RouteLinks,
|
|
},
|
|
]
|
|
|
|
const router = new VueRouter({
|
|
routes,
|
|
linkActiveClass: 'is-active',
|
|
linkExactActiveClass: 'is-exact-active',
|
|
})
|
|
|
|
new Vue({
|
|
router,
|
|
render: h => h(App),
|
|
}).$mount('#app')
|