mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix details
This commit is contained in:
parent
101635d735
commit
b2a6b3819f
|
@ -101,7 +101,7 @@ const CurlPanel: FC<Props> = ({ nodeId, isShow, onHide, handleCurlImport }) => {
|
|||
|
||||
return (
|
||||
<Modal
|
||||
title="Import From curl"
|
||||
title={t('workflow.nodes.http.curl.title')}
|
||||
isShow={isShow}
|
||||
onClose={onHide}
|
||||
className='!w-[400px] !max-w-[400px] !p-4'
|
||||
|
@ -111,7 +111,7 @@ const CurlPanel: FC<Props> = ({ nodeId, isShow, onHide, handleCurlImport }) => {
|
|||
value={inputString}
|
||||
className='w-full my-3 p-3 text-sm text-gray-900 border-0 rounded-lg grow bg-gray-100 focus:outline-none focus:ring-1 focus:ring-inset focus:ring-gray-200 h-40'
|
||||
onChange={e => setInputString(e.target.value)}
|
||||
placeholder="Paste curl string here"
|
||||
placeholder={t('workflow.nodes.http.curl.placeholder')!}
|
||||
/>
|
||||
</div>
|
||||
<div className='mt-4 flex justify-end space-x-2'>
|
||||
|
|
|
@ -14,6 +14,7 @@ import Field from '@/app/components/workflow/nodes/_base/components/field'
|
|||
import Split from '@/app/components/workflow/nodes/_base/components/split'
|
||||
import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'
|
||||
import { Settings01 } from '@/app/components/base/icons/src/vender/line/general'
|
||||
import { FileArrow01 } from '@/app/components/base/icons/src/vender/line/files'
|
||||
import type { NodePanelProps } from '@/app/components/workflow/types'
|
||||
import BeforeRunForm from '@/app/components/workflow/nodes/_base/components/before-run-form'
|
||||
import ResultPanel from '@/app/components/workflow/run/result-panel'
|
||||
|
@ -80,9 +81,9 @@ const Panel: FC<NodePanelProps<HttpNodeType>> = ({
|
|||
onClick={showCurlPanel}
|
||||
className={cn(!readOnly && 'cursor-pointer hover:bg-gray-50', 'flex items-center h-6 space-x-1 px-2 rounded-md ')}
|
||||
>
|
||||
{!readOnly && <Settings01 className='w-3 h-3 text-gray-500' />}
|
||||
{!readOnly && <FileArrow01 className='w-3 h-3 text-gray-500' />}
|
||||
<div className='text-xs font-medium text-gray-500'>
|
||||
{ '导入curl' }
|
||||
{t(`${i18nPrefix}.curl.title`)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -395,6 +395,10 @@ const translation = {
|
|||
writeLabel: 'Write Timeout',
|
||||
writePlaceholder: 'Enter write timeout in seconds',
|
||||
},
|
||||
curl: {
|
||||
title: 'Import from cURL',
|
||||
placeholder: 'Paste cURL string here',
|
||||
},
|
||||
},
|
||||
code: {
|
||||
inputVars: 'Input Variables',
|
||||
|
|
|
@ -395,6 +395,10 @@ const translation = {
|
|||
writeLabel: '写入超时',
|
||||
writePlaceholder: '输入写入超时(以秒为单位)',
|
||||
},
|
||||
curl: {
|
||||
title: '导入cURL',
|
||||
placeholder: '粘贴 cURL 字符串',
|
||||
},
|
||||
},
|
||||
code: {
|
||||
inputVars: '输入变量',
|
||||
|
|
Loading…
Reference in New Issue
Block a user