From 320a1c22fcbe15cd1038c50dfdf4ca07a596f09f Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Fri, 21 Mar 2025 10:46:07 +0800 Subject: [PATCH] fix: loop node icon --- .../icons/assets/vender/workflow/loop.svg | 5 +++ .../base/icons/src/vender/workflow/Loop.json | 38 +++++++++++++++++++ .../base/icons/src/vender/workflow/Loop.tsx | 20 ++++++++++ .../base/icons/src/vender/workflow/index.ts | 1 + 4 files changed, 64 insertions(+) create mode 100644 web/app/components/base/icons/assets/vender/workflow/loop.svg create mode 100644 web/app/components/base/icons/src/vender/workflow/Loop.json create mode 100644 web/app/components/base/icons/src/vender/workflow/Loop.tsx diff --git a/web/app/components/base/icons/assets/vender/workflow/loop.svg b/web/app/components/base/icons/assets/vender/workflow/loop.svg new file mode 100644 index 0000000000..6692c4dace --- /dev/null +++ b/web/app/components/base/icons/assets/vender/workflow/loop.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/web/app/components/base/icons/src/vender/workflow/Loop.json b/web/app/components/base/icons/src/vender/workflow/Loop.json new file mode 100644 index 0000000000..65a70d82a1 --- /dev/null +++ b/web/app/components/base/icons/src/vender/workflow/Loop.json @@ -0,0 +1,38 @@ +{ + "icon": { + "type": "element", + "isRootNode": true, + "name": "svg", + "attributes": { + "width": "18", + "height": "16", + "viewBox": "0 0 18 16", + "fill": "none", + "xmlns": "http://www.w3.org/2000/svg" + }, + "children": [ + { + "type": "element", + "name": "g", + "attributes": { + "id": "loop" + }, + "children": [ + { + "type": "element", + "name": "path", + "attributes": { + "id": "Vector", + "fill-rule": "evenodd", + "clip-rule": "evenodd", + "d": "M2.02915 5.34506C3.50752 3.88498 5.9006 3.88498 7.37896 5.34506L8.99983 6.94588L10.6207 5.34506C12.0991 3.88499 14.4921 3.88498 15.9705 5.34506C17.454 6.81027 17.454 9.18971 15.9705 10.6549C14.4921 12.115 12.0991 12.115 10.6207 10.655L8.99983 9.05413L7.37896 10.655C5.9006 12.115 3.50753 12.115 2.02916 10.655C0.545627 9.18974 0.545611 6.81028 2.02915 5.34506ZM7.93251 8L6.32492 6.4123C5.4308 5.52924 3.97732 5.52923 3.08319 6.4123C2.19426 7.29026 2.19426 8.70975 3.0832 9.58772C3.97733 10.4708 5.4308 10.4707 6.32492 9.58771C6.32492 9.58772 6.32492 9.58771 6.32492 9.58771L7.93251 8ZM10.0671 8L11.6747 9.5877C11.6747 9.58769 11.6747 9.58771 11.6747 9.5877C12.5688 10.4707 14.0223 10.4707 14.9165 9.58773C15.8054 8.70975 15.8054 7.29024 14.9165 6.41229C14.0223 5.52923 12.5689 5.52924 11.6747 6.4123C11.6747 6.4123 11.6747 6.41229 11.6747 6.4123L10.0671 8Z", + "fill": "currentColor" + }, + "children": [] + } + ] + } + ] + }, + "name": "Loop" +} \ No newline at end of file diff --git a/web/app/components/base/icons/src/vender/workflow/Loop.tsx b/web/app/components/base/icons/src/vender/workflow/Loop.tsx new file mode 100644 index 0000000000..3ac3ffd72a --- /dev/null +++ b/web/app/components/base/icons/src/vender/workflow/Loop.tsx @@ -0,0 +1,20 @@ +// GENERATE BY script +// DON NOT EDIT IT MANUALLY + +import * as React from 'react' +import data from './Loop.json' +import IconBase from '@/app/components/base/icons/IconBase' +import type { IconData } from '@/app/components/base/icons/IconBase' + +const Icon = ( + { + ref, + ...props + }: React.SVGProps & { + ref?: React.RefObject>; + }, +) => + +Icon.displayName = 'Loop' + +export default Icon diff --git a/web/app/components/base/icons/src/vender/workflow/index.ts b/web/app/components/base/icons/src/vender/workflow/index.ts index 11ce55b130..284be92712 100644 --- a/web/app/components/base/icons/src/vender/workflow/index.ts +++ b/web/app/components/base/icons/src/vender/workflow/index.ts @@ -13,6 +13,7 @@ export { default as Jinja } from './Jinja' export { default as KnowledgeRetrieval } from './KnowledgeRetrieval' export { default as ListFilter } from './ListFilter' export { default as Llm } from './Llm' +export { default as Loop } from './Loop' export { default as ParameterExtractor } from './ParameterExtractor' export { default as QuestionClassifier } from './QuestionClassifier' export { default as TemplatingTransform } from './TemplatingTransform'