index.js 784 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue'
  2. import router from './router'
  3. import store from './store'
  4. // import { sync } from 'vuex-router-sync'
  5. import Meta from 'vue-meta'
  6. import Vue2TouchEvents from 'vue2-touch-events'
  7. import App from './App'
  8. import 'assets/css/mdi/css/materialdesignicons.css'
  9. // import 'mdi/font'
  10. import 'vue-select/src/scss/vue-select.scss'
  11. import 'assets/css/app.scss'
  12. Vue.use(Meta)
  13. Vue.use(Vue2TouchEvents)
  14. // Define the api path regarding the environment
  15. // https://apple.stackexchange.com/questions/17077/add-a-hosts-file-entry-without-jailbreaking
  16. // window.apipath = process.env === 'prod' || window.location.hostname === 'dev.gdp.fr' ? `http://${window.location.hostname}/api` : 'http://localhost:8984'
  17. new Vue({
  18. router,
  19. store,
  20. render: h => h(App)
  21. }).$mount('#app')