-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
32 lines (31 loc) · 962 Bytes
/
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
<script lang="ts" setup>
const toggleDarkMode = () => window.darkMode.toggle()
const isDark = usePreferredDark()
</script>
<template>
<NuxtErrorBoundary>
<v-theme-provider :theme="isDark ? 'dark' : 'light'">
<v-sheet class="h-screen">
<v-layout class="h-100">
<v-main class="d-flex flex-column flex-grow-1">
<MyDevice class="flex-shrink-0" />
<v-divider />
<LanDevices class="flex-grow-1" />
<v-divider />
<v-footer class="flex-grow-0 justify-end">
<v-btn
:icon="isDark ? 'mdi-weather-sunny' : 'mdi-weather-night'"
density="comfortable"
flat
@click="toggleDarkMode()"
/>
</v-footer>
</v-main>
</v-layout>
</v-sheet>
</v-theme-provider>
<template #error="{ error }">
{{ error }}
</template>
</NuxtErrorBoundary>
</template>