From 8a329f6522e3f30cafa555df41a99d04a573a3ae Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Sat, 23 Aug 2025 19:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20refactor(ui):=20use=20lucide-rea?= =?UTF-8?q?ct=20for=20search/refresh=20and=20chevron=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DashboardHeader.jsx: replace Semi's IconSearch/IconRefresh with lucide-react's Search/RefreshCw (size 16), preserve existing button styles - UptimePanel.jsx: replace Semi's IconRefresh with lucide-react's RefreshCw (size 14), keep styling intact - UserArea.jsx: replace Semi's IconChevronDown with lucide-react's ChevronDown (size 14), preserve visual parity - Update imports: remove @douyinfe/semi-icons usage where replaced; add lucide-react imports - Verified no remaining IconSearch/IconRefresh in dashboard; no new linter errors Motivation: unify icon library for core actions and improve UI consistency. Follow-ups: consider migrating remaining Semi icons (e.g., plus/minus, charts) to lucide-react. --- web/src/components/dashboard/DashboardHeader.jsx | 6 +++--- web/src/components/dashboard/UptimePanel.jsx | 5 ++--- web/src/components/layout/HeaderBar/UserArea.jsx | 4 ++-- .../table/model-pricing/filter/PricingDisplaySettings.jsx | 2 +- web/src/i18n/locales/en.json | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/web/src/components/dashboard/DashboardHeader.jsx b/web/src/components/dashboard/DashboardHeader.jsx index f59aa0b8..e0be5d85 100644 --- a/web/src/components/dashboard/DashboardHeader.jsx +++ b/web/src/components/dashboard/DashboardHeader.jsx @@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com import React from 'react'; import { Button } from '@douyinfe/semi-ui'; -import { IconRefresh, IconSearch } from '@douyinfe/semi-icons'; +import { RefreshCw, Search } from 'lucide-react'; const DashboardHeader = ({ getGreeting, @@ -42,13 +42,13 @@ const DashboardHeader = ({
); diff --git a/web/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx b/web/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx index 05942279..9a372812 100644 --- a/web/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx +++ b/web/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx @@ -39,7 +39,7 @@ const PricingDisplaySettings = ({ const items = [ { value: 'recharge', - label: t('以充值价格显示') + label: t('充值价格显示') }, { value: 'ratio', diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index 4adcb131..1a453b1f 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -1788,7 +1788,7 @@ "将仅保留第一个密钥文件,其余文件将被移除,是否继续?": "Only the first key file will be retained, and the remaining files will be removed. Continue?", "自定义模型名称": "Custom model name", "启用全部密钥": "Enable all keys", - "以充值价格显示": "Recharge price", + "充值价格显示": "Recharge price", "美元汇率(非充值汇率,仅用于定价页面换算)": "USD exchange rate (not recharge rate, only used for pricing page conversion)", "美元汇率": "USD exchange rate", "隐藏操作项": "Hide actions",