feat: add basic admin dashboard

This commit is contained in:
Sonny
2024-05-26 03:18:25 +02:00
committed by Sonny
parent f3f7f6272f
commit 202f70b010
24 changed files with 324 additions and 33 deletions

View File

@@ -10,3 +10,17 @@ type User = {
isAdmin: boolean;
collections: Collection[];
};
type UserWithRelationCount = {
id: number;
email: string;
fullname: string;
avatarUrl: string;
isAdmin: string;
createdAt: string;
updatedAt: string;
count: {
link: number;
collection: number;
};
};

View File

@@ -20,6 +20,8 @@ declare module '@emotion/react' {
darkBlue: string;
darkestBlue: string;
green: string;
lightRed: string;
yellow: string;