diff --git a/frontend/src/app/x/page.tsx b/frontend/src/app/x/page.tsx new file mode 100644 index 0000000..ecc0d6e --- /dev/null +++ b/frontend/src/app/x/page.tsx @@ -0,0 +1,35 @@ +"use client"; + +import { Shell } from "@/components/Shell"; + +/** + * X (Twitter) 独立模块占位页。 + * 后续由 PVE Windows Chrome 插件 (X2) 经 API 推送数据;后端接口待定。 + */ +export default function XPage() { + return ( + +
+
+
+ 𝕏 +
+
+

X

+

独立模块 · 页面已就绪,后端 API 待接入

+
+
+ +
+

计划链路:

+
    +
  1. PVE Windows 上 Chrome 运行 X2 插件采集
  2. +
  3. 插件通过 API 把数据推送到本项目
  4. +
  5. 本页展示与操作(接口与字段等你安排后再做)
  6. +
+

当前无业务接口,仅占位导航与独立路由 /x。

+
+
+
+ ); +} diff --git a/frontend/src/components/Shell.tsx b/frontend/src/components/Shell.tsx index 972dfdf..2a817e0 100644 --- a/frontend/src/components/Shell.tsx +++ b/frontend/src/components/Shell.tsx @@ -3,7 +3,7 @@ import { useEffect, useMemo, useState } from "react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; -import { Menu, X } from "lucide-react"; +import { Menu, X as CloseIcon } from "lucide-react"; import { BrandMark, LivePulse } from "@/components/ui"; import { GlobalEventAlerts } from "@/components/GlobalEventAlerts"; @@ -28,12 +28,13 @@ const NAV = [ { href: "/youtube", label: "YouTube", emoji: "▶️" }, { href: "/shorts", label: "Shorts", emoji: "📱" }, { href: "/tiktok", label: "TikTok", emoji: "🎵" }, + { href: "/x", label: "X", emoji: "𝕏" }, { href: "/blacklist", label: "黑名单", emoji: "🚫" }, { href: "/settings", label: "设置", emoji: "⚙️" }, ]; -/** Bottom bar: keep 4 destinations + More */ -const MOBILE_PRIMARY = ["/", "/tiktok", "/shorts", "/youtube"]; +/** Bottom bar: 概览 / TikTok / X / Shorts + 更多(YouTube 仅在「更多」) */ +const MOBILE_PRIMARY = ["/", "/tiktok", "/x", "/shorts"]; function navActive(pathname: string, href: string) { return pathname === href || (href !== "/" && pathname.startsWith(href)); @@ -245,7 +246,7 @@ function ShellFrame({ children }: { children: React.ReactNode }) { className="inline-flex h-9 w-9 items-center justify-center rounded-xl border border-white/10 bg-white/5 text-slate-300" aria-label="关闭" > - + {username ? (