Refine webui layout and config defaults

This commit is contained in:
lpf
2026-03-07 14:23:48 +08:00
parent fe0437b9cf
commit b5bb9a33e7
23 changed files with 1132 additions and 357 deletions

View File

@@ -76,6 +76,10 @@ const resources = {
subagentDeleteConfirmTitle: 'Delete Subagent Profile',
subagentDeleteConfirmMessage: 'Delete subagent profile "{{id}}" permanently?',
sidebarCore: 'Core',
sidebarMain: 'Main',
sidebarRuntime: 'Runtime',
sidebarConfig: 'Configuration',
sidebarKnowledge: 'Knowledge',
sidebarSystem: 'System',
sidebarOps: 'Operations',
sidebarInsights: 'Insights',
@@ -117,7 +121,32 @@ const resources = {
noNodes: 'No nodes available',
sessions: 'Sessions',
mainChat: 'Main Chat',
internalStream: 'Internal Stream',
enable: 'Enable',
disable: 'Disable',
maxRetries: 'Max Retries',
retryBackoffMs: 'Retry Backoff (ms)',
agentPromptContentPlaceholder: 'AGENT.md content...',
ekgOverviewHint: 'Runtime health, provider pressure, and error signature distribution.',
ekgActiveSources: 'active sources',
ekgActiveChannels: 'active channels',
ekgErrorsCount: 'errors',
dashboardTopErrorSignature: 'Top error signature',
dashboardWorkloadSnapshot: '24h workload pressure snapshot',
dashboardRecentFailedTasks: 'recent failed tasks',
subagentGroup: 'Subagent Group',
allAgents: 'All Agents',
agents: 'Agents',
subagentDispatch: 'Subagent Dispatch',
subagentDispatchHint: 'Operator-only panel. Dispatch a task directly to a subagent without going through the main chat loop.',
dispatchToSubagent: 'Dispatch Task',
subagentTaskPlaceholder: 'Describe the task to run on the selected subagent...',
subagentLabelPlaceholder: 'Optional task label...',
subagentTaskDispatched: 'Subagent task dispatched.',
replyTo: 'Reply To',
toAgent: 'To',
selfRefresh: 'Self Refresh',
internalEvent: 'Internal Event',
noSubagentStream: 'No subagent internal stream yet.',
subagentGroupReadonly: 'Subagent group is read-only.',
startConversation: 'Start a conversation',
@@ -229,6 +258,7 @@ const resources = {
skillsDeleteMessage: 'Are you sure you want to delete this skill?',
skillsClawhubMissingTitle: 'clawhub not detected',
skillsClawhubMissingMessage: 'clawhub is not installed. Install dependencies and clawhub automatically?',
skillsInstallPanelHint: 'Click "Install now" to bootstrap the skill environment. If Node.js/npm is missing, ClawGo will install it first, then install clawhub.',
skillsInstallNow: 'Install now',
skillsInstallingDeps: 'Installing node/npm and clawhub...',
skillsInstallFailedTitle: 'Install failed',
@@ -275,6 +305,7 @@ const resources = {
sourceMemoryTodo: 'memory_todo',
statusRunning: 'running',
statusWaiting: 'waiting',
idle: 'idle',
statusBlocked: 'blocked',
statusSuccess: 'success',
statusError: 'error',
@@ -299,6 +330,8 @@ const resources = {
recipientId: 'recipient id',
languageZh: '中文',
languageEn: 'English',
expand: 'Expand',
collapse: 'Collapse',
configRoot: '(root)',
configCommaSeparatedHint: ', a, b',
configLabels: {
@@ -535,6 +568,10 @@ const resources = {
subagentDeleteConfirmTitle: '删除子代理档案',
subagentDeleteConfirmMessage: '确认永久删除子代理档案 "{{id}}"',
sidebarCore: '核心',
sidebarMain: '主入口',
sidebarRuntime: '运行态',
sidebarConfig: '配置',
sidebarKnowledge: '知识与调试',
sidebarSystem: '系统',
sidebarOps: '运维',
sidebarInsights: '洞察',
@@ -576,7 +613,32 @@ const resources = {
noNodes: '无可用节点',
sessions: '会话',
mainChat: '主对话',
internalStream: '内部流',
enable: '启用',
disable: '停用',
maxRetries: '最大重试次数',
retryBackoffMs: '重试退避(毫秒)',
agentPromptContentPlaceholder: 'AGENT.md 内容...',
ekgOverviewHint: '运行时健康、Provider 压力与错误签名分布。',
ekgActiveSources: '活跃来源',
ekgActiveChannels: '活跃通道',
ekgErrorsCount: '错误数',
dashboardTopErrorSignature: 'Top 错误签名',
dashboardWorkloadSnapshot: '24 小时业务负载快照',
dashboardRecentFailedTasks: '最近失败任务',
subagentGroup: '子代理群组',
allAgents: '全部代理',
agents: '代理',
subagentDispatch: '子代理派发',
subagentDispatchHint: '仅用于运维/调试。可直接向子代理发任务,不经过主对话链路。',
dispatchToSubagent: '发起任务',
subagentTaskPlaceholder: '描述要发给当前子代理的任务...',
subagentLabelPlaceholder: '可选任务标签...',
subagentTaskDispatched: '子代理任务已发起。',
replyTo: '回复给',
toAgent: '发送给',
selfRefresh: '自我刷新',
internalEvent: '内部事件',
noSubagentStream: '当前还没有子代理内部流。',
subagentGroupReadonly: '子代理群组为只读视图。',
startConversation: '开始对话',
@@ -688,6 +750,7 @@ const resources = {
skillsDeleteMessage: '确认删除这个技能吗?',
skillsClawhubMissingTitle: '未检测到 clawhub',
skillsClawhubMissingMessage: '检测到系统中未安装 clawhub。是否自动安装依赖环境并安装 clawhub',
skillsInstallPanelHint: '点击“立即安装”即可初始化技能环境。如果系统缺少 Node.js/npmClawGo 会先安装它们,再安装 clawhub。',
skillsInstallNow: '立即安装',
skillsInstallingDeps: '正在安装 node/npm 与 clawhub...',
skillsInstallFailedTitle: '安装失败',
@@ -734,6 +797,7 @@ const resources = {
sourceMemoryTodo: 'memory_todo',
statusRunning: 'running',
statusWaiting: 'waiting',
idle: '空闲',
statusBlocked: 'blocked',
statusSuccess: 'success',
statusError: 'error',
@@ -758,6 +822,8 @@ const resources = {
recipientId: '接收者 ID',
languageZh: '中文',
languageEn: 'English',
expand: '展开',
collapse: '收起',
configRoot: '(根)',
configCommaSeparatedHint: ',例如 a,b',
configLabels: {