feat: some fixes to the ui, imlemented user and guest user, ans used the dahboard

This commit is contained in:
2026-08-16 16:24:25 +02:00
parent 4639baa9ae
commit 50e9fbd0b0
37 changed files with 1657 additions and 194 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ 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';
import type { BreadcrumbItem, NavItem, User } from '@/types';
type Props = {
breadcrumbs?: BreadcrumbItem[];
@@ -47,7 +47,7 @@ const props = withDefaults(defineProps<Props>(), {
});
const page = usePage();
const auth = computed(() => page.props.auth);
const auth = computed(() => page.props.auth as { user: User });
const { isCurrentUrl, whenCurrentUrl } = useCurrentUrl();
const activeItemStyles =
+2 -1
View File
@@ -15,9 +15,10 @@ import {
} from '@/components/ui/sidebar';
import UserInfo from '@/components/UserInfo.vue';
import UserMenuContent from '@/components/UserMenuContent.vue';
import type { User } from '@/types';
const page = usePage();
const user = computed(() => page.props.auth.user);
const user = computed(() => page.props.auth.user as User);
const { isMobile, state } = useSidebar();
</script>