mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 14:51:17 +00:00

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.
25 lines
631 B
JavaScript
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')
|