|
|
|
@ -10,6 +10,7 @@ import type { HttpNodeType } from './types'
|
|
|
|
import Timeout from './components/timeout'
|
|
|
|
import Timeout from './components/timeout'
|
|
|
|
import CurlPanel from './components/curl-panel'
|
|
|
|
import CurlPanel from './components/curl-panel'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
|
|
|
|
import Switch from '@/app/components/base/switch'
|
|
|
|
import Field from '@/app/components/workflow/nodes/_base/components/field'
|
|
|
|
import Field from '@/app/components/workflow/nodes/_base/components/field'
|
|
|
|
import Split from '@/app/components/workflow/nodes/_base/components/split'
|
|
|
|
import Split from '@/app/components/workflow/nodes/_base/components/split'
|
|
|
|
import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'
|
|
|
|
import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'
|
|
|
|
@ -47,6 +48,7 @@ const Panel: FC<NodePanelProps<HttpNodeType>> = ({
|
|
|
|
showCurlPanel,
|
|
|
|
showCurlPanel,
|
|
|
|
hideCurlPanel,
|
|
|
|
hideCurlPanel,
|
|
|
|
handleCurlImport,
|
|
|
|
handleCurlImport,
|
|
|
|
|
|
|
|
handleSSLVerifyChange,
|
|
|
|
} = useConfig(id, data)
|
|
|
|
} = useConfig(id, data)
|
|
|
|
// To prevent prompt editor in body not update data.
|
|
|
|
// To prevent prompt editor in body not update data.
|
|
|
|
if (!isDataReady)
|
|
|
|
if (!isDataReady)
|
|
|
|
@ -124,6 +126,17 @@ const Panel: FC<NodePanelProps<HttpNodeType>> = ({
|
|
|
|
onChange={setBody}
|
|
|
|
onChange={setBody}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Field>
|
|
|
|
</Field>
|
|
|
|
|
|
|
|
<Field
|
|
|
|
|
|
|
|
title={t(`${i18nPrefix}.verifySSL`)}
|
|
|
|
|
|
|
|
operations={
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
|
|
|
|
defaultValue={!!inputs.ssl_verify}
|
|
|
|
|
|
|
|
onChange={handleSSLVerifyChange}
|
|
|
|
|
|
|
|
size='md'
|
|
|
|
|
|
|
|
disabled={readOnly}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
}>
|
|
|
|
|
|
|
|
</Field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Split />
|
|
|
|
<Split />
|
|
|
|
<Timeout
|
|
|
|
<Timeout
|
|
|
|
|