From 6f3ee2e0c239ea52e5906e17afd394763ee1485c Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 19 Nov 2025 18:44:11 +0800 Subject: [PATCH] Feat: Replace the icon of the variable assignment operator --- web/public/iconfont.js | 10 ++++++++++ web/src/pages/agent/operator-icon.tsx | 15 +++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/web/public/iconfont.js b/web/public/iconfont.js index b7b426074..bd97aeb5a 100644 --- a/web/public/iconfont.js +++ b/web/public/iconfont.js @@ -140,6 +140,16 @@ ` + + ` + + ` + + ` + + ` + + ` + + +` + ''), ((h) => { var a = (l = (l = document.getElementsByTagName('script'))[ diff --git a/web/src/pages/agent/operator-icon.tsx b/web/src/pages/agent/operator-icon.tsx index 44fe9d01a..bca93d7fa 100644 --- a/web/src/pages/agent/operator-icon.tsx +++ b/web/src/pages/agent/operator-icon.tsx @@ -12,9 +12,9 @@ import { ReactComponent as WenCaiIcon } from '@/assets/svg/wencai.svg'; import { ReactComponent as WikipediaIcon } from '@/assets/svg/wikipedia.svg'; import { ReactComponent as YahooFinanceIcon } from '@/assets/svg/yahoo-finance.svg'; -import { IconFont } from '@/components/icon-font'; +import { IconFontFill } from '@/components/icon-font'; import { cn } from '@/lib/utils'; -import { Columns3, Equal, FileCode, HousePlus, Variable } from 'lucide-react'; +import { FileCode, HousePlus } from 'lucide-react'; import { Operator } from './constant'; interface IProps { @@ -37,6 +37,9 @@ export const OperatorIconMap = { [Operator.ExeSQL]: 'executesql-0', [Operator.Invoke]: 'httprequest-0', [Operator.Email]: 'sendemail-0', + [Operator.ListOperations]: 'a-listoperations', + [Operator.VariableAssigner]: 'a-ariableassigner', + [Operator.VariableAggregator]: 'aggregator', }; export const SVGIconMap = { @@ -57,9 +60,6 @@ export const SVGIconMap = { }; export const LucideIconMap = { [Operator.DataOperations]: FileCode, - [Operator.ListOperations]: Columns3, - [Operator.VariableAssigner]: Equal, - [Operator.VariableAggregator]: Variable, }; const Empty = () => { @@ -86,7 +86,10 @@ const OperatorIcon = ({ name, className }: IProps) => { if (Icon) { return ( - + ); }