From b367f48de60e2552f4d9149dfcb6da475057b43e Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Thu, 12 Jun 2025 16:23:50 +0800 Subject: [PATCH] add datasource category --- web/app/components/plugins/card/index.tsx | 2 +- web/app/components/plugins/marketplace/plugin-type-switch.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/card/index.tsx b/web/app/components/plugins/card/index.tsx index 1cc18ac24f..99328d6f88 100644 --- a/web/app/components/plugins/card/index.tsx +++ b/web/app/components/plugins/card/index.tsx @@ -48,7 +48,7 @@ const Card = ({ const { t } = useMixedTranslation(localeFromProps) const { categoriesMap } = useSingleCategories(t) const { category, type, name, org, label, brief, icon, verified, badges = [] } = payload - const isBundle = !['plugin', 'model', 'tool', 'extension', 'agent-strategy'].includes(type) + const isBundle = !['plugin', 'model', 'tool', 'datasource', 'extension', 'agent-strategy'].includes(type) const cornerMark = isBundle ? categoriesMap.bundle?.label : categoriesMap[category]?.label const getLocalizedText = (obj: Record | undefined) => obj ? renderI18nObject(obj, locale) : '' diff --git a/web/app/components/plugins/marketplace/plugin-type-switch.tsx b/web/app/components/plugins/marketplace/plugin-type-switch.tsx index ed04ff34f1..2784402466 100644 --- a/web/app/components/plugins/marketplace/plugin-type-switch.tsx +++ b/web/app/components/plugins/marketplace/plugin-type-switch.tsx @@ -2,6 +2,7 @@ import { RiArchive2Line, RiBrain2Line, + RiDatabase2Line, RiHammerLine, RiPuzzle2Line, RiSpeakAiLine, @@ -60,7 +61,7 @@ const PluginTypeSwitch = ({ { value: PLUGIN_TYPE_SEARCH_MAP.datasource, text: t('plugin.category.datasources'), - icon: , + icon: , }, { value: PLUGIN_TYPE_SEARCH_MAP.agent,