All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 1m49s
38 lines
688 B
Vue
38 lines
688 B
Vue
<template>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const { c } = useContent()
|
|
const { add } = useToast()
|
|
const shown = useCookie('cookie-toast-shown', { maxAge: 60 * 60 * 24 * 7 })
|
|
|
|
onMounted(() => {
|
|
if (!shown.value) {
|
|
add({
|
|
title: c.value.cookies.title,
|
|
description: c.value.cookies.description,
|
|
timeout: 8000,
|
|
color: 'primary',
|
|
icon: 'i-heroicons-shield-check',
|
|
ui: {
|
|
position: "bottom-center"
|
|
}
|
|
})
|
|
shown.value = true
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style>
|
|
.page-enter-active,
|
|
.page-leave-active {
|
|
transition: opacity 0.15s;
|
|
}
|
|
.page-enter-from,
|
|
.page-leave-to {
|
|
opacity: 0;
|
|
}
|
|
</style> |