ffplayout/layouts/default.vue

33 lines
735 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
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-01-11 10:54:25 +01:00
await configStore.nuxtClientInit()
</script>
2020-05-28 10:15:07 +02:00