Neuaufbau des Repositories

This commit is contained in:
2026-04-13 14:01:19 +02:00
parent 4a7638d5e9
commit 35b5f39843
14 changed files with 494 additions and 13 deletions
+2 -3
View File
@@ -35,7 +35,6 @@ import UserMenuContent from '@/components/UserMenuContent.vue';
import { useCurrentUrl } from '@/composables/useCurrentUrl';
import { getInitials } from '@/composables/useInitials';
import { toUrl } from '@/lib/utils';
import { dashboard } from '@/routes';
import type { BreadcrumbItem, NavItem } from '@/types';
type Props = {
@@ -56,7 +55,7 @@ const activeItemStyles =
const mainNavItems: NavItem[] = [
{
title: 'Dashboard',
href: dashboard(),
href: '/dashboard',
icon: LayoutGrid,
},
];
@@ -146,7 +145,7 @@ const rightNavItems: NavItem[] = [
</Sheet>
</div>
<Link :href="dashboard()" class="flex items-center gap-x-2">
<Link href="/dashboard" class="flex items-center gap-x-2">
<AppLogo />
</Link>
+2 -3
View File
@@ -15,7 +15,6 @@ import {
SidebarMenuButton,
SidebarMenuItem,
} from '@/components/ui/sidebar';
import { dashboard } from '@/routes';
import type { NavItem } from '@/types';
const page = usePage();
@@ -36,7 +35,7 @@ const mainNavItems = computed<NavItem[]>(() => {
const items: NavItem[] = [
{
title: 'Dashboard',
href: dashboard(),
href: '/dashboard',
icon: LayoutGrid,
}
];
@@ -82,7 +81,7 @@ const footerNavItems = computed<NavItem[]>(() => {
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton size="lg" as-child>
<Link :href="dashboard()">
<Link href="/dashboard">
<AppLogo />
</Link>
</SidebarMenuButton>
@@ -12,7 +12,6 @@ import {
CardTitle,
} from '@/components/ui/card';
import { useTwoFactorAuth } from '@/composables/useTwoFactorAuth';
import { regenerateRecoveryCodes } from '@/routes/two-factor';
const { recoveryCodesList, fetchRecoveryCodes, errors } = useTwoFactorAuth();
const isRecoveryCodesVisible = ref<boolean>(false);
@@ -64,7 +63,7 @@ onMounted(async () => {
<Form
v-if="isRecoveryCodesVisible && recoveryCodesList.length"
v-bind="regenerateRecoveryCodes.form()"
action="/user/two-factor-recovery-codes"
method="post"
:options="{ preserveScroll: true }"
@success="fetchRecoveryCodes"