feat: update layout and routing structure with theme toggle functionality
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { useTheme } from 'vuetify';
|
||||
import routesLayout from './plugins/routesLayout';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
const theme = useTheme();
|
||||
const route = useRoute();
|
||||
const showDrawer = ref(false);
|
||||
|
||||
function changeTheme() {
|
||||
theme.toggle();
|
||||
@@ -23,20 +27,20 @@ onMounted(() => {
|
||||
/>
|
||||
</template>
|
||||
<template v-slot:prepend>
|
||||
<v-app-bar-nav-icon></v-app-bar-nav-icon>
|
||||
</template>
|
||||
<v-app-bar-nav-icon></v-app-bar-nav-icon>
|
||||
</template>
|
||||
|
||||
<v-app-bar-title class="title">
|
||||
Judoteam - Stadtlohn
|
||||
</v-app-bar-title>
|
||||
|
||||
<v-app-bar-title class="title">Judoteam - Stadtlohn</v-app-bar-title>
|
||||
|
||||
<v-btn icon>
|
||||
<v-icon>mdi-magnify</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon>
|
||||
<v-icon>mdi-heart</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn icon="mdi-brightness-6" @click="changeTheme()"></v-btn>
|
||||
<v-btn icon>
|
||||
<v-icon>mdi-magnify</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon>
|
||||
<v-icon>mdi-heart</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon="mdi-brightness-6" @click="changeTheme()"></v-btn>
|
||||
</v-app-bar>
|
||||
|
||||
<v-main>
|
||||
@@ -45,4 +49,4 @@ onMounted(() => {
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<style scoped></style>
|
||||
8
GUI/src/plugins/routesLayout.ts
Normal file
8
GUI/src/plugins/routesLayout.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export default [
|
||||
{
|
||||
path: "/",
|
||||
name: "Startseite",
|
||||
description: "Übersicht der Anwendung",
|
||||
icon: "mdi-home",
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user