main.js 777 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
import 'core-js/stable'
import Vue from 'vue'
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
import Toasted from 'vue-toasted'
import VueKeyCloak from '@dsb-norge/vue-keycloak-js'
import App from './App'
import router from './router'
import store from './store'
import '~/plugins'

import '~/assets/scss/custom.scss'

// Install BootstrapVue
Vue.use(BootstrapVue)
// Optionally install the BootstrapVue icon components plugin
Vue.use(IconsPlugin)
Vue.use(Toasted, {
position: 'bottom-center',
duration: 5000
})

Vue.config.performance = true

Vue.use(VueKeyCloak, {
config: process.env.VUE_APP_BASE_URL + '/keycloak',
onReady: (keycloak) => {
/* eslint-disable no-new */
new Vue({
router,
store,
...App
}).$mount('#app')
}
})