2018-01-09 17:52:26 +01:00
|
|
|
// The Vue build version to load with the `import` command
|
|
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
|
|
import Vue from 'vue';
|
2019-03-22 10:57:14 +01:00
|
|
|
import Buefy from 'buefy';
|
2019-10-09 17:54:35 +02:00
|
|
|
import Component from 'vue-class-component';
|
2019-11-15 18:36:47 +01:00
|
|
|
import VueScrollTo from 'vue-scrollto';
|
2018-11-06 10:30:27 +01:00
|
|
|
import App from '@/App.vue';
|
|
|
|
import router from '@/router';
|
2019-01-18 14:47:10 +01:00
|
|
|
import { apolloProvider } from './vue-apollo';
|
2019-06-17 17:15:27 +02:00
|
|
|
import { NotifierPlugin } from '@/plugins/notifier';
|
2019-09-09 09:31:08 +02:00
|
|
|
import filters from '@/filters';
|
2019-10-10 16:47:38 +02:00
|
|
|
import VueMeta from 'vue-meta';
|
2019-10-13 13:56:24 +02:00
|
|
|
import { i18n } from '@/utils/i18n';
|
2018-12-21 15:41:34 +01:00
|
|
|
|
2018-01-09 17:52:26 +01:00
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
2019-06-17 17:15:27 +02:00
|
|
|
Vue.use(Buefy);
|
|
|
|
Vue.use(NotifierPlugin);
|
2019-09-09 09:31:08 +02:00
|
|
|
Vue.use(filters);
|
2019-10-10 16:47:38 +02:00
|
|
|
Vue.use(VueMeta);
|
2019-11-15 18:36:47 +01:00
|
|
|
Vue.use(VueScrollTo);
|
2018-12-21 15:41:34 +01:00
|
|
|
|
2019-10-09 17:54:35 +02:00
|
|
|
// Register the router hooks with their names
|
|
|
|
Component.registerHooks([
|
|
|
|
'beforeRouteEnter',
|
|
|
|
'beforeRouteLeave',
|
|
|
|
'beforeRouteUpdate', // for vue-router 2.2+
|
|
|
|
]);
|
|
|
|
|
2018-01-09 17:52:26 +01:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
new Vue({
|
|
|
|
router,
|
2019-03-22 10:57:14 +01:00
|
|
|
apolloProvider,
|
2018-12-21 15:41:34 +01:00
|
|
|
el: '#app',
|
2018-01-09 17:52:26 +01:00
|
|
|
template: '<App/>',
|
|
|
|
components: { App },
|
2019-09-12 11:34:01 +02:00
|
|
|
i18n,
|
2018-01-09 17:52:26 +01:00
|
|
|
});
|