-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
42 lines (34 loc) · 1.15 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script setup lang="ts">
useThemeColor()
const date = new Date()
date.setMonth(date.getMonth() + 1)
const warningCookie = useCookie<boolean>('beta-warning', {
sameSite: true,
expires: date,
})
import { provideUseId } from '@headlessui/vue'
provideUseId(() => useId())
import { isIOS } from '@vueuse/core'
const event = useRequestEvent()
if (event?.node.req.headers['user-agent']?.includes('iPhone') || isIOS) {
useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1' },
],
})
}
import { SpeedInsights } from '@vercel/speed-insights/nuxt'
</script>
<template>
<!-- <div v-if="!warningCookie" class="flex gap-1 fixed inset-x-0 top-0 p-3 z-50 text-center font-semibold border-b bg-yellow-50 dark:bg-yellow-950 border-yellow-300 dark:border-yellow-900 text-yellow-800 dark:text-yellow-50">
<span class="w-full">⚠️ {{ $t('general.warning') }}</span>
<button @click="warningCookie = true">❎</button>
</div> -->
<NuxtLoadingIndicator color="#16a34a" :throttle="0" />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<ClientOnly>
<SpeedInsights />
</ClientOnly>
</template>