mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00

Add Vueuse core library for useFetch. Get async requests working with the above. Start using Vue's Suspense feature. Make Status its own component. Start adding search results. Continued work on error modal. Add CORS headers to the backend. Remove error store, as we only have one store. Rename favicon.png to favicon.ico. Remove functions from scripts where they are not used. Move functions to where they are used. Lots of WIP.
38 lines
1 KiB
Vue
38 lines
1 KiB
Vue
<script setup>
|
|
import { onMounted } from 'vue'
|
|
import { Modal } from 'bootstrap'
|
|
import { useAppStore } from '@/stores/app.js'
|
|
const store = useAppStore()
|
|
let modal = {}
|
|
onMounted(() => {
|
|
modal = new Modal('#errorModal', {})
|
|
// modal.show()
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="modal"
|
|
id="errorModal"
|
|
data-bs-backdrop="static"
|
|
data-bs-keyboard="false"
|
|
tabindex="-1"
|
|
aria-labelledby="errorModalLabel"
|
|
aria-hidden="true"
|
|
>
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h1 class="modal-title fs-5" id="errorModalLabel">Error</h1>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
{{ store.errorText }}
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|