Add statistics.

This commit is contained in:
2025-05-13 18:59:23 +08:00
parent f1345f9a0c
commit 12c1e0e413
8 changed files with 98 additions and 28 deletions

View File

@@ -5,6 +5,8 @@ export interface User {
avatar_path: string;
is_admin: boolean;
can_upload: boolean;
uploads_count: number;
comments_count: number;
}
export interface UserWithToken extends User {
@@ -62,6 +64,8 @@ export interface ResourceDetails {
images: Image[];
files: RFile[];
author: User;
views: number;
downloads: number;
}
export interface Storage {