2018-06-25 18:29:57 +02: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 Vuetify from 'vuetify';
|
|
|
|
import Vue2Leaflet from 'vue2-leaflet';
|
|
|
|
import Vue2LeafletTracksymbol from 'vue2-leaflet-tracksymbol';
|
2018-07-11 01:51:26 +02:00
|
|
|
|
|
|
|
import './css/roboto-fontface.css';
|
|
|
|
import './css/material-icons.css';
|
|
|
|
import 'leaflet/dist/leaflet.css'; // eslint-disable-line import/first
|
|
|
|
import 'vuetify/dist/vuetify.min.css'; // eslint-disable-line import/first
|
|
|
|
|
2018-06-25 18:29:57 +02:00
|
|
|
|
|
|
|
import App from './App.vue';
|
|
|
|
import i18n from './i18n';
|
2018-06-26 11:39:43 +02:00
|
|
|
import router from './router';
|
|
|
|
import store from './store';
|
2018-06-25 18:29:57 +02:00
|
|
|
|
2018-07-10 14:32:48 +02:00
|
|
|
// Ensure locale is correctly set from the store value
|
2018-07-12 17:48:26 +02:00
|
|
|
store.dispatch('setLocale', { locale: store.state.settings.locale });
|
2018-07-10 14:32:48 +02:00
|
|
|
|
2018-06-25 18:29:57 +02:00
|
|
|
Vue.use(Vuetify);
|
|
|
|
|
|
|
|
Vue.component('v-lmap', Vue2Leaflet.LMap);
|
|
|
|
Vue.component('v-ltilelayer', Vue2Leaflet.LTileLayer);
|
|
|
|
Vue.component('v-lmarker', Vue2Leaflet.LMarker);
|
2018-06-27 11:17:38 +02:00
|
|
|
Vue.component('v-lcirclemarker', Vue2Leaflet.LCircleMarker);
|
|
|
|
Vue.component('v-lcircle', Vue2Leaflet.LCircle);
|
2018-06-25 18:29:57 +02:00
|
|
|
Vue.component('v-lpolyline', Vue2Leaflet.LPolyline);
|
|
|
|
Vue.component('v-lts', Vue2LeafletTracksymbol);
|
|
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
|
|
|
/* eslint-disable no-new */
|
|
|
|
new Vue({
|
|
|
|
el: '#app',
|
|
|
|
router,
|
|
|
|
i18n,
|
2018-06-26 11:39:43 +02:00
|
|
|
store,
|
2018-06-25 18:29:57 +02:00
|
|
|
components: { App },
|
|
|
|
template: '<App/>',
|
|
|
|
});
|