mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
checklist & datasource icon
This commit is contained in:
@ -146,7 +146,7 @@ const BaseNode: FC<BaseNodeProps> = ({
|
||||
data.type === BlockEnum.DataSource && (
|
||||
<div className='absolute inset-[-2px] top-[-22px] z-[-1] rounded-[18px] bg-node-data-source-bg p-0.5 backdrop-blur-[6px]'>
|
||||
<div className='system-2xs-semibold-uppercase flex h-5 items-center px-2.5 text-text-tertiary'>
|
||||
data source
|
||||
{t('workflow.blocks.data-source')}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -65,14 +65,17 @@ const Panel: FC<NodePanelProps<DataSourceNodeType>> = ({ id, data }) => {
|
||||
<GroupWithBox boxProps={{ withBorderBottom: true }}>
|
||||
<Field
|
||||
fieldTitleProps={{
|
||||
title: 'supported file formats',
|
||||
title: t('workflow.nodes.dataSource.supportedFileFormats'),
|
||||
}}
|
||||
>
|
||||
<TagInput
|
||||
items={fileExtensions}
|
||||
onChange={handleFileExtensionsChange}
|
||||
placeholder='File extension, e.g. doc'
|
||||
/>
|
||||
<div className='rounded-lg bg-components-input-bg-normal p-1 pt-0'>
|
||||
<TagInput
|
||||
items={fileExtensions}
|
||||
onChange={handleFileExtensionsChange}
|
||||
placeholder={t('workflow.nodes.dataSource.supportedFileFormatsPlaceholder')}
|
||||
inputClassName='bg-transparent'
|
||||
/>
|
||||
</div>
|
||||
</Field>
|
||||
</GroupWithBox>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user