main.js 839 B

1234567891011121314151617181920212223242526272829303132333435
  1. import Vue from 'vue'
  2. import BootstrapVue from 'bootstrap-vue'
  3. import Meta from 'vue-meta'
  4. import Vue2TouchEvents from 'vue2-touch-events'
  5. import router from './router'
  6. import store from './store'
  7. import App from './App'
  8. Vue.use(BootstrapVue, {
  9. BButton: { pill: true },
  10. BCardHeader: { headerBgVariant: 'white' },
  11. BCardFooter: { footerBgVariant: 'white' }
  12. })
  13. Vue.use(Meta)
  14. Vue.use(Vue2TouchEvents)
  15. // Register global components
  16. const requireComponent = require.context('@/components/globals', true, /\.(js|vue)$/i)
  17. // For each matching file name...
  18. requireComponent.keys().forEach((fileName) => {
  19. // Get the component
  20. const component = requireComponent(fileName).default
  21. // Globally register the component
  22. Vue.component(component.name, component)
  23. })
  24. new Vue({
  25. router,
  26. store,
  27. render: h => h(App)
  28. }).$mount('#app')