From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/workflow/block-icon.tsx |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/app/components/workflow/block-icon.tsx b/app/components/workflow/block-icon.tsx
index 1e76efc..1001e98 100644
--- a/app/components/workflow/block-icon.tsx
+++ b/app/components/workflow/block-icon.tsx
@@ -2,7 +2,6 @@
 import { memo } from 'react'
 import { BlockEnum } from './types'
 import {
-  Agent,
   Answer,
   Assigner,
   Code,
@@ -15,8 +14,6 @@
   KnowledgeRetrieval,
   ListFilter,
   Llm,
-  Loop,
-  LoopEnd,
   ParameterExtractor,
   QuestionClassifier,
   TemplatingTransform,
@@ -53,13 +50,9 @@
     [BlockEnum.Tool]: <VariableX className={className} />,
     [BlockEnum.IterationStart]: <VariableX className={className} />,
     [BlockEnum.Iteration]: <Iteration className={className} />,
-    [BlockEnum.LoopStart]: <VariableX className={className} />,
-    [BlockEnum.Loop]: <Loop className={className} />,
-    [BlockEnum.LoopEnd]: <LoopEnd className={className} />,
     [BlockEnum.ParameterExtractor]: <ParameterExtractor className={className} />,
     [BlockEnum.DocExtractor]: <DocsExtractor className={className} />,
     [BlockEnum.ListFilter]: <ListFilter className={className} />,
-    [BlockEnum.Agent]: <Agent className={className} />,
   }[type]
 }
 const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
@@ -69,8 +62,6 @@
   [BlockEnum.End]: 'bg-util-colors-warning-warning-500',
   [BlockEnum.IfElse]: 'bg-util-colors-cyan-cyan-500',
   [BlockEnum.Iteration]: 'bg-util-colors-cyan-cyan-500',
-  [BlockEnum.Loop]: 'bg-util-colors-cyan-cyan-500',
-  [BlockEnum.LoopEnd]: 'bg-util-colors-warning-warning-500',
   [BlockEnum.HttpRequest]: 'bg-util-colors-violet-violet-500',
   [BlockEnum.Answer]: 'bg-util-colors-warning-warning-500',
   [BlockEnum.KnowledgeRetrieval]: 'bg-util-colors-green-green-500',
@@ -82,7 +73,6 @@
   [BlockEnum.ParameterExtractor]: 'bg-util-colors-blue-blue-500',
   [BlockEnum.DocExtractor]: 'bg-util-colors-green-green-500',
   [BlockEnum.ListFilter]: 'bg-util-colors-cyan-cyan-500',
-  [BlockEnum.Agent]: 'bg-util-colors-indigo-indigo-500',
 }
 const BlockIcon: FC<BlockIconProps> = ({
   type,
@@ -111,7 +101,7 @@
               typeof toolIcon === 'string'
                 ? (
                   <div
-                    className='h-full w-full shrink-0 rounded-md bg-cover bg-center'
+                    className='shrink-0 w-full h-full bg-cover bg-center rounded-md'
                     style={{
                       backgroundImage: `url(${toolIcon})`,
                     }}
@@ -119,7 +109,7 @@
                 )
                 : (
                   <AppIcon
-                    className='!h-full !w-full shrink-0'
+                    className='shrink-0 !w-full !h-full'
                     size='tiny'
                     icon={toolIcon?.content}
                     background={toolIcon?.background}

--
Gitblit v1.8.0