2018-01-09 16:52:26 +00: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 09:57:14 +00:00
|
|
|
import Buefy from 'buefy';
|
2019-09-12 09:34:01 +00:00
|
|
|
import VueI18n from 'vue-i18n';
|
2018-11-06 09:30:27 +00:00
|
|
|
import App from '@/App.vue';
|
|
|
|
import router from '@/router';
|
2019-01-18 13:47:10 +00:00
|
|
|
import { apolloProvider } from './vue-apollo';
|
2019-06-17 15:15:27 +00:00
|
|
|
import { NotifierPlugin } from '@/plugins/notifier';
|
2019-09-09 07:31:08 +00:00
|
|
|
import filters from '@/filters';
|
2019-09-12 09:34:01 +00:00
|
|
|
import messages from '@/i18n/index';
|
2018-12-21 14:41:34 +00:00
|
|
|
|
2018-01-09 16:52:26 +00:00
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
2019-06-17 15:15:27 +00:00
|
|
|
Vue.use(Buefy);
|
|
|
|
Vue.use(NotifierPlugin);
|
2019-09-09 07:31:08 +00:00
|
|
|
Vue.use(filters);
|
2018-12-21 14:41:34 +00:00
|
|
|
|
|
|
|
const language = (window.navigator as any).userLanguage || window.navigator.language;
|
2018-01-09 16:52:26 +00:00
|
|
|
|
2019-09-12 09:34:01 +00:00
|
|
|
Vue.use(VueI18n);
|
2018-07-10 08:00:07 +00:00
|
|
|
|
2019-09-12 09:34:01 +00:00
|
|
|
const i18n = new VueI18n({
|
|
|
|
locale: language.replace('-', '_'), // set locale
|
|
|
|
messages, // set locale messages
|
|
|
|
});
|
2018-01-13 22:33:03 +00:00
|
|
|
|
2018-01-09 16:52:26 +00:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
new Vue({
|
|
|
|
router,
|
2019-03-22 09:57:14 +00:00
|
|
|
apolloProvider,
|
2018-12-21 14:41:34 +00:00
|
|
|
el: '#app',
|
2018-01-09 16:52:26 +00:00
|
|
|
template: '<App/>',
|
|
|
|
components: { App },
|
2019-09-12 09:34:01 +00:00
|
|
|
i18n,
|
2018-01-09 16:52:26 +00:00
|
|
|
});
|