Skip to content

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

feat(navbar): 添加 onEditAction 属性以支持编辑功能 feat(remote-switcher): 将 Globe 图标替换为 HardDrive 图标

hairyf28e178c5065f
diff --git a/src/layout/components/navbar.tsx b/src/layout/components/navbar.tsx
index 97673b35..56cc2fb6 100644
--- a/src/layout/components/navbar.tsx
+++ b/src/layout/components/navbar.tsx
@@ -247,7 +247,7 @@ export interface NavbarProps { /** iframe 回报的 dsh 侧边栏折叠状态(
onOpenShortcuts?: () => void
}
-export function Navbar({ sidebarCollapsed = false, onToggleSidebar, onNewChat, onOpenFolder, onOpenMachineManager, onOpenSyncToRemote }: NavbarProps) {
+export function Navbar({ sidebarCollapsed = false, onToggleSidebar, onNewChat, onOpenFolder, onEditAction, onOpenShortcuts, onOpenMachineManager, onOpenSyncToRemote }: NavbarProps) {
const { t } = useTranslation()
const isFullscreen = useMacOSFullscreen()
const isMaximized = useMaximized()
diff --git a/src/layout/components/remote-switcher.tsx b/src/layout/components/remote-switcher.tsx
index 7092ff46..541f4f04 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, Globe, House, Power } from '@gravity-ui/icons'
+import { ArrowUpRightFromSquare, ArrowUpToLine, Gear, HardDrive, 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')}
>
- <Globe className={cn('size-3.5', !available && 'text-warning')} />
+ <HardDrive 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