2026-01-24 22:59:20 +00:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import { createPinia } from 'pinia'
|
|
|
|
|
import './style.css'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
2026-03-11 13:45:59 +00:00
|
|
|
import i18n from './i18n'
|
2026-03-21 01:11:05 +00:00
|
|
|
import { useToast } from '@/composables/useToast'
|
2026-01-24 22:59:20 +00:00
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
const pinia = createPinia()
|
|
|
|
|
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
app.use(router)
|
2026-03-11 13:45:59 +00:00
|
|
|
app.use(i18n)
|
2026-01-24 22:59:20 +00:00
|
|
|
|
2026-03-21 01:11:05 +00:00
|
|
|
app.config.errorHandler = (err, _instance, info) => {
|
|
|
|
|
console.error('[Vue Error]', err, info)
|
|
|
|
|
const { error } = useToast()
|
|
|
|
|
error('Something went wrong. Please refresh the page.')
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-24 22:59:20 +00:00
|
|
|
app.mount('#app')
|