-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
43 lines (40 loc) · 1.03 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
<script setup lang="ts">
import { FormProvider } from '@chronicstone/vue-sweettools';
import '@chronicstone/vue-sweettools/dist/style.css';
import AppProvider from './appProvider.vue';
const appStore = useAppStore();
watch(
() => appStore.isDark,
(isDark) => {
if (isDark) document?.querySelector('body')?.classList.add('dark');
else document?.querySelector('body')?.classList.remove('dark');
},
{ immediate: true },
);
</script>
<template>
<n-config-provider
id="appRoot"
class="demo"
:locale="appStore.language"
:theme="appStore.theme"
:theme-overrides="appStore.themeOverrides"
>
<form-provider>
<n-dialog-provider>
<n-message-provider>
<n-notification-provider>
<n-loading-bar-provider>
<AppProvider />
</n-loading-bar-provider>
</n-notification-provider>
</n-message-provider>
</n-dialog-provider>
</form-provider>
</n-config-provider>
</template>
<style>
body {
font-family: 'Lato' !important;
}
</style>