2020-07-06 19:08:34 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App.vue'
|
2020-08-29 19:05:56 +02:00
|
|
|
import BootstrapVue from 'bootstrap-vue'
|
|
|
|
|
2020-08-28 18:54:18 +02:00
|
|
|
import i18n from './i18n'
|
2020-08-29 19:05:56 +02:00
|
|
|
import router from './router'
|
2020-08-27 18:30:45 +02:00
|
|
|
import store from './store'
|
2020-07-07 13:48:54 +02:00
|
|
|
|
2020-07-06 19:08:34 +02:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
2020-08-29 19:05:56 +02:00
|
|
|
// Styles are imported in `src/App.vue` <style>
|
2020-12-16 12:10:05 +01:00
|
|
|
Vue.use(BootstrapVue, {
|
|
|
|
BSkeleton: { animation: 'none' },
|
|
|
|
BAlert: { show: true },
|
|
|
|
BBadge: { pill: true },
|
|
|
|
BModal: {
|
|
|
|
bodyBgVariant: 'warning',
|
|
|
|
centered: true,
|
|
|
|
bodyClass: ['font-weight-bold', 'rounded-top']
|
|
|
|
}
|
|
|
|
})
|
2020-08-29 19:05:56 +02:00
|
|
|
|
2020-07-08 14:35:22 +02:00
|
|
|
// Register global components
|
2020-10-23 17:18:34 +02:00
|
|
|
const requireComponent = require.context('@/components/globals', true, /\.(js|vue)$/i)
|
|
|
|
// For each matching file name...
|
|
|
|
requireComponent.keys().forEach((fileName) => {
|
|
|
|
// Get the component
|
|
|
|
const component = requireComponent(fileName).default
|
|
|
|
// Globally register the component
|
2020-07-15 16:39:24 +02:00
|
|
|
Vue.component(component.name, component)
|
2020-10-23 17:18:34 +02:00
|
|
|
})
|
2020-07-08 14:35:22 +02:00
|
|
|
|
2020-07-06 19:08:34 +02:00
|
|
|
new Vue({
|
2020-07-15 16:39:24 +02:00
|
|
|
i18n,
|
|
|
|
router,
|
|
|
|
store,
|
|
|
|
render: h => h(App)
|
2020-07-06 19:08:34 +02:00
|
|
|
}).$mount('#app')
|