From 4b9f87f7f8389c1986fd2b1bbbca5b154afef2f3 Mon Sep 17 00:00:00 2001 From: katelya Date: Thu, 4 Sep 2025 10:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A7=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E5=8F=91=E5=B8=83=E8=AF=B4=E6=98=8E=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E4=BB=A5=E7=A7=BB=E9=99=A4TVBox=E9=85=8D=E7=BD=AE=E6=8C=89?= =?UTF-8?q?=E9=92=AE=EF=BC=8C=E5=B9=B6=E5=9C=A8=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=AD=E6=B7=BB=E5=8A=A0TVBox=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RELEASE_NOTES_v0.6.0.md | 0 RELEASE_v0.5.0-katelya.md | 0 RELEASE_v0.6.0-katelya.md | 0 src/app/admin/page.tsx | 18 +++++++++++++++++- src/components/UserMenu.tsx | 16 +--------------- 5 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 RELEASE_NOTES_v0.6.0.md delete mode 100644 RELEASE_v0.5.0-katelya.md delete mode 100644 RELEASE_v0.6.0-katelya.md diff --git a/RELEASE_NOTES_v0.6.0.md b/RELEASE_NOTES_v0.6.0.md deleted file mode 100644 index e69de29..0000000 diff --git a/RELEASE_v0.5.0-katelya.md b/RELEASE_v0.5.0-katelya.md deleted file mode 100644 index e69de29..0000000 diff --git a/RELEASE_v0.6.0-katelya.md b/RELEASE_v0.6.0-katelya.md deleted file mode 100644 index e69de29..0000000 diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 53a55c5..0908c85 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -21,8 +21,16 @@ import { verticalListSortingStrategy, } from '@dnd-kit/sortable'; import { CSS } from '@dnd-kit/utilities'; -import { ChevronDown, ChevronUp, Settings, Users, Video } from 'lucide-react'; +import { + ChevronDown, + ChevronUp, + Settings, + Tv, + Users, + Video, +} from 'lucide-react'; import { GripVertical } from 'lucide-react'; +import { useRouter } from 'next/navigation'; import { Suspense, useCallback, useEffect, useState } from 'react'; import Swal from 'sweetalert2'; @@ -1609,6 +1617,7 @@ const SiteConfigComponent = ({ config }: { config: AdminConfig | null }) => { }; function AdminPageClient() { + const router = useRouter(); const [config, setConfig] = useState(null); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); @@ -1728,6 +1737,13 @@ function AdminPageClient() { 重置配置 )} + {/* 站点配置标签 */} diff --git a/src/components/UserMenu.tsx b/src/components/UserMenu.tsx index 81360a8..a60cd92 100644 --- a/src/components/UserMenu.tsx +++ b/src/components/UserMenu.tsx @@ -2,7 +2,7 @@ 'use client'; -import { KeyRound, LogOut, Settings, Shield, Tv, User, X } from 'lucide-react'; +import { KeyRound, LogOut, Settings, Shield, User, X } from 'lucide-react'; import { useRouter } from 'next/navigation'; import { useEffect, useState } from 'react'; import { createPortal } from 'react-dom'; @@ -149,11 +149,6 @@ export const UserMenu: React.FC = () => { router.push('/admin'); }; - const handleTVBoxConfig = () => { - setIsOpen(false); - router.push('/config'); - }; - const handleChangePassword = () => { setIsOpen(false); setIsChangePasswordOpen(true); @@ -368,15 +363,6 @@ export const UserMenu: React.FC = () => { 设置 - {/* TVBox配置按钮 */} - - {/* 管理面板按钮 */} {showAdminPanel && (