Main Site Work

+ Updatet Router
+ "Hauptseite" mit Großem Bild
This commit is contained in:
2025-11-22 17:04:45 +01:00
parent 30eeaabc5a
commit a118026b04
13 changed files with 97 additions and 40 deletions

View File

@@ -1,8 +1,42 @@
export default [
import Home from '@/routes/Home.vue'
import NotFound from '@/routes/404NotFound.vue'
import type { RouteRecordRaw } from 'vue-router'
export enum Visibility {
Hidden,
Authorized,
Public
}
export interface LayoutRoute {
path: string,
name: string,
description: string,
icon: string,
visible: Visibility,
meta: RouteRecordRaw
}
export const routes: LayoutRoute[] = [
{
path: "/",
name: "Startseite",
description: "Übersicht der Anwendung",
icon: "mdi-home",
visible: Visibility.Public,
meta: {
name: 'Home',
path: '/',
component: Home
}
},
{
path: "/notFound",
name: "Nicht Verfügbar",
description: "Diese Seite wurde nicht gefunden",
icon: "mdi-information-outline",
visible: Visibility.Hidden,
meta: { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
}
]
]