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
+6
-2
@@ -7,6 +7,7 @@ import Icon from '@/app/components/plugins/card/base/card-icon'
|
||||
import { useGetLanguage } from '@/context/i18n'
|
||||
import { getMarketplacePluginIconUrl } from '@/features/marketplace/api'
|
||||
import { renderI18nObject } from '@/i18n/metadata'
|
||||
import { visibleAuthorName } from '@/utils/visible-author'
|
||||
|
||||
type Props = Readonly<{
|
||||
payload: PluginDetail
|
||||
@@ -18,7 +19,8 @@ const ToolItem: FC<Props> = ({ payload, isChecked, onCheckChange }) => {
|
||||
const language = useGetLanguage()
|
||||
|
||||
const { plugin_id, declaration } = payload
|
||||
const { label, author: org } = declaration
|
||||
const { label, author } = declaration
|
||||
const org = visibleAuthorName(author)
|
||||
return (
|
||||
<div className="flex w-full items-center gap-1 rounded-lg py-1 pr-2 pl-3 select-none hover:bg-state-base-hover">
|
||||
<div className="flex min-w-0 grow items-center gap-2 pr-2">
|
||||
@@ -26,7 +28,9 @@ const ToolItem: FC<Props> = ({ payload, isChecked, onCheckChange }) => {
|
||||
<div className="min-w-0 truncate system-sm-medium text-text-secondary">
|
||||
{renderI18nObject(label, language)}
|
||||
</div>
|
||||
<div className="min-w-0 truncate system-xs-regular text-text-quaternary">{org}</div>
|
||||
{org ? (
|
||||
<div className="min-w-0 truncate system-xs-regular text-text-quaternary">{org}</div>
|
||||
) : null}
|
||||
</div>
|
||||
<Checkbox
|
||||
checked={isChecked}
|
||||
|
||||
Reference in new issue
Block a user