From 49830ca18d6f1980dbd4c07d58a569295527caba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Sun, 25 Jan 2026 20:10:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(widget):=20=E6=96=B0=E5=A2=9E=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E6=9B=B4=E6=96=B0=E9=80=9A=E7=9F=A5=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将通知组件重构为可折叠的铃铛图标和面板,支持最小化状态 - 使用 IndexedDB 替代 localStorage 存储文章数据,支持多站点范围隔离 - 添加内容差异对比功能,可查看文章更新的具体变化 - 实现通知状态持久化,未读更新显示红点提示 - 更新站点公告以说明新功能 --- .../widget/NewPostNotification.astro | 483 +++++++++++++++--- src/config.ts | 2 +- 2 files changed, 425 insertions(+), 60 deletions(-) diff --git a/src/components/widget/NewPostNotification.astro b/src/components/widget/NewPostNotification.astro index 1ad70efd0..9855f4f72 100644 --- a/src/components/widget/NewPostNotification.astro +++ b/src/components/widget/NewPostNotification.astro @@ -1,26 +1,86 @@ -
-
- -
-
- -
-
-

发现新文章

-
+
+ + + + +
-