Skip to content

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

refactor(ui): swap lucide icons for gravity-ui

hairyfe43468be8386
diff --git a/src/components/harness-webview.tsx b/src/components/harness-webview.tsx
index b75e1342..bf27fc94 100644
--- a/src/components/harness-webview.tsx
+++ b/src/components/harness-webview.tsx
@@ -1,5 +1,5 @@
/* eslint-disable react/dom-no-unsafe-iframe-sandbox */
-import { CircleAlert } from 'lucide-react'
+import { CircleExclamation } from '@gravity-ui/icons'
import { useTranslation } from 'react-i18next'
import { useStore } from 'valtio-define'
import { harness } from '../store/modules/harness'
@@ -60,7 +60,7 @@ export default function HarnessWebview() {
)}
{serviceHealthy && iframeError && (
<Loadable
- icon={CircleAlert}
+ icon={CircleExclamation}
title={t('ui.iframe_error')}
errorMsg={t('ui.ensure_running', { url: serviceUrl })}
onRetry={harness.refreshIframe}
diff --git a/src/components/loadable.tsx b/src/components/loadable.tsx
index 57d678ba..c7c23932 100644
--- a/src/components/loadable.tsx
+++ b/src/components/loadable.tsx
@@ -1,8 +1,10 @@
-import type { LucideIcon } from 'lucide-react'
-import type { ReactNode } from 'react'
+import type { ComponentType, ReactNode, SVGProps } from 'react'
import { useTranslation } from 'react-i18next'
import { button } from './primitives'
+/** 图标组件类型(@gravity-ui/icons 均为 SVG 组件) */
+export type IconComponent = ComponentType<SVGProps<SVGSVGElement>>
+
const LOG_LIMIT = 5
/**
@@ -18,8 +20,8 @@ const LOG_LIMIT = 5
* 传入 icon/title/subtitle/percentage/logs/errorMsg/onRetry 后按需扩展。
*/
export interface LoadableProps {
- /** 状态图标(lucide 组件),仅失败态显示;加载态已有 spinner,不再叠加图标(官方 boot 页无图标) */
- icon?: LucideIcon
+ /** 状态图标(@gravity-ui/icons 组件),仅失败态显示;加载态已有 spinner,不再叠加图标(官方 boot 页无图标) */
+ icon?: IconComponent
/** wordmark 位文案,默认官网的 "HARNESS" */
title?: string
/** hint 位文案,默认官网的 "Loading plugins…" */
@@ -57,7 +59,7 @@ export default function Loadable({
<div className="flex h-full items-center justify-center bg-load-bg -mt-[1px]">
<div className="flex w-[min(460px,88vw)] flex-col items-center gap-4 text-center">
{/* 加载态显示 spinner 时隐藏图标(官方 boot 页即无图标),避免与 spinner 重复突兀;仅失败态显示 */}
- {error && Icon && <Icon className="size-7 text-load-ink" strokeWidth={1.75} />}
+ {error && Icon && <Icon className="size-7 text-load-ink" />}
<span className="text-base leading-6 font-semibold tracking-[0.08em] text-load-ink truncate">{wordmark}</span>
diff --git a/src/components/setup.tsx b/src/components/setup.tsx
index 95562b30..1c304849 100644
--- a/src/components/setup.tsx
+++ b/src/components/setup.tsx
@@ -1,18 +1,18 @@
-import type { LucideIcon } from 'lucide-react'
import type { SetupStatus } from '../store/modules/harness'
-import { CircleAlert, CircleCheck, Download, Rocket, ScanSearch } from 'lucide-react'
+import type { IconComponent } from './loadable'
+import { ArrowDownToLine, CircleCheck, CircleExclamation, Magnifier, Rocket } from '@gravity-ui/icons'
import { useTranslation } from 'react-i18next'
import { useStore } from 'valtio-define'
import { harness } from '../store/modules/harness'
import Loadable from './loadable'
// 各阶段对应不同图标,保持与 logo 一致的黑白中性色调
-const STATUS_ICONS: Record<SetupStatus, LucideIcon> = {
- checking: ScanSearch,
- installing: Download,
+const STATUS_ICONS: Record<SetupStatus, IconComponent> = {
+ checking: Magnifier,
+ installing: ArrowDownToLine,
starting: Rocket,
ready: CircleCheck,
- error: CircleAlert,
+ error: CircleExclamation,
}
/**
diff --git a/src/components/sidebar-toggle.tsx b/src/components/sidebar-toggle.tsx
index 40b934c2..facfece4 100644
--- a/src/components/sidebar-toggle.tsx
+++ b/src/components/sidebar-toggle.tsx
@@ -1,4 +1,4 @@
-import { Wrench } from 'lucide-react'
+import { Wrench } from '@gravity-ui/icons'
import { useTranslation } from 'react-i18next'
import { useStore } from 'valtio-define'
import { setting } from '../store/modules/setting'