From 5a85f0d427537e552d3471aeaf5adcd4bd8c37ba Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 7 Aug 2024 18:01:00 +0800 Subject: [PATCH] chore: hide workflow run detail --- app/components/workflow/node.tsx | 51 -------------------------------- config/index.ts | 2 +- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/app/components/workflow/node.tsx b/app/components/workflow/node.tsx index 4123003..fb396ea 100644 --- a/app/components/workflow/node.tsx +++ b/app/components/workflow/node.tsx @@ -3,13 +3,10 @@ import type { FC } from 'react' import { useEffect, useState } from 'react' import cn from 'classnames' import BlockIcon from './block-icon' -import CodeEditor from './code-editor' -import { CodeLanguage } from '@/types/app' import AlertCircle from '@/app/components/base/icons/line/alert-circle' import AlertTriangle from '@/app/components/base/icons/line/alert-triangle' import Loading02 from '@/app/components/base/icons/line/loading-02' import CheckCircle from '@/app/components/base/icons/line/check-circle' -import ChevronRight from '@/app/components/base/icons/line/chevron-right' import type { NodeTracing } from '@/types/app' type Props = { @@ -52,12 +49,6 @@ const NodePanel: FC = ({ nodeInfo, hideInfo = false }) => { )} onClick={() => setCollapseState(!collapseState)} > -
= ({ nodeInfo, hideInfo = false }) => {
)} - {!collapseState && ( -
-
- {nodeInfo.status === 'failed' && ( -
{nodeInfo.error}
- )} -
- {nodeInfo.inputs && ( -
- INPUT
} - language={CodeLanguage.json} - value={nodeInfo.inputs} - isJSONStringifyBeauty - /> -
- )} - {nodeInfo.process_data && ( -
- PROCESS DATA
} - language={CodeLanguage.json} - value={nodeInfo.process_data} - isJSONStringifyBeauty - /> - - )} - {nodeInfo.outputs && ( -
- OUTPUT
} - language={CodeLanguage.json} - value={nodeInfo.outputs} - isJSONStringifyBeauty - /> - - )} - - )} ) diff --git a/config/index.ts b/config/index.ts index f98dc58..eb726f1 100644 --- a/config/index.ts +++ b/config/index.ts @@ -7,7 +7,7 @@ export const APP_INFO: AppInfo = { description: '', copyright: '', privacy_policy: '', - default_language: 'es', + default_language: 'en', } export const isShowPrompt = false