mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
chat upload file
This commit is contained in:
@ -9,7 +9,7 @@ import {
|
|||||||
} from '../../hooks'
|
} from '../../hooks'
|
||||||
import ParamConfig from './param-config'
|
import ParamConfig from './param-config'
|
||||||
import Switch from '@/app/components/base/switch'
|
import Switch from '@/app/components/base/switch'
|
||||||
import { FileSearch02 } from '@/app/components/base/icons/src/vender/solid/files'
|
import { File05 } from '@/app/components/base/icons/src/vender/solid/files'
|
||||||
|
|
||||||
type FileUploadProps = {
|
type FileUploadProps = {
|
||||||
onChange?: OnFeaturesChange
|
onChange?: OnFeaturesChange
|
||||||
@ -38,7 +38,7 @@ const FileUpload = ({
|
|||||||
return (
|
return (
|
||||||
<div className='flex items-center px-3 h-12 bg-gray-50 rounded-xl overflow-hidden'>
|
<div className='flex items-center px-3 h-12 bg-gray-50 rounded-xl overflow-hidden'>
|
||||||
<div className='shrink-0 flex items-center justify-center mr-1 w-6 h-6'>
|
<div className='shrink-0 flex items-center justify-center mr-1 w-6 h-6'>
|
||||||
<FileSearch02 className='shrink-0 w-4 h-4 text-[#039855]' />
|
<File05 className='shrink-0 w-4 h-4 text-[#6938EF]' />
|
||||||
</div>
|
</div>
|
||||||
<div className='shrink-0 mr-2 whitespace-nowrap text-sm text-gray-800 font-semibold'>
|
<div className='shrink-0 mr-2 whitespace-nowrap text-sm text-gray-800 font-semibold'>
|
||||||
{t('common.imageUploader.imageUpload')}
|
{t('common.imageUploader.imageUpload')}
|
||||||
|
|||||||
@ -66,7 +66,7 @@ const ParamConfigContent = ({
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<div className='leading-6 text-base font-semibold text-gray-800'>{t('appDebug.vision.visionSettings.title')}</div>
|
<div className='leading-6 text-base font-semibold text-gray-800'>{t('common.operation.settings')}</div>
|
||||||
<div className='pt-3 space-y-6'>
|
<div className='pt-3 space-y-6'>
|
||||||
<div>
|
<div>
|
||||||
<div className='mb-2 leading-[18px] text-[13px] font-semibold text-gray-800'>{t('appDebug.vision.visionSettings.uploadMethod')}</div>
|
<div className='mb-2 leading-[18px] text-[13px] font-semibold text-gray-800'>{t('appDebug.vision.visionSettings.uploadMethod')}</div>
|
||||||
|
|||||||
@ -28,20 +28,22 @@ const Features = () => {
|
|||||||
<div className='fixed top-16 left-2 bottom-2 w-[600px] rounded-2xl border-[0.5px] border-gray-200 bg-white shadow-xl z-10'>
|
<div className='fixed top-16 left-2 bottom-2 w-[600px] rounded-2xl border-[0.5px] border-gray-200 bg-white shadow-xl z-10'>
|
||||||
<div className='flex items-center justify-between px-4 pt-3'>
|
<div className='flex items-center justify-between px-4 pt-3'>
|
||||||
{t('workflow.common.features')}
|
{t('workflow.common.features')}
|
||||||
{
|
<div className='flex items-center'>
|
||||||
isChatMode && (
|
{
|
||||||
<div className='flex items-center'>
|
isChatMode && (
|
||||||
<FeaturesChoose onChange={handleFeaturesChange} />
|
<>
|
||||||
<div className='mx-3 w-[1px] h-[14px] bg-gray-200'></div>
|
<FeaturesChoose onChange={handleFeaturesChange} />
|
||||||
<div
|
<div className='mx-3 w-[1px] h-[14px] bg-gray-200'></div>
|
||||||
className='flex items-center justify-center w-6 h-6 cursor-pointer'
|
</>
|
||||||
onClick={() => setShowFeaturesPanel(false)}
|
)
|
||||||
>
|
}
|
||||||
<XClose className='w-4 h-4 text-gray-500' />
|
<div
|
||||||
</div>
|
className='flex items-center justify-center w-6 h-6 cursor-pointer'
|
||||||
</div>
|
onClick={() => setShowFeaturesPanel(false)}
|
||||||
)
|
>
|
||||||
}
|
<XClose className='w-4 h-4 text-gray-500' />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='p-4'>
|
<div className='p-4'>
|
||||||
<FeaturesPanel
|
<FeaturesPanel
|
||||||
|
|||||||
Reference in New Issue
Block a user