-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapp.vue
50 lines (45 loc) · 1.09 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
<template>
<ConfigProvider :use-id="useIdFunction">
<NuxtLoadingIndicator :color="false" class="z-100 bg-primary80" />
<NuxtPage />
<Toaster />
</ConfigProvider>
</template>
<script setup lang="ts">
import { ConfigProvider } from 'radix-vue';
import Toaster from '@/components/ui/toast/Toaster.vue';
const config = useConfig();
const route = useRoute();
const { themeClass, radius } = useThemes();
const useIdFunction = () => useId();
useSeoMeta({
description: config.value.site.description,
ogDescription: config.value.site.description,
ogImage: config.value.site.ogImage,
twitterCard: 'summary_large_image',
});
useServerHead({
link: [
{
rel: 'stylesheet',
href: 'https://rsms.me/inter/inter.css',
crossorigin: ''
},
{
rel: 'canonical',
href: 'https://docs.heyform.net' + route.path
}
],
htmlAttrs: {
class: themeClass.value,
style: `--radius: ${radius.value}rem;`,
},
script: [
{
src: 'https://analytics.heyform.net/js/script.js',
defer: true,
'data-domain': 'heyform.net',
},
],
});
</script>