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,
globals: globals.browser,
},
linterOptions: {
'eslint@typescript-eslint/no-explicit-any': false
rules: {
'@typescript-eslint/no-explicit-any': false
}
},
])

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing
* @Date: 2026-05-07 18:37:31
* @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 { useTranslation } from 'react-i18next'
@@ -148,8 +148,6 @@ const SingleNodeRun: FC<SingleNodeRunProps> = ({ open, onClose, selectedNode, ap
}
}, [isAutoRun])
console.log('isAutoRun', isAutoRun)
if (!open) return null
return (
@@ -291,7 +289,7 @@ const SingleNodeRun: FC<SingleNodeRunProps> = ({ open, onClose, selectedNode, ap
{/* Input / Output code blocks */}
{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] : '{}'
return (
<div key={key} className="rb:bg-[#EBEBEB] rb:rounded-lg">