2023-10-14 15:31:30 +00:00
|
|
|
import { createApp, configureCompat, ref } from 'vue'
|
2023-12-01 17:57:14 +00:00
|
|
|
import { createPinia } from 'pinia'
|
2022-09-20 19:59:52 +00:00
|
|
|
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'
|
2023-10-24 09:00:54 +00:00
|
|
|
import { registerComponents } from './components'
|
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-12-01 17:57:14 +00:00
|
|
|
const pinia = createPinia()
|
2023-10-14 15:31:30 +00:00
|
|
|
const app = createApp(App)
|
|
|
|
.use(router)
|
2023-12-01 17:57:14 +00:00
|
|
|
.use(pinia)
|
2023-10-14 15:31:30 +00:00
|
|
|
.mixin(Base)
|
2022-09-20 19:59:52 +00:00
|
|
|
|
2023-10-14 15:31:30 +00:00
|
|
|
registerPlugin(app)
|
2023-10-24 09:00:54 +00:00
|
|
|
registerComponents(app)
|
2022-09-20 19:59:52 +00:00
|
|
|
|
2023-10-14 15:31:30 +00:00
|
|
|
configureCompat({
|
|
|
|
// default everything to Vue 2 behavior
|
2023-10-24 09:00:54 +00:00
|
|
|
MODE: 2,
|
2023-10-28 10:17:50 +00:00
|
|
|
// GLOBAL_MOUNT: false,
|
2023-10-24 09:00:54 +00:00
|
|
|
COMPONENT_V_MODEL: false,
|
|
|
|
INSTANCE_SET: false,
|
2023-12-01 17:57:14 +00:00
|
|
|
INSTANCE_DELETE: false,
|
|
|
|
ATTR_FALSE_VALUE: false,
|
2023-12-01 21:40:54 +00:00
|
|
|
WATCH_ARRAY: false,
|
|
|
|
RENDER_FUNCTION: false,
|
|
|
|
INSTANCE_ATTRS_CLASS_STYLE: false,
|
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
|