forked from HuakunShen/Notify-Me
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
38 lines (35 loc) · 817 Bytes
/
app.vue
File metadata and controls
38 lines (35 loc) · 817 Bytes
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
<template>
<NuxtLayout
v-if="
config.public.enableUI === undefined || config.public.enableUI === 'true'
"
>
<NuxtPage />
</NuxtLayout>
<div v-else class="h-screen flex justify-center items-center">
<h1 class="text-9xl">404</h1>
</div>
</template>
<script setup lang="ts">
import { setTheme } from "~~/src/util";
const config = useRuntimeConfig();
onMounted(() => {
const theme = localStorage.getItem("theme");
if (!theme) {
localStorage.setItem("theme", "business");
setTheme("business");
} else {
setTheme(theme);
}
});
useHead({
title: "Notify Me",
meta: [
{
name: "description",
content:
"A notification app to send message to yourself. It may look useless, but take a second to imagine some use cases.",
},
],
});
</script>