mirror of
https://github.com/langgenius/dify.git
synced 2026-04-24 09:06:42 +08:00
Merge remote-tracking branch 'origin/feat/rag-2' into feat/rag-2
This commit is contained in:
commit
786d121fdf
@ -4,6 +4,8 @@ import Button from '@/app/components/base/button'
|
|||||||
import { RiBookOpenLine, RiEqualizer2Line } from '@remixicon/react'
|
import { RiBookOpenLine, RiEqualizer2Line } from '@remixicon/react'
|
||||||
import type { CredentialSelectorProps } from './credential-selector'
|
import type { CredentialSelectorProps } from './credential-selector'
|
||||||
import CredentialSelector from './credential-selector'
|
import CredentialSelector from './credential-selector'
|
||||||
|
import Tooltip from '@/app/components/base/tooltip'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
type HeaderProps = {
|
type HeaderProps = {
|
||||||
docTitle: string
|
docTitle: string
|
||||||
@ -17,6 +19,8 @@ const Header = ({
|
|||||||
onClickConfiguration,
|
onClickConfiguration,
|
||||||
...rest
|
...rest
|
||||||
}: HeaderProps) => {
|
}: HeaderProps) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex items-center gap-x-2'>
|
<div className='flex items-center gap-x-2'>
|
||||||
<div className='flex shrink-0 grow items-center gap-x-1'>
|
<div className='flex shrink-0 grow items-center gap-x-1'>
|
||||||
@ -24,16 +28,21 @@ const Header = ({
|
|||||||
{...rest}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
<Divider type='vertical' className='mx-1 h-3.5' />
|
<Divider type='vertical' className='mx-1 h-3.5' />
|
||||||
<Button
|
<Tooltip
|
||||||
variant='ghost'
|
popupContent={t('datasetPipeline.configurationTip', { pluginName: rest.pluginName })}
|
||||||
size='small'
|
position='top'
|
||||||
className='size-6 px-1'
|
|
||||||
>
|
>
|
||||||
<RiEqualizer2Line
|
<Button
|
||||||
className='h-4 w-4'
|
variant='ghost'
|
||||||
onClick={onClickConfiguration}
|
size='small'
|
||||||
/>
|
className='size-6 px-1'
|
||||||
</Button>
|
>
|
||||||
|
<RiEqualizer2Line
|
||||||
|
className='h-4 w-4'
|
||||||
|
onClick={onClickConfiguration}
|
||||||
|
/>
|
||||||
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
className='system-xs-medium flex items-center gap-x-1 overflow-hidden text-text-accent'
|
className='system-xs-medium flex items-center gap-x-1 overflow-hidden text-text-accent'
|
||||||
|
|||||||
@ -133,6 +133,7 @@ const translation = {
|
|||||||
credentialSelector: {
|
credentialSelector: {
|
||||||
name: '{{credentialName}}\'s {{pluginName}}',
|
name: '{{credentialName}}\'s {{pluginName}}',
|
||||||
},
|
},
|
||||||
|
configurationTip: 'Configure {{pluginName}}',
|
||||||
conversion: {
|
conversion: {
|
||||||
title: 'Convert to Knowledge Pipeline',
|
title: 'Convert to Knowledge Pipeline',
|
||||||
descriptionChunk1: 'You can now convert your existing knowledge base to use the Knowledge Pipeline for document processing',
|
descriptionChunk1: 'You can now convert your existing knowledge base to use the Knowledge Pipeline for document processing',
|
||||||
|
|||||||
@ -133,6 +133,7 @@ const translation = {
|
|||||||
credentialSelector: {
|
credentialSelector: {
|
||||||
name: '{{credentialName}} 的 {{pluginName}}',
|
name: '{{credentialName}} 的 {{pluginName}}',
|
||||||
},
|
},
|
||||||
|
configurationTip: '配置 {{pluginName}}',
|
||||||
conversion: {
|
conversion: {
|
||||||
title: '转换为知识库 pipeline',
|
title: '转换为知识库 pipeline',
|
||||||
descriptionChunk1: '您现在可以将现有知识库转换为使用知识库 pipeline 来处理文档',
|
descriptionChunk1: '您现在可以将现有知识库转换为使用知识库 pipeline 来处理文档',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user