Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

feat(locales): 更新中文和英文翻译,将“远程”改为“服务器” feat(icons): 添加 HardDrive 图标 fix(nav-icon): 更新导航图标为 HardDrive

hairyf0557d2f5aadb
diff --git a/packages/dsh-tauri-ssh-ui/src/client/locales/index.ts b/packages/dsh-tauri-ssh-ui/src/client/locales/index.ts
index 4d7c65f5..36930a6f 100644
--- a/packages/dsh-tauri-ssh-ui/src/client/locales/index.ts
+++ b/packages/dsh-tauri-ssh-ui/src/client/locales/index.ts
@@ -2,7 +2,7 @@
/** Simplified Chinese dictionary. */
export const zh = {
- 'nav': '远程',
+ 'nav': '服务器',
'tabs.machines': 'SSH 机器',
'tabs.sync': '同步到远端',
'hero.title': '远程机器',
@@ -127,7 +127,7 @@ export type SshKey = keyof typeof zh
/** English dictionary, checked complete against the zh key set. */
export const en = {
- 'nav': 'Remote',
+ 'nav': 'Service',
'tabs.machines': 'SSH machines',
'tabs.sync': 'Sync to remote',
'hero.title': 'Remote machines',
diff --git a/packages/dsh-tauri-ui/src/client/components/icons.tsx b/packages/dsh-tauri-ui/src/client/components/icons.tsx
index aa4ee1fa..347cdcf6 100644
--- a/packages/dsh-tauri-ui/src/client/components/icons.tsx
+++ b/packages/dsh-tauri-ui/src/client/components/icons.tsx
@@ -7,6 +7,7 @@ export { default as ArrowRotateRight } from '@gravity-ui/icons/ArrowRotateRight'
export { default as ArrowUpRight } from '@gravity-ui/icons/ArrowUpRight'
export { default as ArrowUturnCcwLeft } from '@gravity-ui/icons/ArrowUturnCcwLeft'
export { default as Calendar } from '@gravity-ui/icons/Calendar'
+export { default as HardDrive } from '@gravity-ui/icons/HardDrive'
export { default as Check } from '@gravity-ui/icons/Check'
export { default as ChevronDown } from '@gravity-ui/icons/ChevronDown'
export { default as ChevronRight } from '@gravity-ui/icons/ChevronRight'
diff --git a/packages/dsh-tauri-ui/src/client/ui/nav-icon.tsx b/packages/dsh-tauri-ui/src/client/ui/nav-icon.tsx
index f43a3c9b..279b10b3 100644
--- a/packages/dsh-tauri-ui/src/client/ui/nav-icon.tsx
+++ b/packages/dsh-tauri-ui/src/client/ui/nav-icon.tsx
@@ -2,7 +2,7 @@ import type { ReactElement } from 'react'
import type { IconComponent } from '../components/icon'
import { get } from 'dsh-tauri/client'
import { Icon } from '../components/icon'
-import { Database, Gear, Globe, Person, Puzzle } from '../components/icons'
+import { Database, Gear, HardDrive, Person, Puzzle } from '../components/icons'
import { useMountStyle } from '../hooks/use-mount-style'
import settingsNavIconStyle from './nav-icon.cssr'
@@ -13,11 +13,12 @@ const NAV_ICONS: Record<string, IconComponent> = {
'agent-presets': Person,
'plugins': Puzzle,
// 远程(dsh-tauri-ssh):网络图标,与壳层切换器的 Globe 同一语义
- 'dsh-tauri-ssh': Globe,
+ 'dsh-tauri-ssh': HardDrive,
}
export function SettingsNavIcon({ id }: { id: string }): ReactElement {
useMountStyle(settingsNavIconStyle, SETTINGS_NAV_ICON_STYLE_ID)
+ console.log('id', id)
const NavIcon = get(NAV_ICONS, id, Gear)
return <Icon as={NavIcon} size={16} className="dshp-settings-nav-icon" />
}
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json
index f45fe5fb..0e22914f 100644
--- a/src/i18n/locales/en-US.json
+++ b/src/i18n/locales/en-US.json
@@ -390,7 +390,7 @@
"remote.auth.agent": "agent",
"remote.auth.key": "key",
"remote.auth.password": "password",
- "remote.empty": "No machines yet — add one from Settings → Remote.",
+ "remote.empty": "No machines yet — add one from Settings → Service.",
"remote.degraded": "Local instance unreachable — retrying",
"remote.state.disconnected": "Disconnected",
"remote.state.testing": "Testing",
diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json
index f563c0fc..c968633f 100644
--- a/src/i18n/locales/zh-CN.json
+++ b/src/i18n/locales/zh-CN.json
@@ -390,7 +390,7 @@
"remote.auth.agent": "agent",
"remote.auth.key": "密钥",
"remote.auth.password": "密码",
- "remote.empty": "还没有机器——在「设置 → 远程」面板添加。",
+ "remote.empty": "还没有机器——在「设置 → 服务器」面板添加。",
"remote.degraded": "本地实例不可达,正在重试",
"remote.state.disconnected": "未连接",
"remote.state.testing": "测试中",