dayzdockerserver/web/docroot/src/main.js
Daniel Ceregatti 29ce456543 Let's just use the store to do all reactivity.
Refactor the DOM to allow for "sections".
Add our start.sh scripts to /usr/local/bin in the image.
Add a config for Vue.
Remove globalproperties, as this...sucks.
2023-08-14 09:10:35 -07:00

25 lines
631 B
JavaScript

import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap'
import 'bootstrap-icons/font/bootstrap-icons.css'
import './css/index.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import {useAppStore} from "@/stores/app";
// Create an instance of our Vue app
const app = createApp(App)
// Add the store
app.use(createPinia())
// A global error handler
app.config.errorHandler = (err, instance, info) => {
const store = useAppStore()
store.errorText = err.message
console.error('GLOBAL ERROR HANDLER! ', err, instance, info)
}
// Mount it
app.mount('#app')