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
@@ -1,4 +1,5 @@
|
||||
import { cn } from '@langgenius/dify-ui/cn'
|
||||
import { visibleAuthorName } from '@/utils/visible-author'
|
||||
|
||||
type Props = Readonly<{
|
||||
className?: string
|
||||
@@ -8,15 +9,16 @@ type Props = Readonly<{
|
||||
}>
|
||||
|
||||
const OrgInfo = ({ className, orgName, packageName, packageNameClassName }: Props) => {
|
||||
const label = visibleAuthorName(orgName)
|
||||
return (
|
||||
<div className={cn('flex h-4 min-w-0 items-center gap-0.5', className)}>
|
||||
{orgName && (
|
||||
{label && (
|
||||
<>
|
||||
<span
|
||||
className="min-w-0 shrink truncate system-xs-regular text-text-tertiary"
|
||||
title={orgName}
|
||||
title={label}
|
||||
>
|
||||
{orgName}
|
||||
{label}
|
||||
</span>
|
||||
<span className="shrink-0 system-xs-regular text-text-quaternary">/</span>
|
||||
</>
|
||||
|
||||
@@ -10,6 +10,7 @@ import useTheme from '@/hooks/use-theme'
|
||||
import { renderI18nObject } from '@/i18n/metadata'
|
||||
import { Theme } from '@/types/app'
|
||||
import { formatNumber } from '@/utils/format'
|
||||
import { visibleAuthorName } from '@/utils/visible-author'
|
||||
import Partner from '../base/badges/partner'
|
||||
import Verified from '../base/badges/verified'
|
||||
import Icon from '../card/base/card-icon'
|
||||
@@ -92,6 +93,7 @@ const Card = ({
|
||||
const { t } = useTranslation(['plugin'])
|
||||
const { categoriesMap } = useCategories(true)
|
||||
const { category, type, name, org, label, brief, icon, icon_dark, verified, from } = payload
|
||||
const publicOrg = visibleAuthorName(org)
|
||||
const badges = payload.badges ?? []
|
||||
const { theme } = useTheme()
|
||||
const activeIcon = theme === Theme.dark && icon_dark ? icon_dark : icon
|
||||
@@ -146,15 +148,15 @@ const Card = ({
|
||||
{titleLeft}
|
||||
</div>
|
||||
<div className="flex h-4 min-w-0 items-center gap-2 system-xs-regular text-text-tertiary">
|
||||
{org && (
|
||||
{publicOrg && (
|
||||
<div className="flex min-w-0 items-center gap-1">
|
||||
<span className="shrink-0 lowercase">
|
||||
{t(($) => $['marketplace.by'], { ns: 'plugin' })}
|
||||
</span>
|
||||
<span className="truncate">{org}</span>
|
||||
<span className="truncate">{publicOrg}</span>
|
||||
</div>
|
||||
)}
|
||||
{org && payload.install_count !== undefined && (
|
||||
{publicOrg && payload.install_count !== undefined && (
|
||||
<span className="shrink-0 text-text-quaternary">·</span>
|
||||
)}
|
||||
{payload.install_count !== undefined && (
|
||||
|
||||
Reference in new issue
Block a user