Feat: 新增评论组件,细化通知组件样式,引入环境变量,替换图标组件

This commit is contained in:
2026-07-30 00:59:09 +08:00
parent d585fc909f
commit b66de3129d
18 changed files with 630 additions and 14 deletions
+43
View File
@@ -0,0 +1,43 @@
declare namespace API {
namespace Comment {
type CommentStatus = "normal" | "waiting" | "rejected";
interface ICommentData {
id: number;
uuid: string;
uid: number | null;
name: string | null;
email: string | null;
site: string | null;
avatar: string;
open_id: string | null;
ref: string;
status: CommentStatus;
content: string;
parent: string | null;
// root 后端会自动推算,根据它 parent 的 root 字段填充
root: string | null;
ip: string;
ua: string;
location: string | null;
is_private: boolean;
is_ai_bot: boolean;
created_at: string | null;
updated_at: string | null;
}
interface ICommentDetailData extends ICommentData {
children: ICommentDetailData[];
}
interface ICommentRankData {
name: string;
avatar: string;
site: string | null;
total: number;
}
}
}
+1 -1
View File
@@ -53,7 +53,7 @@ declare namespace API {
starred: boolean;
unlocked?: boolean;
media: any[];
media: API.Media.IMediaData[];
photo?: INotePhotoData[];
year?: string;