-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
43 lines (39 loc) · 1.02 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 { hasData, load } from "./libs/storage";
const app = useMainStore();
onMounted(() => {
if (hasData()) {
app.setState(load());
document.querySelector("html")?.setAttribute("data-theme", app.theme);
}
});
useHead({
title: "Subscriptions Tracker ⚠️",
meta: [
{ name: "description", content: "Webapp to keep track on subscriptions fees and have some math done for you." },
{ name: "theme-color", content: "#ffffff" },
{ name: "viewport", content: "width=device-width, initial-scale=1.0" },
{ name: "title", content: "Subscriptions Tracker ⚠️" },
],
link: [
{
rel: "icon",
type: "image/svg+xml",
href: "/favicon.svg",
},
],
htmlAttrs: {
lang: "it-IT",
"data-theme": "light",
"class": "bg-base-200"
// class: document && document.documentElement.classList.contains("dark") ? "dark" : "light",
}
})
</script>
<template>
<div class="flex flex-col h-screen">
<Header />
<NuxtPage />
<Footer />
</div>
</template>