2023-10-14 15:31:30 +00:00
|
|
|
import { createApp, configureCompat, ref } from 'vue'
|
2022-09-20 19:59:52 +00:00
|
|
|
import store from '~/store'
|
|
|
|
import router from '~/router'
|
2023-01-21 11:57:37 +00:00
|
|
|
import App from '~/components/App.vue'
|
|
|
|
import Base from './base.js'
|
2023-10-19 08:46:04 +00:00
|
|
|
import registerPlugin from './plugins'
|
2022-09-20 19:59:52 +00:00
|
|
|
|
|
|
|
import '~/plugins'
|
|
|
|
import '~/components'
|
|
|
|
|
2023-01-21 11:57:37 +00:00
|
|
|
import '../sass/app.scss'
|
|
|
|
|
2023-10-14 15:31:30 +00:00
|
|
|
const app = createApp(App)
|
|
|
|
.use(router)
|
|
|
|
.use(store)
|
|
|
|
.mixin(Base)
|
2022-09-20 19:59:52 +00:00
|
|
|
|
2023-10-14 15:31:30 +00:00
|
|
|
registerPlugin(app)
|
2022-09-20 19:59:52 +00:00
|
|
|
|
2023-10-14 15:31:30 +00:00
|
|
|
configureCompat({
|
|
|
|
// default everything to Vue 2 behavior
|
|
|
|
MODE: 2
|
2022-09-20 19:59:52 +00:00
|
|
|
})
|
2023-10-14 15:31:30 +00:00
|
|
|
|
|
|
|
router.app = app
|
2023-10-14 16:24:44 +00:00
|
|
|
router.isReady().then(() => app.mount('#app'))
|
2023-10-14 15:31:30 +00:00
|
|
|
|
|
|
|
export default app
|