From e332c20d714f920664d0a7b83592ae51bf0c6ced Mon Sep 17 00:00:00 2001 From: yovinchen Date: Thu, 3 Jul 2025 14:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 175 ++++++++++++++++++++++++++++-------- src/i18n/locales/en-US.json | 22 ++++- src/i18n/locales/zh-CN.json | 20 ++++- 3 files changed, 174 insertions(+), 43 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9853c18..9ea357c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from "react"; import { motion, AnimatePresence } from "framer-motion"; -import { Plus, Loader2, Bot, FolderCode } from "lucide-react"; +import { Plus, Loader2, Bot, FolderCode, BarChart3, Network, FileText, Settings as SettingsIcon } from "lucide-react"; import { useTranslation } from "react-i18next"; import { api, type Project, type Session, type ClaudeMdFile } from "@/lib/api"; import { OutputCacheProvider } from "@/lib/outputCache"; @@ -159,7 +159,7 @@ function App() { switch (view) { case "welcome": return ( -
+
{/* Welcome Header */} -

- - {t('welcome.title')} -

+
+ +

+ {t('welcome.title')} +

+
+

{t('welcome.subtitle')}

- {/* Navigation Cards */} -
- {/* CC Agents Card */} - - handleViewChange("agents")} + {/* Module Cards */} +
+ {/* Top Row - Agent Management and Project Management */} +
+ {/* Agent Management */} + -
- -

{t('welcome.ccAgents')}

-
- -
+ handleViewChange("agents")} + > +
+ +

{t('welcome.modules.agentManagement')}

+

{t('welcome.modules.agentManagementDesc')}

+
+
+ - {/* CC Projects Card */} - - handleViewChange("projects")} + {/* Project Management */} + -
- -

{t('welcome.ccProjects')}

-
-
-
+ handleViewChange("projects")} + > +
+ +

{t('welcome.modules.projectManagement')}

+

{t('welcome.modules.projectManagementDesc')}

+
+
+ +
+ {/* Bottom Row - Usage Statistics, MCP Management, CLAUDE.md, and Settings */} +
+ {/* Usage Statistics */} + + handleViewChange("usage-dashboard")} + > +
+ +

{t('welcome.modules.usageStats')}

+

{t('welcome.modules.usageStatsDesc')}

+
+
+
+ + {/* MCP Management */} + + handleViewChange("mcp")} + > +
+ +

{t('welcome.modules.mcpManagement')}

+

{t('welcome.modules.mcpManagementDesc')}

+
+
+
+ + {/* CLAUDE.md */} + + handleViewChange("editor")} + > +
+ +

{t('welcome.modules.claudeMd')}

+

{t('welcome.modules.claudeMdDesc')}

+
+
+
+ + {/* Settings */} + + handleViewChange("settings")} + > +
+ +

{t('welcome.modules.settings')}

+

{t('welcome.modules.settingsDesc')}

+
+
+
+
+ + {/* Quick Start Button */} + + +
); diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index 3f29e22..093b271 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json @@ -36,10 +36,26 @@ }, "welcome": { "title": "Welcome to Claudia", + "subtitle": "Powerful Claude Code Session Management Tool", "ccAgents": "CC Agents", "ccProjects": "CC Projects", "browseProjects": "Browse your Claude Code sessions", - "newSession": "New Claude Code session" + "newSession": "New Claude Code session", + "modules": { + "agentManagement": "Agent Management", + "agentManagementDesc": "Create and manage intelligent agents", + "projectManagement": "Project Management", + "projectManagementDesc": "Browse and manage project sessions", + "usageStats": "Usage Statistics", + "usageStatsDesc": "View usage and statistics", + "mcpManagement": "MCP Management", + "mcpManagementDesc": "Manage MCP servers", + "claudeMd": "CLAUDE.md", + "claudeMdDesc": "Edit Claude configuration files", + "settings": "Settings", + "settingsDesc": "Application settings and configuration" + }, + "quickStart": "Quick Start New Conversation" }, "agents": { "title": "CC Agents", @@ -332,7 +348,7 @@ "autoDesc": "Let Claude decide", "think": "Think", "thinkDesc": "Basic reasoning", - "thinkHard": "Think Hard", + "thinkHard": "Think Hard", "thinkHardDesc": "Deeper analysis", "thinkHarder": "Think Harder", "thinkHarderDesc": "Extensive reasoning", @@ -359,4 +375,4 @@ "success": { "claudeBinaryPathSaved": "Claude binary path saved successfully" } -} \ No newline at end of file +} diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index e802992..7d313dc 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -36,10 +36,26 @@ }, "welcome": { "title": "欢迎使用 Claudia", + "subtitle": "强大的 Claude Code 会话管理工具", "ccAgents": "CC 智能体", "ccProjects": "CC 项目", "browseProjects": "浏览您的 Claude Code 会话", - "newSession": "新建 Claude Code 会话" + "newSession": "新建 Claude Code 会话", + "modules": { + "agentManagement": "Agent 管理", + "agentManagementDesc": "创建和管理智能 Agent", + "projectManagement": "项目管理", + "projectManagementDesc": "浏览和管理项目会话", + "usageStats": "使用统计", + "usageStatsDesc": "查看使用情况和统计", + "mcpManagement": "MCP 管理", + "mcpManagementDesc": "管理 MCP 服务器", + "claudeMd": "CLAUDE.md", + "claudeMdDesc": "编辑 Claude 配置文件", + "settings": "设置", + "settingsDesc": "应用设置和配置" + }, + "quickStart": "快速开始新会话" }, "agents": { "title": "CC 智能体", @@ -359,4 +375,4 @@ "success": { "claudeBinaryPathSaved": "Claude 二进制文件路径保存成功" } -} \ No newline at end of file +}