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

@@ -28,7 +28,6 @@ import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'
import { localizeKnowledgeRetrievalV2Error } from '@/app/components/workflow/nodes/knowledge-retrieval-v2/error-message'
import StatusContainer from '@/app/components/workflow/run/status-container'
import { hasRetryNode } from '@/app/components/workflow/utils'
import { useDocLink } from '@/context/i18n'
import BlockIcon from '../block-icon'
import { BlockEnum } from '../types'
import LargeDataAlert from '../variable-inspect/large-data-alert'
@@ -87,8 +86,7 @@ const NodePanel: FC<Props> = ({
[hideProcessDetail],
)
const { t } = useTranslation(['workflow', 'workflowLogic', 'workflowHumanInput', 'runLog'])
const docLink = useDocLink()
const detailsId = useId()
const detailsId = useId()
const Header = hideProcessDetail ? 'div' : 'button'
const statusLabels: Record<string, string> = {
succeeded: t(($) => $['tracing.status.succeeded'], { ns: 'workflow' }),
@@ -307,14 +305,6 @@ const NodePanel: FC<Props> = ({
{nodeInfo.status === 'exception' && (
<StatusContainer status="stopped">
{localizedError}
<a
href={docLink('/use-dify/debug/error-type')}
target="_blank"
rel="noopener noreferrer"
className="text-text-accent"
>
{t(($) => $['common.learnMore'], { ns: 'workflow' })}
</a>
</StatusContainer>
)}
{nodeInfo.status === 'failed' && (
@@ -7,9 +7,9 @@ import { useMemo } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import StatusContainer from '@/app/components/workflow/run/status-container'
import { ENABLE_HITL_IM } from '@/config'
import { useDocLink } from '@/context/i18n'
import { resolveConsoleHumanInputFormURL } from '@/features/human-input/console/links'
import { consoleQuery } from '@/service/console'
import { isOfficialDifyUrl } from '@/utils/official-link'
import { basePath } from '@/utils/var'
type ResultProps = {
@@ -34,8 +34,7 @@ const StatusPanel: FC<ResultProps> = ({
onOpenTracingTab,
}) => {
const { t } = useTranslation(['runLog', 'workflow', 'appLog', 'workflowHumanInput', 'share'])
const docLink = useDocLink()
const { data: pausedDetails } = useQuery(
const { data: pausedDetails } = useQuery(
consoleQuery.workflow.byWorkflowRunId.pauseDetails.get.queryOptions({
input:
status === 'paused' && workflowRunId
@@ -225,14 +224,6 @@ const StatusPanel: FC<ResultProps> = ({
<div className="my-2 h-[0.5px] bg-divider-deep" />
<div className="system-xs-medium text-text-warning">
{error}
<a
href={docLink('/use-dify/debug/error-type')}
target="_blank"
rel="noopener noreferrer"
className="text-text-accent"
>
{t(($) => $['common.learnMore'], { ns: 'workflow' })}
</a>
</div>
</>
)}
@@ -259,14 +250,14 @@ const StatusPanel: FC<ResultProps> = ({
{t(($) => $['humanInputV2.unavailable'], { ns: 'share' })}
</p>
)}
{pausedInputURLs.length > 0 && (
{pausedInputURLs.some((url) => !isOfficialDifyUrl(url)) && (
<div className="flex flex-col gap-y-0.5">
<div className="system-2xs-medium-uppercase text-text-tertiary">
{t(($) => $['nodes.humanInput.log.backstageInputURL'], {
ns: 'workflowHumanInput',
})}
</div>
{pausedInputURLs.map((url) => (
{pausedInputURLs.filter((url) => !isOfficialDifyUrl(url)).map((url) => (
<a
key={url}
href={url}