Skip to content

Commit cf1a90d

Browse files
committed
refactor(components): remove duplicate interfaces and types
1 parent ddb6aa6 commit cf1a90d

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

apps/gkBlog/src/components/sidebar/Sidebar.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@ interface RecentArticle {
1313
url: string;
1414
}
1515

16-
interface Comment {
17-
id: string;
18-
url: string;
19-
nick: string;
20-
mailMd5: string;
21-
link: string;
22-
comment: string;
23-
commentText: string;
24-
created: number;
25-
avatar: string;
26-
relativeTime: string;
27-
}
28-
2916
interface IArticle {
3017
title: string;
3118
slug: string;
@@ -35,22 +22,6 @@ interface SidebarProps {
3522
show: string[];
3623
}
3724

38-
interface TwikooConfig {
39-
envId: string;
40-
el: string;
41-
pageSize?: number;
42-
includeReply?: boolean;
43-
}
44-
45-
declare global {
46-
interface Window {
47-
twikoo: {
48-
init: (config: TwikooConfig) => void;
49-
getRecentComments: (config: TwikooConfig) => Promise<Comment[]>;
50-
};
51-
}
52-
}
53-
5425
function Sidebar({ show }: SidebarProps) {
5526
const imageUrl = "https://cdn.qladgk.com/images/gongzhonghao.png";
5627
const [recentArticles, setRecentArticles] = useState<RecentArticle[]>([]);

apps/gkBlog/src/contents/update/Contents.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ import { ReleaseNote } from "./ReleaseNote.mdx";
1515

1616
<ReleaseNote version="gkBlog v2.x.x" date="2025-06-11">
1717

18+
**新功能**
19+
20+
- 留言墙添加弹幕功能
21+
1822
🚀 **优化**
1923

2024
- 考虑迁移到 App Router

0 commit comments

Comments
 (0)