From 78e55509aed70ab4e24d4873068f4393053656da Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sat, 25 Apr 2026 21:38:52 +0800 Subject: [PATCH] fix(web): add Page component icon and fix label in plugin component list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add PanelTop icon for Page components in the plugin detail component list. Change zh-Hans label from '扩展页' to '页面' for consistency. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../plugin-installed/PluginComponentList.tsx | 10 +++++++++- web/src/i18n/locales/zh-Hans.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/src/app/home/plugins/components/plugin-installed/PluginComponentList.tsx b/web/src/app/home/plugins/components/plugin-installed/PluginComponentList.tsx index 9c994765..e07fd6e4 100644 --- a/web/src/app/home/plugins/components/plugin-installed/PluginComponentList.tsx +++ b/web/src/app/home/plugins/components/plugin-installed/PluginComponentList.tsx @@ -1,5 +1,12 @@ import { TFunction } from 'i18next'; -import { Wrench, AudioWaveform, Hash, Book, FileText } from 'lucide-react'; +import { + Wrench, + AudioWaveform, + Hash, + Book, + FileText, + PanelTop, +} from 'lucide-react'; import { Badge } from '@/components/ui/badge'; export default function PluginComponentList({ @@ -23,6 +30,7 @@ export default function PluginComponentList({ Command: , KnowledgeEngine: , Parser: , + Page: , }; const componentKindList = Object.keys(components || {}); diff --git a/web/src/i18n/locales/zh-Hans.ts b/web/src/i18n/locales/zh-Hans.ts index 8641428b..688dfe89 100644 --- a/web/src/i18n/locales/zh-Hans.ts +++ b/web/src/i18n/locales/zh-Hans.ts @@ -467,7 +467,7 @@ const zhHans = { Command: '命令', KnowledgeEngine: '知识引擎', Parser: '解析器', - Page: '扩展页', + Page: '页面', }, uploadLocal: '本地上传', debugging: '调试中',