feat(web): single node run

This commit is contained in:
zhaoying
2026-05-07 18:52:46 +08:00
parent 7b43e59172
commit 2234024aee
2 changed files with 5 additions and 7 deletions

View File

@@ -19,8 +19,8 @@ export default defineConfig([
ecmaVersion: 2020, ecmaVersion: 2020,
globals: globals.browser, globals: globals.browser,
}, },
linterOptions: { rules: {
'eslint@typescript-eslint/no-explicit-any': false '@typescript-eslint/no-explicit-any': false
} }
}, },
]) ])

View File

@@ -1,8 +1,8 @@
/* /*
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-05-07 18:37:31 * @Date: 2026-05-07 18:37:31
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-05-07 18:37:31 * @Last Modified time: 2026-05-07 18:51:58
*/ */
import { type FC, useState, useEffect } from 'react' import { type FC, useState, useEffect } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
@@ -148,8 +148,6 @@ const SingleNodeRun: FC<SingleNodeRunProps> = ({ open, onClose, selectedNode, ap
} }
}, [isAutoRun]) }, [isAutoRun])
console.log('isAutoRun', isAutoRun)
if (!open) return null if (!open) return null
return ( return (
@@ -291,7 +289,7 @@ const SingleNodeRun: FC<SingleNodeRunProps> = ({ open, onClose, selectedNode, ap
{/* Input / Output code blocks */} {/* Input / Output code blocks */}
{result && (['inputs', 'process', 'outputs'] as const).map(key => { {result && (['inputs', 'process', 'outputs'] as const).map(key => {
if (nodeData.node_type !== 'http-request' && key === 'process') return null if (nodeData.type !== 'http-request' && key === 'process') return null
const content = typeof result[key as keyof RunResult] === 'object' && result[key as keyof RunResult] ? JSON.stringify(result[key as keyof RunResult], null, 2) : result[key as keyof RunResult] ? result[key as keyof RunResult] : '{}' const content = typeof result[key as keyof RunResult] === 'object' && result[key as keyof RunResult] ? JSON.stringify(result[key as keyof RunResult], null, 2) : result[key as keyof RunResult] ? result[key as keyof RunResult] : '{}'
return ( return (
<div key={key} className="rb:bg-[#EBEBEB] rb:rounded-lg"> <div key={key} className="rb:bg-[#EBEBEB] rb:rounded-lg">