VueRouter, Pinia state management, add pages, design preferences page

This commit is contained in:
2024-09-05 17:47:02 +02:00
parent 6464521b04
commit 4662a929a0
20 changed files with 424 additions and 95 deletions

View File

@@ -0,0 +1,35 @@
<script setup lang="ts">
import BannerModel from '@/data/models/bannerModel';
import axios from 'axios';
const alertBanner = defineModel("alertBanner", { required: true, type: BannerModel })
function resetDb() {
axios.get("http://127.0.0.1:3000/api/resetdatabase")
.then(res => {
if (res.status == 200) {
alertBanner.value.show = true
}
})
// todo: Request all data
}
function resetSettings() {
}
</script>
<template>
<v-card title="System Setup" prepend-icon="mdi-engine">
<v-container>
<v-row>
<v-col class="d-flex justify-center align-center">
<v-btn @click="resetDb" color="primary" prepend-icon="mdi-database-refresh">Datenbank zurücksetzen</v-btn>
</v-col>
<v-col class="d-flex justify-center align-center">
<v-btn @click="resetDb" color="primary" prepend-icon="mdi-cog-counterclockwise">Einstellungen zurücksetzen</v-btn>
</v-col>
</v-row>
</v-container>
</v-card>
</template>