Skip to content
Snippets Groups Projects
main.js 682 B
Newer Older
const axios = require("axios")
Timothee P's avatar
Timothee P committed
import Vue from 'vue'
Timothee P's avatar
Timothee P committed
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
DESPRES Damien's avatar
DESPRES Damien committed
import 'leaflet/dist/leaflet.css';
import 'leaflet-draw/dist/leaflet.draw.css';
import '@/assets/resources/leaflet-control-geocoder-1.13.0/Control.Geocoder.css';
Timothee P's avatar
Timothee P committed
Vue.config.productionTip = false

axios.all([store.dispatch("USER_INFO"),
store.dispatch("GET_ALL_PROJECTS"),
store.dispatch("GET_STATIC_PAGES"),
store.dispatch("GET_USER_LEVEL_PROJECTS") // * mock en attendant endpoint ou autre
]).then(axios.spread(function () {
  new Vue({
    router,
    store,
    render: h => h(App)
  }).$mount('#app')