Skip to content

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

feat(icons): 将 HardDrive 图标替换为 Server 图标以更准确地表示远程机器

hairyf8a46392ec20f
diff --git a/packages/dsh-tauri-ui/src/client/components/icons.tsx b/packages/dsh-tauri-ui/src/client/components/icons.tsx
index 347cdcf6..6d19f218 100644
--- a/packages/dsh-tauri-ui/src/client/components/icons.tsx
+++ b/packages/dsh-tauri-ui/src/client/components/icons.tsx
@@ -7,7 +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 Server } from '@gravity-ui/icons/Server'
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 279b10b3..3fbee028 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, HardDrive, Person, Puzzle } from '../components/icons'
+import { Database, Gear, Server, Person, Puzzle } from '../components/icons'
import { useMountStyle } from '../hooks/use-mount-style'
import settingsNavIconStyle from './nav-icon.cssr'
@@ -13,7 +13,7 @@ const NAV_ICONS: Record<string, IconComponent> = {
'agent-presets': Person,
'plugins': Puzzle,
// 远程(dsh-tauri-ssh):网络图标,与壳层切换器的 Globe 同一语义
- 'dsh-tauri-ssh': HardDrive,
+ 'dsh-tauri-ssh': Server,
}
export function SettingsNavIcon({ id }: { id: string }): ReactElement {
diff --git a/src/layout/components/remote-switcher.tsx b/src/layout/components/remote-switcher.tsx
index 541f4f04..19e1e8c6 100644
--- a/src/layout/components/remote-switcher.tsx
+++ b/src/layout/components/remote-switcher.tsx
@@ -1,5 +1,5 @@
import type { SshMachineRow } from '@/store/modules/remote'
-import { ArrowUpRightFromSquare, ArrowUpToLine, Gear, HardDrive, House, Power } from '@gravity-ui/icons'
+import { ArrowUpRightFromSquare, ArrowUpToLine, Gear, Server, House, Power } from '@gravity-ui/icons'
import { Button, Description, Dropdown, Label } from '@heroui/react'
import { invoke } from '@tauri-apps/api/core'
import { useTranslation } from 'react-i18next'
@@ -85,7 +85,7 @@ export function RemoteSwitcher({ onManage, onSync }: { onManage?: () => void, on
variant="ghost"
aria-label={t('remote.switcher')}
>
- <HardDrive className={cn('size-3.5', !available && 'text-warning')} />
+ <Server className={cn('size-3.5', !available && 'text-warning')} />
<span className="max-w-28 truncate">{activeMachine ? activeMachine.name : t('remote.local')}</span>
<If cond={activeColor !== undefined}>
<span