feat: 添加公告组件并移除未使用的依赖

- 新增 NoticeConfig 类型和公告组件 Announcement.astro,支持可配置的公告显示
- 移除未使用的 assets 集合和 React 相关依赖,简化项目结构
- 更新依赖项从 dependencies 移动到 devDependencies,优化包管理
- 移除赞助页面的加密货币相关代码,清理界面
- 调整搜索组件样式,改善视觉一致性
This commit is contained in:
二叉树树
2026-01-24 11:40:05 +08:00
parent 26c5dc70df
commit 16ffdaf793
9 changed files with 130 additions and 491 deletions

View File

@@ -17,7 +17,6 @@
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/react": "^4.4.2",
"@astrojs/rss": "^4.0.11",
"@astrojs/sitemap": "^3.3.1",
"@astrojs/svelte": "7.0.12",
@@ -35,21 +34,11 @@
"@iconify/svelte": "^4.2.0",
"@swup/astro": "^1.6.0",
"@tailwindcss/typography": "^0.5.16",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"astro": "5.7.9",
"astro-expressive-code": "^0.41.3",
"astro-icon": "^1.1.5",
"glob": "^11.0.3",
"hastscript": "^9.0.1",
"katex": "^0.16.22",
"markdown-it": "^14.1.0",
"mdast-util-to-string": "^4.0.0",
"node-html-parser": "^7.0.1",
"overlayscrollbars": "^2.11.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"reading-time": "^1.5.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-components": "^0.3.0",
"rehype-external-links": "^3.0.0",
@@ -59,12 +48,8 @@
"remark-directive-rehype": "^0.4.2",
"remark-math": "^6.0.0",
"remark-sectionize": "^2.1.0",
"sanitize-html": "^2.16.0",
"stylus": "^0.64.0",
"svelte": "^5.28.2",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3",
"unist-util-visit": "^5.0.0"
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@astrojs/ts-plugin": "^1.10.4",
@@ -75,9 +60,19 @@
"@types/markdown-it": "^14.1.2",
"@types/mdast": "^4.0.4",
"@types/sanitize-html": "^2.15.0",
"glob": "^11.0.3",
"hastscript": "^9.0.1",
"markdown-it": "^14.1.0",
"mdast-util-to-string": "^4.0.0",
"node-html-parser": "^7.0.1",
"postcss-import": "^16.1.0",
"postcss-nesting": "^13.0.1",
"rehype": "^13.0.2"
"reading-time": "^1.5.0",
"rehype": "^13.0.2",
"sanitize-html": "^2.16.0",
"stylus": "^0.64.0",
"typescript": "^5.8.3",
"unist-util-visit": "^5.0.0"
},
"packageManager": "pnpm@9.14.4",
"pnpm": {