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

@@ -1,7 +1,6 @@
import { cn } from '@langgenius/dify-ui/cn'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { useDocLink } from '@/context/i18n'
import Line from './line'
type InstructionProps = {
@@ -10,9 +9,7 @@ type InstructionProps = {
const Instruction = ({ className }: InstructionProps) => {
const { t } = useTranslation(['workflow'])
const docLink = useDocLink()
return (
return (
<div
className={cn(
'flex flex-col gap-y-2 overflow-hidden rounded-[10px] bg-workflow-process-bg p-4',
@@ -37,14 +34,6 @@ const Instruction = ({ className }: InstructionProps) => {
<p className="text-text-tertiary">
{t(($) => $['nodes.knowledgeBase.chunkStructureTip.message'], { ns: 'workflow' })}
</p>
<a
href={docLink('/use-dify/knowledge/create-knowledge/chunking-and-cleaning-text')}
target="_blank"
rel="noopener noreferrer"
className="text-text-accent"
>
{t(($) => $['nodes.knowledgeBase.chunkStructureTip.learnMore'], { ns: 'workflow' })}
</a>
</div>
</div>
</div>
@@ -12,7 +12,6 @@ import { RadioGroup } from '@langgenius/dify-ui/radio-group'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import { Field as WorkflowField } from '@/app/components/workflow/nodes/_base/components/layout'
import { useDocLink } from '@/context/i18n'
import { useRetrievalSetting } from './hooks'
import { SearchMethodOption } from './search-method-option'
@@ -59,8 +58,7 @@ const RetrievalSetting = ({
showMultiModalTip,
}: RetrievalSettingProps) => {
const { t } = useTranslation(['datasetSettings', 'workflow'])
const docLink = useDocLink()
const { options, hybridSearchModeOptions } = useRetrievalSetting(indexMethod)
const { options, hybridSearchModeOptions } = useRetrievalSetting(indexMethod)
return (
<WorkflowField
@@ -68,15 +66,6 @@ const RetrievalSetting = ({
title: t(($) => $['form.retrievalSetting.title'], { ns: 'datasetSettings' }),
subTitle: (
<div className="flex items-center body-xs-regular text-text-tertiary">
<a
target="_blank"
rel="noopener noreferrer"
href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')}
className="text-text-accent"
>
{t(($) => $['form.retrievalSetting.learnMore'], { ns: 'datasetSettings' })}
</a>
&nbsp;
{t(($) => $['nodes.knowledgeBase.aboutRetrieval'], { ns: 'workflow' })}
</div>
),