Skip to content

A modern and elegant dashboard for network traffic visualization and analysis.

feat: Update branding from OpenClash to Clash, refine navigation UI layout, and update associated assets.

luolei8113b1d2e4d2
diff --git a/apps/web/app/[locale]/layout.tsx b/apps/web/app/[locale]/layout.tsx
index 1722fc4..587440c 100644
--- a/apps/web/app/[locale]/layout.tsx
+++ b/apps/web/app/[locale]/layout.tsx
@@ -21,7 +21,7 @@ const geistMono = Geist_Mono({
export const metadata: Metadata = {
title: "Clash Master",
- description: "Modern and beautiful traffic analysis dashboard for OpenClash",
+ description: "Modern and beautiful traffic analysis dashboard for Clash",
icons: {
icon: "/clash-master.png",
shortcut: "/clash-master.png",
diff --git a/apps/web/components/navigation.tsx b/apps/web/components/navigation.tsx
index 68dac8b..48118bb 100644
--- a/apps/web/components/navigation.tsx
+++ b/apps/web/components/navigation.tsx
@@ -93,8 +93,8 @@ export function Navigation({
{/* Desktop Navigation - Sidebar */}
<aside className="hidden lg:flex flex-col w-64 h-screen sticky top-0 border-r border-border/40 bg-background/80 backdrop-blur-md">
{/* Logo */}
- <div className="flex items-center gap-3 p-6 border-b border-border/40">
- <div className="w-14 h-14 rounded-xl flex items-center justify-center overflow-hidden hover:opacity-80">
+ <div className="flex items-start gap-3 p-6 border-b border-border/40">
+ <div className="w-14 h-14 rounded-xl shrink-0 flex items-center justify-center overflow-hidden hover:opacity-80">
<Image
src="/clash-master.png"
alt="Clash Master"
@@ -104,8 +104,10 @@ export function Navigation({
/>
</div>
<div>
- <div className="flex items-center gap-2">
- <h1 className="font-bold text-xl">{headerT("title")}</h1>
+ <div className="flex items-center gap-1.5">
+ <h1 className="font-bold text-xl leading-tight whitespace-nowrap">
+ {headerT("title")}
+ </h1>
<TooltipProvider delayDuration={200}>
<Tooltip>
<TooltipTrigger asChild>
@@ -133,7 +135,7 @@ export function Navigation({
</Tooltip>
</TooltipProvider>
</div>
- <p className="text-xs text-muted-foreground/60">
+ <p className="text-xs leading-4 text-muted-foreground/60 min-h-8">
{headerT("subtitle")}
</p>
</div>
@@ -171,12 +173,31 @@ export function Navigation({
onClick={promptInstall}
className="group w-full flex items-center gap-3 px-4 py-2.5 rounded-xl text-sm font-medium transition-all bg-gradient-to-r from-primary/8 to-primary/4 hover:from-primary/14 hover:to-primary/8 border border-primary/15 hover:border-primary/30">
<span className="flex items-center justify-center w-7 h-7 rounded-lg bg-primary/10 group-hover:bg-primary/15 transition-colors">
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" className="text-primary">
- <path d="M8 1.5v8m0 0L5 6.5m3 3 3-3" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
- <path d="M2.5 10.5v2a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-2" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
+ <svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ className="text-primary">
+ <path
+ d="M8 1.5v8m0 0L5 6.5m3 3 3-3"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ <path
+ d="M2.5 10.5v2a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-2"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
</svg>
</span>
- <span className="text-primary/90">{pwaT("installApp")}</span>
+ <span className="text-primary/90">
+ {pwaT("installApp")}
+ </span>
</button>
</TooltipTrigger>
<TooltipContent side="right" className="max-w-[200px]">
@@ -337,7 +358,9 @@ export function Navigation({
</span>
) : latestVersion ? (
<span className="text-sm text-muted-foreground flex items-center gap-1.5">
- <span className="font-mono tabular-nums">v{latestVersion}</span>
+ <span className="font-mono tabular-nums">
+ v{latestVersion}
+ </span>
<span className="text-emerald-500">✓</span>
</span>
) : (
@@ -356,7 +379,9 @@ export function Navigation({
{/* License */}
<div className="flex items-center justify-between p-3 rounded-xl bg-secondary/50 border border-border/50">
- <span className="text-sm font-medium">{aboutT("license")}</span>
+ <span className="text-sm font-medium">
+ {aboutT("license")}
+ </span>
<span className="text-sm text-muted-foreground">MIT</span>
</div>
diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json
index 601eb23..f7e6116 100644
--- a/apps/web/messages/en.json
+++ b/apps/web/messages/en.json
@@ -1,7 +1,7 @@
{
"metadata": {
"title": "Clash Master - Traffic Analytics",
- "description": "Real-time traffic statistics and analytics for OpenClash"
+ "description": "Real-time traffic statistics and analytics for Clash"
},
"nav": {
"overview": "Overview",
@@ -15,7 +15,7 @@
},
"header": {
"title": "Clash Master",
- "subtitle": "Modern traffic analysis dashboard for Clash"
+ "subtitle": "Clash traffic analytics dashboard"
},
"dashboard": {
"title": "Dashboard",
@@ -270,7 +270,7 @@
"title": "About",
"version": "Version",
"projectName": "Clash Master",
- "description": "Modern traffic analysis dashboard for Clash",
+ "description": "Clash traffic analytics dashboard",
"github": "GitHub",
"openSource": "Clash Master",
"license": "MIT License",
@@ -323,8 +323,8 @@
},
"backend": {
"title": "Settings",
- "firstTimeTitle": "Configure OpenClash Backend",
- "firstTimeDescription": "Enter your OpenClash connection information to start monitoring traffic",
+ "firstTimeTitle": "Configure Clash Backend",
+ "firstTimeDescription": "Enter your Clash connection information to start monitoring traffic",
"description": "Manage backend connections and database",
"backendsTab": "Backends",
"databaseTab": "Database",
@@ -367,7 +367,7 @@
"collect": "Collect",
"setDisplay": "Set Display",
"selectBackend": "Select Backend",
- "manageBackends": "Settings",
+ "manageBackends": "Manage Backends",
"firstBackendAutoActive": "First backend automatically set as active",
"verificationFailed": "Backend verification failed. Please check the host address and token.",
"preferencesTab": "Preferences",
diff --git a/apps/web/messages/zh.json b/apps/web/messages/zh.json
index 12d0ee2..cef9571 100644
--- a/apps/web/messages/zh.json
+++ b/apps/web/messages/zh.json
@@ -1,7 +1,7 @@
{
"metadata": {
"title": "Clash Master - 流量分析",
- "description": "OpenClash 实时流量统计与分析"
+ "description": "Clash 实时流量统计与分析"
},
"nav": {
"overview": "概览",
@@ -15,7 +15,7 @@
},
"header": {
"title": "Clash Master",
- "subtitle": "现代美观的流量分析工具"
+ "subtitle": "现代 Clash 可视化看板"
},
"dashboard": {
"title": "仪表盘",
@@ -113,7 +113,7 @@
"loading": "加载中..."
},
"topDomains": {
- "title": "Top 域名",
+ "title": "热门域名",
"sortByTraffic": "按流量排序",
"sortByConnections": "按连接数排序",
"viewAll": "查看全部",
@@ -122,7 +122,7 @@
"noDataHint": "开始采集后,这里会显示域名流量。"
},
"topProxies": {
- "title": "Top 代理",
+ "title": "热门代理",
"sortByTraffic": "按流量排序",
"sortByConnections": "按连接数排序",
"viewAll": "查看全部",
@@ -269,7 +269,7 @@
"title": "关于",
"version": "版本",
"projectName": "Clash Master",
- "description": "现代美观的 OpenClash 流量分析看板",
+ "description": "现代 Clash 可视化看板",
"github": "GitHub",
"openSource": "开源项目",
"license": "MIT 许可证",
@@ -322,8 +322,8 @@
},
"backend": {
"title": "设置",
- "firstTimeTitle": "配置 OpenClash 后端",
- "firstTimeDescription": "请输入您的 OpenClash 连接信息以开始监控流量",
+ "firstTimeTitle": "配置 Clash 后端",
+ "firstTimeDescription": "请输入您的 Clash 连接信息以开始监控流量",
"description": "管理后端连接和数据库",
"backendsTab": "后端管理",
"databaseTab": "数据库",
diff --git a/assets/clash-master-overview.png b/assets/clash-master-overview.png
index becf706..a15428e 100644
Binary files a/assets/clash-master-overview.png and b/assets/clash-master-overview.png differ
diff --git a/assets/clash-master-regions.png b/assets/clash-master-regions.png
index f6ffa89..96a70c1 100644
Binary files a/assets/clash-master-regions.png and b/assets/clash-master-regions.png differ
diff --git a/assets/clash-master-rules.png b/assets/clash-master-rules.png
index 3c9f06c..bcc46c8 100644
Binary files a/assets/clash-master-rules.png and b/assets/clash-master-rules.png differ
diff --git a/assets/clash-master-setup.png b/assets/clash-master-setup.png
index 3d2ea98..7a68890 100644
Binary files a/assets/clash-master-setup.png and b/assets/clash-master-setup.png differ