From 2067092f522fd28ca3abce55f8e46098f04a23f4 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 21 Nov 2024 11:33:21 +0800 Subject: [PATCH] feat: detail link in tools --- web/app/components/plugins/plugin-item/index.tsx | 2 +- .../block-selector/market-place-plugin/action.tsx | 8 ++++++-- .../workflow/block-selector/market-place-plugin/item.tsx | 2 ++ web/i18n/en-US/common.ts | 1 + web/i18n/zh-Hans/common.ts | 1 + 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsx index fa97e2e586..13c8797358 100644 --- a/web/app/components/plugins/plugin-item/index.tsx +++ b/web/app/components/plugins/plugin-item/index.tsx @@ -142,7 +142,7 @@ const PluginItem: FC = ({ } {source === PluginSource.marketplace && <> - +
{t('plugin.from')} marketplace
diff --git a/web/app/components/workflow/block-selector/market-place-plugin/action.tsx b/web/app/components/workflow/block-selector/market-place-plugin/action.tsx index 65d8877819..6f0c08eeca 100644 --- a/web/app/components/workflow/block-selector/market-place-plugin/action.tsx +++ b/web/app/components/workflow/block-selector/market-place-plugin/action.tsx @@ -11,15 +11,20 @@ import { PortalToFollowElemTrigger, } from '@/app/components/base/portal-to-follow-elem' import cn from '@/utils/classnames' +import { MARKETPLACE_URL_PREFIX } from '@/config' type Props = { open: boolean onOpenChange: (v: boolean) => void + author: string + name: string } const OperationDropdown: FC = ({ open, onOpenChange, + author, + name, }) => { const { t } = useTranslation() const openRef = useRef(open) @@ -50,8 +55,7 @@ const OperationDropdown: FC = ({
{t('common.operation.download')}
- {/* Wait marketplace */} - {/*
{t('common.operation.viewDetail')}
*/} + {t('common.operation.viewDetails')}
diff --git a/web/app/components/workflow/block-selector/market-place-plugin/item.tsx b/web/app/components/workflow/block-selector/market-place-plugin/item.tsx index 628b437d3e..7f2ae34083 100644 --- a/web/app/components/workflow/block-selector/market-place-plugin/item.tsx +++ b/web/app/components/workflow/block-selector/market-place-plugin/item.tsx @@ -57,6 +57,8 @@ const Item: FC = ({ {isShowInstallModal && ( diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts index 757f05f2c1..3f46e32e8d 100644 --- a/web/i18n/en-US/common.ts +++ b/web/i18n/en-US/common.ts @@ -27,6 +27,7 @@ const translation = { lineBreak: 'Line break', sure: 'I\'m sure', download: 'Download', + viewDetails: 'View Details', delete: 'Delete', settings: 'Settings', setup: 'Setup', diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts index d9add510e9..2c43a2986b 100644 --- a/web/i18n/zh-Hans/common.ts +++ b/web/i18n/zh-Hans/common.ts @@ -27,6 +27,7 @@ const translation = { lineBreak: '换行', sure: '我确定', download: '下载', + viewDetails: '查看详情', delete: '删除', settings: '设置', setup: '设置',