feat(dify): 把本地控制台的中文与去外链改动入库
这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9c7c80e194
commit
c2cb845a32
211 files changed
+3030
-2794
No files matched your search
+2
-13
@@ -12,7 +12,6 @@ import { useCallback, useId } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import PromptEditor from '@/app/components/base/prompt-editor'
|
||||
import { $createCustomTextNode } from '@/app/components/base/prompt-editor/plugins/custom-text/node'
|
||||
import { useDocLink } from '@/context/i18n'
|
||||
import { useWorkflowVariableType } from '../../../hooks/use-workflow-variables'
|
||||
import { BlockEnum } from '../../../types'
|
||||
import useAvailableVarList from '../../_base/hooks/use-available-var-list'
|
||||
@@ -71,8 +70,7 @@ export function AgentTaskField({
|
||||
const taskLabelId = useId()
|
||||
|
||||
const { t } = useTranslation(['workflow', 'workflowAgent'])
|
||||
const docLink = useDocLink()
|
||||
const getVarType = useWorkflowVariableType()
|
||||
const getVarType = useWorkflowVariableType()
|
||||
const { availableVars, availableNodesWithParent } = useAvailableVarList(id)
|
||||
const [isFocus, { setTrue: setFocus, setFalse: setBlur }] = useBoolean(false)
|
||||
|
||||
@@ -105,16 +103,7 @@ export function AgentTaskField({
|
||||
<Infotip>
|
||||
<InfotipTrigger aria-labelledby={taskLabelId} />
|
||||
<InfotipContent aria-labelledby={taskLabelId}>
|
||||
{t(($) => $[`${i18nPrefix}.task.tooltip`], { ns: 'workflowAgent' })}{' '}
|
||||
<a
|
||||
href={docLink('/use-dify/nodes/agent#give-it-a-task')}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="inline-flex items-center gap-0.5 rounded-sm text-text-accent hover:underline focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
|
||||
>
|
||||
{t(($) => $[`${i18nPrefix}.task.learnMore`], { ns: 'workflowAgent' })}
|
||||
<span aria-hidden className="i-ri-external-link-line size-3" />
|
||||
</a>
|
||||
{t(($) => $[`${i18nPrefix}.task.tooltip`], { ns: 'workflowAgent' })}
|
||||
</InfotipContent>
|
||||
</Infotip>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user