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
@@ -4,10 +4,8 @@ import { cn } from '@langgenius/dify-ui/cn'
|
||||
import { Field, FieldError } from '@langgenius/dify-ui/field'
|
||||
import { Form } from '@langgenius/dify-ui/form'
|
||||
import { Input } from '@langgenius/dify-ui/input'
|
||||
import { RiBookOpenLine } from '@remixicon/react'
|
||||
import * as React from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { useDocLink } from '@/context/i18n'
|
||||
|
||||
type ExternalAPIFormProps = {
|
||||
id: string
|
||||
@@ -36,7 +34,6 @@ const ExternalAPIForm: FC<ExternalAPIFormProps> = React.memo(
|
||||
errors,
|
||||
}) => {
|
||||
const { t, i18n } = useTranslation(['common', 'dataset'])
|
||||
const docLink = useDocLink()
|
||||
|
||||
const handleFormChange = (key: string, val: string) => {
|
||||
if (key === 'name') {
|
||||
@@ -69,17 +66,6 @@ const ExternalAPIForm: FC<ExternalAPIFormProps> = React.memo(
|
||||
{label[i18n.language] || label.en_US}
|
||||
{required && <span className="ml-1 text-red-500">*</span>}
|
||||
</label>
|
||||
{variable === 'endpoint' && (
|
||||
<a
|
||||
href={docLink('/use-dify/knowledge/external-knowledge-api') || '/'}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center body-xs-regular text-text-accent"
|
||||
>
|
||||
<RiBookOpenLine className="mr-1 size-3 text-text-accent" />
|
||||
{t(($) => $.externalAPIPanelDocumentation, { ns: 'dataset' })}
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
<Input
|
||||
type={type === 'secret' ? 'password' : 'text'}
|
||||
|
||||
Reference in new issue
Block a user