From e4fdf1730e5a3280101da7df941d0f3940d0062d Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 19 Mar 2024 17:03:59 +0800 Subject: [PATCH] chore: change output --- .../components/workflow/nodes/http/panel.tsx | 5 +++++ .../components/workflow/nodes/start/panel.tsx | 2 +- .../components/workflow/nodes/tool/panel.tsx | 22 ------------------- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 5 files changed, 8 insertions(+), 23 deletions(-) diff --git a/web/app/components/workflow/nodes/http/panel.tsx b/web/app/components/workflow/nodes/http/panel.tsx index 0a214d142a..d1e9a2ad28 100644 --- a/web/app/components/workflow/nodes/http/panel.tsx +++ b/web/app/components/workflow/nodes/http/panel.tsx @@ -163,6 +163,11 @@ const Panel: FC> = ({ type='object' description={t(`${i18nPrefix}.outputVars.headers`)} /> + diff --git a/web/app/components/workflow/nodes/start/panel.tsx b/web/app/components/workflow/nodes/start/panel.tsx index 31b549f2eb..a109a2ddd0 100644 --- a/web/app/components/workflow/nodes/start/panel.tsx +++ b/web/app/components/workflow/nodes/start/panel.tsx @@ -80,7 +80,7 @@ const Panel: FC> = ({ /> */} diff --git a/web/app/components/workflow/nodes/tool/panel.tsx b/web/app/components/workflow/nodes/tool/panel.tsx index 4349801864..81456095c5 100644 --- a/web/app/components/workflow/nodes/tool/panel.tsx +++ b/web/app/components/workflow/nodes/tool/panel.tsx @@ -128,28 +128,6 @@ const Panel: FC> = ({ name='files' type='Array[File]' description={t(`${i18nPrefix}.outputVars.files.title`)} - subItems={[ - { - name: 'type', - type: 'string', - description: t(`${i18nPrefix}.outputVars.files.type`), - }, - { - name: 'transfer_method', - type: 'string', - description: t(`${i18nPrefix}.outputVars.files.transfer_method`), - }, - { - name: 'url', - type: 'string', - description: t(`${i18nPrefix}.outputVars.files.url`), - }, - { - name: 'upload_file_id', - type: 'string', - description: t(`${i18nPrefix}.outputVars.files.upload_file_id`), - }, - ]} /> diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 2c4cd1cc59..c092d60882 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -197,6 +197,7 @@ const translation = { body: 'Response Content', statusCode: 'Response Status Code', headers: 'Response Header List JSON', + files: 'Files List', }, authorization: { 'authorization': 'Authorization', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index ce00caf520..620d21a996 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -197,6 +197,7 @@ const translation = { body: '响应内容', statusCode: '响应状态码', headers: '响应头列表 JSON', + files: '文件列表', }, authorization: { 'authorization': '鉴权',