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

@@ -5,14 +5,13 @@ import type { DeliveryMethod } from '../../types'
import { cn } from '@langgenius/dify-ui/cn'
import { IconButton } from '@langgenius/dify-ui/icon-button'
import { Popover, PopoverContent, PopoverTrigger } from '@langgenius/dify-ui/popover'
import { useQuery, useSuspenseQuery } from '@tanstack/react-query'
import { useQuery } from '@tanstack/react-query'
import { memo, useMemo } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import { useTranslation } from 'react-i18next'
import { v4 as uuid4 } from 'uuid'
import Badge from '@/app/components/base/badge'
import useWorkflowNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { isTriggerWorkflow } from '@/app/components/workflow/utils/workflow-entry'
import { systemFeaturesQueryOptions } from '@/features/system-features/client'
import { consoleQuery } from '@/service/console'
import { DeliveryMethodType } from '../../types'
@@ -26,10 +25,6 @@ type MethodSelectorProps = {
const MethodSelector: FC<MethodSelectorProps> = ({ data, onAdd, onShowUpgradeTip }) => {
const { t } = useTranslation(['workflowHumanInput'])
const { data: deploymentEdition } = useSuspenseQuery({
...systemFeaturesQueryOptions(),
select: ({ deployment_edition }) => deployment_edition,
})
const { data: humanInputEmailDeliveryEnabled } = useQuery(
consoleQuery.features.get.queryOptions({
select: (features) => features.human_input_email_delivery_enabled,
@@ -278,40 +273,6 @@ const MethodSelector: FC<MethodSelectorProps> = ({ data, onAdd, onShowUpgradeTip
</div>
</div>
</div>
{deploymentEdition === 'CLOUD' && (
<div className="mt-1 rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs">
<div className="flex items-center gap-2 px-4 py-3">
<div
className={cn(
'rounded-sm border border-divider-regular bg-components-icon-bg-midnight-solid p-1',
)}
>
<span
aria-hidden
className="i-ri-lightbulb-flash-fill size-4 text-text-primary-on-surface"
/>
</div>
<div className="system-sm-regular text-text-secondary">
<div>
{t(($) => $[`${i18nPrefix}.deliveryMethod.contactTip1`], {
ns: 'workflowHumanInput',
})}
</div>
<Trans
i18nKey={($) => $[`${i18nPrefix}.deliveryMethod.contactTip2`]}
ns="workflowHumanInput"
components={{
email: (
<a href="mailto:support@dify.ai" className="text-text-accent-light-mode-only">
support@dify.ai
</a>
),
}}
/>
</div>
</div>
</div>
)}
</PopoverContent>
</Popover>
)