generated from atinux/atidone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
47 lines (42 loc) · 973 Bytes
/
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
43
44
45
46
47
<!--
* @Author: suk.bear [email protected]
* @Date: 2024-05-09 18:53:01
* @LastEditors: suk.bear [email protected]
* @LastEditTime: 2024-05-13 10:36:02
* @FilePath: /nuxt-todos-edge/app.vue
* @Description: app.vue
-->
<script setup>
const { loggedIn } = useUserSession()
watch(loggedIn, () => {
if (!loggedIn.value) {
navigateTo('/')
}
})
useHead({
htmlAttrs: { lang: 'en' },
link: [{ rel: 'icon', href: '/favicon-mi.ico' }]
})
useSeoMeta({
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
title: 'Anya Forger',
description:
'You either earn or learn.',
ogImage: '/social-image.png',
twitterImage: '/social-image.png',
twitterCard: 'summary_large_image'
})
</script>
<template>
<div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UNotifications />
</div>
</template>
<style lang="postcss">
body {
@apply font-sans text-gray-950 bg-gray-50 dark:bg-gray-950 dark:text-gray-50;
}
</style>