forked from torrust/torrust-index-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
38 lines (32 loc) · 1.12 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
<template>
<div class="flex flex-col" style="min-height: 100vh;">
<DemoBanner />
<Notifications />
<NavigationBar />
<div class="flex flex-col w-full px-4 md:px-8 lg:px-24">
<div class="flex flex-col my-6" style="max-width: 100vw;">
<NuxtPage />
</div>
</div>
<div class="flex-grow" />
<footer class="p-4 footer footer-center text-base-content">
<div>
<p><a target="_blank" href="https://torrust.com" class="link link-hover"> Powered by Torrust </a> ⚡ <a target="_self" href="/license" class="link link-hover">Copyright © 2024</a> <a target="_self" href="/terms" class="link link-hover">Terms</a></p>
</div>
</footer>
</div>
</template>
<script setup lang="ts">
import { getCategories, getSettings, getTags, getUser, onBeforeMount, onMounted } from "#imports";
import Notifications from "~/components/Notifications.vue";
import DemoBanner from "~/components/demo/Banner.vue";
onBeforeMount(() => {
getUser();
getSettings();
getTags();
getCategories();
});
onMounted(() => {
document.querySelector("html").classList.add("bg-base-300");
});
</script>