更新ui样式,并修复已知问题 (#8)

Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2026-07-30 22:35:51 +08:00
parent ccf7049ae0
commit cd70f89a28
42 changed files with 971 additions and 450 deletions
+25 -3
View File
@@ -4,6 +4,13 @@ export interface AuthUser {
id: string
email: string
email_verified: boolean
username: string
avatar_url: string | null
role: Profile['role']
is_disabled: boolean
cloud_count: number
public_cloud_count: number
collection_count: number
created_at: string
}
@@ -12,12 +19,10 @@ export interface AuthResponse {
token_type: 'bearer'
expires_in: number
user: AuthUser
profile: Profile
}
export interface MeResponse {
user: AuthUser
profile: Profile
}
export interface PublicProfile {
@@ -54,6 +59,24 @@ export interface ApiCloud extends Cloud {
cloud_type_name: string | null
cloud_type_rarity: CloudType['rarity'] | null
username: string | null
favorite_count: number
is_favorited: boolean
}
export interface LikeStatsPhoto {
cloud_id: string
image_url: string
thumbnail_url: string
favorite_count: number
captured_at: string | null
created_at: string
}
export interface LikeStats {
user_id: string
username: string
total_likes: number
photos: LikeStatsPhoto[]
}
export interface ApiCollection extends UserCollection {
@@ -89,5 +112,4 @@ export interface AdminStats {
export interface AdminUserItem {
user: AuthUser
profile: Profile
}