Something went wrong on our end
Forked from
Språksamlingane / beta.ordbok.uib.no
1399 commits behind the upstream repository.
-
Henrik Askjer authoredHenrik Askjer authored
main.js 1.37 KiB
import Vue from 'vue'
import Root from './Root.vue'
import App from './App.vue'
import About from './components/About.vue'
import DictionaryView from './components/DictionaryView.vue'
import VueRouter from 'vue-router'
import { VuePlausible } from 'vue-plausible'
import vuetify from './plugins/vuetify'
import VueSocialSharing from 'vue-social-sharing'
Vue.use(VueSocialSharing);
Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(VuePlausible, {
domain: 'beta.ordbok.uib.no'
})
Vue.$plausible.enableAutoPageviews()
const router = new VueRouter({
mode: 'history',
base: __dirname,
routes: [
{
path: '/',
component: App,
children: [
{
path: 'om',
name: 'about',
component: About
},
{
path: '',
component: DictionaryView,
children: [
{
path: ':lang',
children: [
{
name: 'word',
path: 'w/:word'
},
{
name: 'lookup',
path: ':id(\\d+)/:lemma?'
},
{
name: 'search',
path: 'search/:query'
}
]
}
]
}
]
}
]
})
new Vue({
router,
vuetify,
render: h => h(Root )
}).$mount('#app')