ffplayout/layouts/default.vue

41 lines
931 B
Vue
Raw Normal View History

2020-01-29 17:40:15 +01:00
<template>
2023-01-11 10:54:25 +01:00
<main>
<NuxtPage />
<div
v-if="indexStore.showAlert"
class="alert show alert-dismissible fade media-alert"
:class="indexStore.alertVariant"
role="alert"
2020-05-28 10:15:07 +02:00
>
2023-01-11 10:54:25 +01:00
{{ indexStore.alertMsg }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</main>
2020-01-29 17:40:15 +01:00
</template>
2023-01-11 10:54:25 +01:00
<script setup lang="ts">
import { useConfig } from '~/stores/config'
import { useIndex } from '~/stores/index'
2020-05-28 10:15:07 +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
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