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';
|
|
|
|
// import * as VueGoogleMaps from 'vue2-google-maps';
|
|
|
|
import VueMarkdown from 'vue-markdown';
|
|
|
|
import Vuetify from 'vuetify';
|
|
|
|
import moment from 'moment';
|
2018-11-06 09:30:27 +00:00
|
|
|
import GetTextPlugin from 'vue-gettext';
|
2018-06-06 15:42:53 +00:00
|
|
|
import 'material-design-icons/iconfont/material-icons.css';
|
2018-01-09 16:52:26 +00:00
|
|
|
import 'vuetify/dist/vuetify.min.css';
|
2018-11-06 09:30:27 +00:00
|
|
|
import App from '@/App.vue';
|
|
|
|
import router from '@/router';
|
|
|
|
// import store from './store';
|
|
|
|
import { createProvider } from './vue-apollo';
|
2018-01-09 16:52:26 +00:00
|
|
|
|
2018-12-21 14:41:34 +00:00
|
|
|
const translations = require('@/i18n/translations.json');
|
|
|
|
|
2018-01-09 16:52:26 +00:00
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
|
|
|
Vue.use(VueMarkdown);
|
|
|
|
Vue.use(Vuetify);
|
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
|
|
|
moment.locale(language);
|
|
|
|
|
|
|
|
Vue.filter('formatDate', value => (value ? moment(String(value)).format('LLLL') : null));
|
2018-06-06 15:42:53 +00:00
|
|
|
Vue.filter('formatDay', value => (value ? moment(String(value)).format('LL') : null));
|
2018-01-09 16:52:26 +00:00
|
|
|
|
2018-11-06 09:30:27 +00:00
|
|
|
Vue.use(GetTextPlugin, {
|
|
|
|
translations,
|
|
|
|
defaultLanguage: 'en_US',
|
2018-07-10 08:00:07 +00:00
|
|
|
});
|
|
|
|
|
2018-11-06 09:30:27 +00:00
|
|
|
Vue.config.language = language.replace('-', '_');
|
2018-01-13 22:33:03 +00:00
|
|
|
|
2018-01-09 16:52:26 +00:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
new Vue({
|
|
|
|
router,
|
2018-12-21 14:41:34 +00:00
|
|
|
el: '#app',
|
2018-01-09 16:52:26 +00:00
|
|
|
template: '<App/>',
|
2018-11-06 09:30:27 +00:00
|
|
|
apolloProvider: createProvider(),
|
2018-01-09 16:52:26 +00:00
|
|
|
components: { App },
|
|
|
|
});
|