Add activities page.

This commit is contained in:
2025-06-13 19:32:25 +08:00
parent 0b3b54a0c4
commit 1f238c56f3
18 changed files with 424 additions and 70 deletions

View File

@@ -141,3 +141,20 @@ export enum RSort {
DownloadsAsc = 4,
DownloadsDesc = 5,
}
export enum ActivityType {
Unknown = 0,
ResourcePublished = 1,
ResourceUpdated = 2,
ResourceCommented = 3,
}
export interface Activity {
id: number;
type: ActivityType;
user_id: number;
created_at: string;
resource?: Resource;
user?: User;
comment?: CommentWithResource;
}