-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
61 lines (59 loc) · 1.54 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
<script lang="ts" setup>
import { AppConfigInput } from '@nuxt/schema'
import { AppSetup } from './utils/app'
import { ITheme } from './utils/theme'
AppSetup()
const theme = useState<ITheme>('theme.current')
const locale = useState<string>('locale.setting')
const app = useAppConfig() as AppConfigInput
useHead({
title: app.name,
titleTemplate: '%s - Erganism co-creative marketplace',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'Erganism',
},
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
href: '/logo/apple-touch-icon.png',
type: 'image/x-icon',
rel: 'apple-touch-icon',
},
{
href: '/logo/android-chrome-192x192.png',
type: 'image/x-icon',
rel: 'android-chrome-icon',
},
{
href: '/logo/android-chrome-512x512.png',
type: 'image/x-icon',
rel: 'android-chrome-icon',
},
{
href: '/logo/logo-32x32.png',
type: 'image/x-icon',
},
{
href: '/logo/logo-16x16.png',
type: 'image/x-icon',
},
],
})
</script>
<template>
<Html :class="`${theme === 'dark' ? 'dark' : ''}`" lang="en">
<Body
class="antialiased duration-300 transition-colors text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900 overscroll-y-none"
>
<NuxtLayout>
<NuxtLoadingIndicator :height="5" :duration="3000" :throttle="400" />
<NuxtPage />
</NuxtLayout>
</Body>
</Html>
</template>