删除多个完成报告文件,优化项目结构以提升可维护性。

This commit is contained in:
乘风
2026-02-03 15:59:37 +08:00
parent d4ca9573f5
commit a2443c097c
119 changed files with 2119 additions and 8537 deletions

View File

@@ -33,19 +33,19 @@ export function BottomNav() {
// 在文档页面、管理后台、阅读页面和关于页面不显示底部导航(必须在所有 hooks 之后)
if (
pathname.startsWith("/documentation") ||
pathname.startsWith("/admin") ||
pathname.startsWith("/read") ||
pathname.startsWith("/about")
pathname?.startsWith("/view/documentation") ||
pathname?.startsWith("/admin") ||
pathname?.startsWith("/view/read") ||
pathname?.startsWith("/view/about")
) {
return null
}
const navItems = [
{ href: "/", icon: Home, label: "首页" },
{ href: "/chapters", icon: List, label: "目录" },
...(matchEnabled ? [{ href: "/match", icon: Users, label: "找伙伴", isCenter: true }] : []),
{ href: "/my", icon: User, label: "我的" },
{ href: "/view", icon: Home, label: "首页" },
{ href: "/view/chapters", icon: List, label: "目录" },
...(matchEnabled ? [{ href: "/view/match", icon: Users, label: "找伙伴", isCenter: true }] : []),
{ href: "/view/my", icon: User, label: "我的" },
]
return (