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 },
    }
] 