forked from KUN1007/kun-galgame-nuxt3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
89 lines (78 loc) · 1.97 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<script setup lang="ts">
const { locale, t } = useI18n()
const colorMode = useColorMode()
const { showKUNGalgamePageTransparency, showKUNGalgameBackgroundBlur } =
storeToRefs(usePersistSettingsStore())
useHead({
htmlAttrs: {
lang: locale.value
},
link: [
{
rel: 'alternative',
href: `https://www.kungal.com/rss/topic.xml?locale=${locale.value}`,
type: 'application/rss+xml',
title: t('head.topicRSS')
},
{
rel: 'feed',
href: `https://www.kungal.com/rss/topic.xml?locale=${locale.value}`,
type: 'application/rss+xml',
title: t('head.topicRSS')
},
{
rel: 'alternative',
href: `https://www.kungal.com/rss/galgame.xml?locale=${locale.value}`,
type: 'application/rss+xml',
title: t('head.galgameRSS')
},
{
rel: 'feed',
href: `https://www.kungal.com/rss/galgame.xml?locale=${locale.value}`,
type: 'application/rss+xml',
title: t('head.galgameRSS')
},
{
rel: 'me',
href: `https://mastodon.social/@kungal`,
type: 'text/html',
title: 'Mastodon'
}
]
})
useSchemaOrg([
defineOrganization({
name: t('head.name'),
url: 'https://kungal.com',
sameAs: ['https://github.com/KUNGalgame']
}),
defineWebSite({ name: t('head.name') }),
defineWebPage()
])
onMounted(() => {
usePersistSettingsStore().setKUNGalgameTransparency(
showKUNGalgamePageTransparency.value,
colorMode.value as 'dark' | 'light'
)
usePersistSettingsStore().setKUNGalgameBackgroundBlur(
showKUNGalgameBackgroundBlur.value
)
})
</script>
<template>
<!-- Global alert component -->
<KunAlert />
<!-- Global info component -->
<KunAlertInfo />
<!-- Global capture component -->
<KunCapture />
<!-- Global Clip component -->
<KunClipper />
<!-- ReplyPanel -->
<LazyTopicReplyPanel />
<NuxtPwaManifest />
<NuxtLoadingIndicator color="var(--kungalgame-blue-5)" />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>