add / edit / delete user warrens

This commit is contained in:
2025-07-21 19:27:41 +02:00
parent 50e066f794
commit 2c26002507
86 changed files with 2197 additions and 300 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import type { AuthUser } from '#shared/types/auth';
const session = useAuthSession();
const { user } = defineProps<{
user: AuthUser;
}>();
@@ -12,13 +13,20 @@ const AVATAR =
<template>
<div
class="group/user bg-accent/30 flex cursor-pointer flex-row items-center justify-between gap-4 overflow-hidden rounded-lg p-2 pl-3"
class="group/user bg-accent/30 flex flex-row items-center justify-between gap-4 overflow-hidden rounded-lg p-2 pl-3"
>
<Avatar>
<AvatarImage :src="AVATAR" />
</Avatar>
<div class="flex min-w-0 shrink grow flex-col leading-4">
<span class="truncate text-sm font-medium">{{ user.name }}</span>
<span class="truncate text-sm font-medium">
{{ user.name }}
<span
v-if="user.id === session?.user.id"
class="text-muted-foreground font-normal"
>(You)</span
>
</span>
<span class="text-muted-foreground truncate text-xs">{{
user.email
}}</span>