feat(dify): 把本地控制台的中文与去外链改动入库

这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 09:44:09 +08:00
1 parent 9c7c80e194
commit c2cb845a32
211 files changed
+3030 -2794

No files matched your search

@@ -29,14 +29,11 @@ describe('StepThree', () => {
expect(screen.queryByText('datasetCreation.stepThree.creationTitle')).not.toBeInTheDocument()
})
it('links to the document-processing documentation', () => {
it('does not link the document-processing note to the official documentation site', () => {
render(<StepThree />)
expect(
screen.getByRole('link', { name: 'datasetPipeline.addDocuments.stepThree.learnMore' }),
).toHaveAttribute(
'href',
'https://docs.dify.ai/use-dify/knowledge/integrate-knowledge-within-application',
)
screen.queryByRole('link', { name: 'datasetPipeline.addDocuments.stepThree.learnMore' }),
).not.toBeInTheDocument()
})
})
@@ -6,7 +6,6 @@ import { RiBookOpenLine } from '@remixicon/react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import AppIcon from '@/app/components/base/app-icon'
import { useDocLink } from '@/context/i18n'
import EmbeddingProcess from '../embedding-process'
type StepThreeProps = {
@@ -25,9 +24,7 @@ const StepThree = ({
retrievalMethod,
}: StepThreeProps) => {
const { t } = useTranslation(['datasetCreation', 'datasetPipeline'])
const docLink = useDocLink()
// The creation response carries no icon; new knowledge bases start with the default one.
// The creation response carries no icon; new knowledge bases start with the default one.
const iconInfo = {
icon: '📙',
icon_type: 'emoji',
@@ -91,14 +88,6 @@ const StepThree = ({
<div className="text-text-tertiary">
{t(($) => $['stepThree.sideTipContent'], { ns: 'datasetCreation' })}
</div>
<a
href={docLink('/use-dify/knowledge/integrate-knowledge-within-application')}
target="_blank"
rel="noreferrer noopener"
className="system-sm-regular text-text-accent"
>
{t(($) => $['addDocuments.stepThree.learnMore'], { ns: 'datasetPipeline' })}
</a>
</div>
</div>
</div>