All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m8s
35 lines
933 B
Vue
35 lines
933 B
Vue
<template>
|
|
<UApp>
|
|
<NuxtRouteAnnouncer />
|
|
<UNotifications />
|
|
<NuxtPage />
|
|
</UApp>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const { isAuthenticated } = useAuthentik()
|
|
const { inicializar, getCurrentColors } = useColorCustomization()
|
|
|
|
// Inicializar personalización de colores
|
|
onMounted(() => {
|
|
inicializar()
|
|
})
|
|
|
|
// Color de tema reactivo basado en el background del tema actual
|
|
const themeColor = computed(() => getCurrentColors.value.background)
|
|
|
|
// Configurar meta tags para PWA con theme-color reactivo
|
|
useHead({
|
|
link: [
|
|
{ rel: 'manifest', href: '/manifest.webmanifest' },
|
|
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }
|
|
],
|
|
meta: [
|
|
{ name: 'theme-color', content: themeColor },
|
|
{ name: 'mobile-web-app-capable', content: 'yes' },
|
|
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
|
|
{ name: 'apple-mobile-web-app-status-bar-style', content: 'default' }
|
|
]
|
|
})
|
|
</script>
|