mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 06:45:58 +08:00
chore: loop node debug remove before form panel
This commit is contained in:
parent
a00e45b257
commit
6a5653639a
@ -12,6 +12,7 @@ import useQuestionClassifierSingleRunFormParams from '../../../../question-class
|
|||||||
import useHttpRequestSingleRunFormParams from '../../../../http/use-single-run-form-params'
|
import useHttpRequestSingleRunFormParams from '../../../../http/use-single-run-form-params'
|
||||||
import useIterationSingleRunFormParams from '../../../../iteration/use-single-run-form-params'
|
import useIterationSingleRunFormParams from '../../../../iteration/use-single-run-form-params'
|
||||||
import useDocExtractorSingleRunFormParams from '../../../../document-extractor/use-single-run-form-params'
|
import useDocExtractorSingleRunFormParams from '../../../../document-extractor/use-single-run-form-params'
|
||||||
|
import useLoopSingleRunFormParams from '../../../../loop/use-single-run-form-params'
|
||||||
import { BlockEnum } from '@/app/components/workflow/types'
|
import { BlockEnum } from '@/app/components/workflow/types'
|
||||||
import {
|
import {
|
||||||
useNodesSyncDraft,
|
useNodesSyncDraft,
|
||||||
@ -29,7 +30,7 @@ const singleRunFormParamsHooks: Record<BlockEnum, any> = {
|
|||||||
[BlockEnum.Iteration]: useIterationSingleRunFormParams,
|
[BlockEnum.Iteration]: useIterationSingleRunFormParams,
|
||||||
[BlockEnum.Agent]: undefined,
|
[BlockEnum.Agent]: undefined,
|
||||||
[BlockEnum.DocExtractor]: useDocExtractorSingleRunFormParams,
|
[BlockEnum.DocExtractor]: useDocExtractorSingleRunFormParams,
|
||||||
[BlockEnum.Loop]: undefined,
|
[BlockEnum.Loop]: useLoopSingleRunFormParams,
|
||||||
[BlockEnum.Start]: undefined,
|
[BlockEnum.Start]: undefined,
|
||||||
[BlockEnum.End]: undefined,
|
[BlockEnum.End]: undefined,
|
||||||
[BlockEnum.Answer]: undefined,
|
[BlockEnum.Answer]: undefined,
|
||||||
|
@ -3,7 +3,6 @@ import React, { useMemo } from 'react'
|
|||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { RiAddLine } from '@remixicon/react'
|
import { RiAddLine } from '@remixicon/react'
|
||||||
import Split from '../_base/components/split'
|
import Split from '../_base/components/split'
|
||||||
import ResultPanel from '../../run/result-panel'
|
|
||||||
import InputNumberWithSlider from '../_base/components/input-number-with-slider'
|
import InputNumberWithSlider from '../_base/components/input-number-with-slider'
|
||||||
import type { LoopNodeType } from './types'
|
import type { LoopNodeType } from './types'
|
||||||
import useConfig from './use-config'
|
import useConfig from './use-config'
|
||||||
@ -11,7 +10,6 @@ import ConditionWrap from './components/condition-wrap'
|
|||||||
import LoopVariable from './components/loop-variables'
|
import LoopVariable from './components/loop-variables'
|
||||||
import type { NodePanelProps } from '@/app/components/workflow/types'
|
import type { NodePanelProps } from '@/app/components/workflow/types'
|
||||||
import Field from '@/app/components/workflow/nodes/_base/components/field'
|
import Field from '@/app/components/workflow/nodes/_base/components/field'
|
||||||
import BeforeRunForm from '@/app/components/workflow/nodes/_base/components/before-run-form'
|
|
||||||
import formatTracing from '@/app/components/workflow/run/utils/format-log'
|
import formatTracing from '@/app/components/workflow/run/utils/format-log'
|
||||||
|
|
||||||
import { useLogs } from '@/app/components/workflow/run/hooks'
|
import { useLogs } from '@/app/components/workflow/run/hooks'
|
||||||
@ -30,11 +28,6 @@ const Panel: FC<NodePanelProps<LoopNodeType>> = ({
|
|||||||
inputs,
|
inputs,
|
||||||
childrenNodeVars,
|
childrenNodeVars,
|
||||||
loopChildrenNodes,
|
loopChildrenNodes,
|
||||||
isShowSingleRun,
|
|
||||||
hideSingleRun,
|
|
||||||
runningStatus,
|
|
||||||
handleRun,
|
|
||||||
handleStop,
|
|
||||||
runResult,
|
runResult,
|
||||||
loopRunResult,
|
loopRunResult,
|
||||||
handleAddCondition,
|
handleAddCondition,
|
||||||
@ -139,20 +132,6 @@ const Panel: FC<NodePanelProps<LoopNodeType>> = ({
|
|||||||
</Select>
|
</Select>
|
||||||
</Field>
|
</Field>
|
||||||
</div> */}
|
</div> */}
|
||||||
{isShowSingleRun && (
|
|
||||||
<BeforeRunForm
|
|
||||||
nodeName={inputs.title}
|
|
||||||
onHide={hideSingleRun}
|
|
||||||
forms={[]}
|
|
||||||
runningStatus={runningStatus}
|
|
||||||
onRun={handleRun}
|
|
||||||
onStop={handleStop}
|
|
||||||
{...logsParams}
|
|
||||||
result={
|
|
||||||
<ResultPanel {...runResult} showSteps={false} nodeInfo={nodeInfo} {...logsParams} />
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
const useSingleRunFormParams = () => {
|
||||||
|
return {
|
||||||
|
forms: [],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default useSingleRunFormParams
|
Loading…
x
Reference in New Issue
Block a user