Files
cmms/vue/main.js
T
2026-09-08 23:34:18 +02:00

27 lines
672 B
JavaScript

import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import { routes, handleHotUpdate } from 'vue-router/auto-routes'
import { i18n, setLocale, initialLocale } from './i18n.js'
import '@fortawesome/fontawesome-free/css/all.min.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.bundle.min.js'
import 'vue-multiselect/dist/vue-multiselect.css';
import App from './app.vue'
await setLocale(initialLocale())
const router = createRouter({
history: createWebHashHistory(),
routes,
})
if (import.meta.hot) {
handleHotUpdate(router)
}
createApp(App).use(router).use(i18n).mount('#app')