Skip to content

Refactor imports, add stats, and enhance UI with new features - #23

Merged
nowscott merged 7 commits into
mainfrom
developer
Mar 16, 2026
Merged

Refactor imports, add stats, and enhance UI with new features#23
nowscott merged 7 commits into
mainfrom
developer

Conversation

@nowscott

Copy link
Copy Markdown
Owner

No description provided.

- 清理 MainPage.js 中未使用的 randomSort、extractTags 和 toggleTagButton 导入
- 显式引入 lodash 库以替代可能通过其他方式隐式引入的功能
- 在 HeaderBar 组件中显示已收录网站数量
- 在 Footer 组件中显示当前应用版本号
- 将网站数量从 MainPage 传递至 HeaderBar 组件
- 重构主页布局,将标题、搜索框、标签和网站列表组件整合,优化视觉层次
- 新增关于页面(/about),展示项目理念与统计数据
- 引入 StatsContext 全局状态管理,统一管理网站数据、访问量和更新时间
- 优化 HeaderBar,集成搜索框并添加关于页面导航按钮
- 改进 Notion 数据获取逻辑,添加内存缓存减少 API 调用
- 更新多个组件的样式,采用现代化设计语言(渐变、阴影、动效)
- 修复数据加载逻辑,避免空数据时的处理错误
- 将标签过滤函数 updateResults 改为纯函数,提高可测试性
替换原有的静态 ICO 文件为 SVG 格式的 favicon,使其能根据系统或用户选择的主题(浅色/深色)动态切换。在 `_document.js` 中初始化 favicon 并监听系统主题变化,同时在 `ThemeContext` 中同步 favicon 的切换逻辑,确保视觉一致性。更新 README 以反映此新特性。
修复移动端主题色未随主题切换同步更新的问题,同时为html和body元素应用相同背景色以解决滚动回弹时背景色不一致的视觉缺陷。
@vercel

vercel Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
indwebindex Ready Ready Preview, Comment Mar 16, 2026 2:21pm

@nowscott
nowscott merged commit ed96890 into main Mar 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant