Add user file statistic.

This commit is contained in:
2025-07-09 17:17:54 +08:00
parent b568b234c4
commit b1d395eac6
4 changed files with 61 additions and 36 deletions

View File

@@ -5,7 +5,8 @@ export interface User {
avatar_path: string;
is_admin: boolean;
can_upload: boolean;
uploads_count: number;
resources_count: number;
files_count: number;
comments_count: number;
bio: string;
}

View File

@@ -89,7 +89,7 @@ function UserCard({ user }: { user: User }) {
<p>
<span className="text-sm font-bold mr-1">
{" "}
{user.uploads_count}
{user.resources_count}
</span>
<span className="text-sm">Resources</span>
<span className="mx-2"></span>