chore: hide dashboard and ops mobile from navigation

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-23 08:16:39 -05:00
parent df049bd48d
commit e959325772
2 changed files with 3 additions and 8 deletions

View File

@ -1044,11 +1044,8 @@ export default function SettingsPage() {
</label> </label>
</div> </div>
<p className="text-[11px] text-slate-500"> <p className="text-[11px] text-slate-500">
只读账号可查看全部页面,不能 POST/保存/启停 worker。备份文件见{" "} 只读账号可查看全部页面,不能 POST/保存/启停 worker。备份文件见 API{" "}
<Link href="/ops/mobile" className="text-sky-300 underline"> <code className="text-slate-400">/api/ops/backups</code>。
运维速览
</Link>
或 API <code className="text-slate-400">/api/ops/backups</code>。
</p> </p>
</div> </div>

View File

@ -22,7 +22,6 @@ import {
} from "@/lib/youtubeLive"; } from "@/lib/youtubeLive";
const NAV = [ const NAV = [
{ href: "/dashboard", label: "看板", emoji: "📋" },
{ href: "/", label: "概览", emoji: "📡" }, { href: "/", label: "概览", emoji: "📡" },
{ href: "/slots", label: "时段", emoji: "🕐" }, { href: "/slots", label: "时段", emoji: "🕐" },
{ href: "/sessions", label: "场次", emoji: "🎬" }, { href: "/sessions", label: "场次", emoji: "🎬" },
@ -38,14 +37,13 @@ const NAV = [
{ href: "/x", label: "X", emoji: "𝕏" }, { href: "/x", label: "X", emoji: "𝕏" },
{ href: "/clash", label: "Clash", emoji: "🧿" }, { href: "/clash", label: "Clash", emoji: "🧿" },
{ href: "/ops", label: "运维", emoji: "🛰️" }, { href: "/ops", label: "运维", emoji: "🛰️" },
{ href: "/ops/mobile", label: "运维·简", emoji: "📱" },
{ href: "/downloads", label: "下载", emoji: "⬇️" }, { href: "/downloads", label: "下载", emoji: "⬇️" },
{ href: "/blacklist", label: "黑名单", emoji: "🚫" }, { href: "/blacklist", label: "黑名单", emoji: "🚫" },
{ href: "/settings", label: "设置", emoji: "⚙️" }, { href: "/settings", label: "设置", emoji: "⚙️" },
]; ];
/** Bottom bar: 概览 / TikTok / X / Shorts + 更多(YouTube 仅在「更多」) */ /** Bottom bar: 概览 / TikTok / X / Shorts + 更多(YouTube 仅在「更多」) */
const MOBILE_PRIMARY = ["/", "/dashboard", "/tiktok", "/shorts"]; const MOBILE_PRIMARY = ["/", "/tiktok", "/shorts"];
function navActive(pathname: string, href: string) { function navActive(pathname: string, href: string) {
return pathname === href || (href !== "/" && pathname.startsWith(href)); return pathname === href || (href !== "/" && pathname.startsWith(href));