diff --git a/web/app/components/plugins/marketplace/description/index.tsx b/web/app/components/plugins/marketplace/description/index.tsx index 241a0e4977..db27f6bae4 100644 --- a/web/app/components/plugins/marketplace/description/index.tsx +++ b/web/app/components/plugins/marketplace/description/index.tsx @@ -37,27 +37,31 @@ const Description = async ({ ) } - {t('category.models')} + {t('category.models')} , - {t('category.tools')} + {t('category.tools')} , - {t('category.datasources')} + {t('category.datasources')} , - {t('category.agents')} + {t('category.triggers')} + + , + + {t('category.agents')} , - {t('category.extensions')} + {t('category.extensions')} {t('marketplace.and')} - {t('category.bundles')} + {t('category.bundles')} { !isZhHans && ( diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index 44ddb8360e..555280268f 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -26,12 +26,12 @@ import { RiBugLine, RiCloseLine, RiHardDrive3Line, - RiVerifiedBadgeLine, } from '@remixicon/react' import { useBoolean } from 'ahooks' import { useTheme } from 'next-themes' import React, { useCallback, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' +import Verified from '../base/badges/verified' import { AutoUpdateLine } from '../../base/icons/src/vender/system' import DeprecationNotice from '../base/deprecation-notice' import Icon from '../card/base/card-icon' @@ -219,7 +219,7 @@ const DetailHeader = ({
- {verified && !isReadmeView && <RiVerifiedBadgeLine className="ml-0.5 h-4 w-4 shrink-0 text-text-accent" />} + {verified && !isReadmeView && <Verified className='ml-0.5 h-4 w-4' text={t('plugin.marketplace.verifiedTip')} />} {version && <PluginVersionPicker disabled={!isFromMarketplace || isReadmeView} isShow={isShow} diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsx index 9352df23c8..92a67b6e22 100644 --- a/web/app/components/plugins/plugin-item/index.tsx +++ b/web/app/components/plugins/plugin-item/index.tsx @@ -13,13 +13,13 @@ import { RiErrorWarningLine, RiHardDrive3Line, RiLoginCircleLine, - RiVerifiedBadgeLine, } from '@remixicon/react' import { useTheme } from 'next-themes' import type { FC } from 'react' import React, { useCallback, useMemo } from 'react' import { useTranslation } from 'react-i18next' import { gte } from 'semver' +import Verified from '../base/badges/verified' import Badge from '../../base/badge' import { Github } from '../../base/icons/src/public/common' import CornerMark from '../card/base/corner-mark' @@ -112,7 +112,7 @@ const PluginItem: FC<Props> = ({ <div className='ml-3 w-0 grow'> <div className='flex h-5 items-center'> <Title title={title} /> - {verified && <RiVerifiedBadgeLine className='ml-0.5 h-4 w-4 shrink-0 text-text-accent' />} + {verified && <Verified className='ml-0.5 h-4 w-4' text={t('plugin.marketplace.verifiedTip')} />} {!isDifyVersionCompatible && <Tooltip popupContent={ t('plugin.difyVersionNotCompatible', { minimalDifyVersion: declarationMeta.minimum_dify_version }) }><RiErrorWarningLine color='red' className='ml-0.5 h-4 w-4 shrink-0 text-text-accent' /></Tooltip>} diff --git a/web/app/components/tools/marketplace/index.tsx b/web/app/components/tools/marketplace/index.tsx index 855a6c044b..c68bd56273 100644 --- a/web/app/components/tools/marketplace/index.tsx +++ b/web/app/components/tools/marketplace/index.tsx @@ -62,6 +62,10 @@ const Marketplace = ({ {t('plugin.category.datasources')} </span> , + <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']"> + {t('plugin.category.triggers')} + </span> + , <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']"> {t('plugin.category.agents')} </span>