opnform/resources/js/app.js

40 lines
866 B
JavaScript
Raw Normal View History

2023-10-14 15:31:30 +00:00
import { createApp, configureCompat, ref } from 'vue'
import { createPinia } from 'pinia'
2022-09-20 19:59:52 +00:00
import router from '~/router'
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'
import '../sass/app.scss'
const pinia = createPinia()
2023-10-14 15:31:30 +00:00
const app = createApp(App)
.use(router)
.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,
INSTANCE_DELETE: false,
ATTR_FALSE_VALUE: false,
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