From 621900d2273013bbb92c7f2db1a969e8bc381efe Mon Sep 17 00:00:00 2001 From: wood chen Date: Sun, 16 Feb 2025 23:06:40 +0800 Subject: [PATCH] chore(ui): Update dashboard and layout titles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename application title to "Proxy Go控制台" - Reduce metrics and cache page refresh interval from 5s to 1s for more real-time updates --- web/app/dashboard/cache/page.tsx | 2 +- web/app/dashboard/page.tsx | 2 +- web/app/layout.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/dashboard/cache/page.tsx b/web/app/dashboard/cache/page.tsx index 137ef30..cd64083 100644 --- a/web/app/dashboard/cache/page.tsx +++ b/web/app/dashboard/cache/page.tsx @@ -129,7 +129,7 @@ export default function CachePage() { fetchConfigs() // 设置定时刷新 - const interval = setInterval(fetchStats, 5000) + const interval = setInterval(fetchStats, 1000) return () => clearInterval(interval) }, [fetchStats, fetchConfigs]) diff --git a/web/app/dashboard/page.tsx b/web/app/dashboard/page.tsx index 67beea6..a9b84b2 100644 --- a/web/app/dashboard/page.tsx +++ b/web/app/dashboard/page.tsx @@ -95,7 +95,7 @@ export default function DashboardPage() { useEffect(() => { fetchMetrics() - const interval = setInterval(fetchMetrics, 5000) + const interval = setInterval(fetchMetrics, 1000) return () => clearInterval(interval) }, [fetchMetrics]) diff --git a/web/app/layout.tsx b/web/app/layout.tsx index 68d9ea1..a28a2e4 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -6,8 +6,8 @@ import { Toaster } from "@/components/ui/toaster"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "代理服务管理后台", - description: "代理服务管理后台", + title: "Proxy Go控制台", + description: "Proxy Go控制台", }; export default function RootLayout({