From 7eee788720772423506bb30100ea9667f473cb15 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 25 May 2026 15:47:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E5=8C=96]=20UI=20improve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/(dashboard)/{ => website}/dns-account/page.tsx | 5 ----- .../dns-accounts/components/dns-accounts-page.tsx | 4 ++-- .../proxy-routes/components/proxy-route-config-page.tsx | 8 -------- .../tls-certificates/components/tls-certificates-page.tsx | 2 +- openflare_server/web/lib/constants/navigation.ts | 6 ------ 5 files changed, 3 insertions(+), 22 deletions(-) rename openflare_server/web/app/(dashboard)/{ => website}/dns-account/page.tsx (57%) diff --git a/openflare_server/web/app/(dashboard)/dns-account/page.tsx b/openflare_server/web/app/(dashboard)/website/dns-account/page.tsx similarity index 57% rename from openflare_server/web/app/(dashboard)/dns-account/page.tsx rename to openflare_server/web/app/(dashboard)/website/dns-account/page.tsx index 34b936bc..192ca6be 100644 --- a/openflare_server/web/app/(dashboard)/dns-account/page.tsx +++ b/openflare_server/web/app/(dashboard)/website/dns-account/page.tsx @@ -1,10 +1,5 @@ -import type { Metadata } from 'next'; import { DnsAccountsPage } from '@/features/dns-accounts/components/dns-accounts-page'; -export const metadata: Metadata = { - title: 'DNS 账号 - OpenFlare', -}; - export default function Page() { return ; } diff --git a/openflare_server/web/features/dns-accounts/components/dns-accounts-page.tsx b/openflare_server/web/features/dns-accounts/components/dns-accounts-page.tsx index 36994c58..f67c0538 100644 --- a/openflare_server/web/features/dns-accounts/components/dns-accounts-page.tsx +++ b/openflare_server/web/features/dns-accounts/components/dns-accounts-page.tsx @@ -68,10 +68,10 @@ export function DnsAccountsPage() { action={
- 返回网站 + 返回 setIsCreateOpen(true)}> 添加账号 diff --git a/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx b/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx index 5314cc57..9db98207 100644 --- a/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx +++ b/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx @@ -718,14 +718,6 @@ type PowListValues = { user_agents: string; }; -const defaultPowList: PowListValues = { - ips: '', - ip_cidrs: '', - paths: '', - path_regexes: '', - user_agents: '', -}; - const powSchema = z .object({ pow_enabled: z.boolean(), diff --git a/openflare_server/web/features/tls-certificates/components/tls-certificates-page.tsx b/openflare_server/web/features/tls-certificates/components/tls-certificates-page.tsx index daf57458..bc23e1ff 100644 --- a/openflare_server/web/features/tls-certificates/components/tls-certificates-page.tsx +++ b/openflare_server/web/features/tls-certificates/components/tls-certificates-page.tsx @@ -137,7 +137,7 @@ export function TlsCertificatesPage() { 刷新证书 DNS 账号 diff --git a/openflare_server/web/lib/constants/navigation.ts b/openflare_server/web/lib/constants/navigation.ts index 69f32792..50ed5764 100644 --- a/openflare_server/web/lib/constants/navigation.ts +++ b/openflare_server/web/lib/constants/navigation.ts @@ -42,12 +42,6 @@ export const dashboardNavigation: NavigationItem[] = [ label: '性能', icon: 'performance', }, - { - href: '/user', - label: '用户', - icon: 'user', - }, - { href: '/setting', label: '设置',