-
Notifications
You must be signed in to change notification settings - Fork 8
/
app.vue
53 lines (40 loc) · 1.23 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
<script setup lang="ts">
import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
const appConfig = useAppConfig()
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false,
})
const twitterSite = appConfig.docs.socials?.twitter || appConfig.docs.socials?.x || undefined
useSeoMeta({
twitterSite: twitterSite ? `@${twitterSite}` : undefined,
})
provide('navigation', navigation)
</script>
<template>
<NuxtLoadingIndicator color="rgb(252,211,77)" />
<AppHeader />
<UMain class="min-h-[calc(100vh-var(--header-height)-78px)]">
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</UMain>
<AppFooter />
<ClientOnly>
<LazyUContentSearch :files="files" :navigation="navigation" />
</ClientOnly>
<UNotifications />
</template>
<style>
code.shiki {
background-color: transparent !important;
}
html.dark .shiki,
html.dark .shiki span {
color: var(--shiki-dark) !important;
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}
</style>