2020-01-29 17:40:15 +01:00
|
|
|
<template>
|
2023-01-11 10:54:25 +01:00
|
|
|
<main>
|
2024-02-16 12:06:15 +01:00
|
|
|
<slot />
|
2023-01-11 10:54:25 +01:00
|
|
|
<div
|
|
|
|
v-if="indexStore.showAlert"
|
2024-02-09 11:21:52 +01:00
|
|
|
class="alert show alert-dismissible fade media-alert position-fixed"
|
2023-01-11 10:54:25 +01:00
|
|
|
:class="indexStore.alertVariant"
|
|
|
|
role="alert"
|
2020-05-28 10:15:07 +02:00
|
|
|
>
|
2023-01-11 10:54:25 +01:00
|
|
|
{{ indexStore.alertMsg }}
|
2024-02-16 12:06:15 +01:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" @click="indexStore.showAlert=false"></button>
|
2023-01-11 10:54:25 +01:00
|
|
|
</div>
|
|
|
|
</main>
|
2020-01-29 17:40:15 +01:00
|
|
|
</template>
|
|
|
|
|
2023-01-11 10:54:25 +01:00
|
|
|
<script setup lang="ts">
|
2023-07-14 13:45:48 +02:00
|
|
|
const { $bootstrap } = useNuxtApp()
|
2023-01-11 10:54:25 +01:00
|
|
|
const configStore = useConfig()
|
|
|
|
const indexStore = useIndex()
|
2020-05-28 10:15:07 +02:00
|
|
|
|
2023-01-11 10:54:25 +01:00
|
|
|
useHead({
|
|
|
|
htmlAttrs: {
|
|
|
|
lang: 'en',
|
|
|
|
"data-bs-theme": "dark"
|
2020-05-28 10:15:07 +02:00
|
|
|
}
|
2023-01-11 10:54:25 +01:00
|
|
|
})
|
2020-04-20 18:06:08 +02:00
|
|
|
|
2023-07-14 13:45:48 +02:00
|
|
|
onMounted(() => {
|
|
|
|
// @ts-ignore
|
|
|
|
new $bootstrap.Tooltip(document.body, {
|
|
|
|
selector: "[data-tooltip=tooltip]",
|
|
|
|
container: "body"
|
|
|
|
})
|
|
|
|
})
|
2023-01-11 10:54:25 +01:00
|
|
|
await configStore.nuxtClientInit()
|
|
|
|
</script>
|
2020-05-28 10:15:07 +02:00
|
|
|
|