-
-
+ {banners.length > 0 && (
+ <>
+
+
+ >
+ )}
}
/>
diff --git a/web/app/components/plugins/marketplace/index.tsx b/web/app/components/plugins/marketplace/index.tsx
index e219fa51544..64fce91c65f 100644
--- a/web/app/components/plugins/marketplace/index.tsx
+++ b/web/app/components/plugins/marketplace/index.tsx
@@ -1,11 +1,11 @@
import type { SearchParams } from 'nuqs'
-import type { BannerRecommend } from './home/banners'
+import type { PluginBanner } from './home/banners'
import { PluginInstallPermissionProviderGuard } from '@/app/components/plugins/install-plugin/components/plugin-install-permission-provider'
import { TanStackQueryProvider } from '@/app/query-provider'
import { getLocaleOnServer } from '@/i18n-config/server'
import Description from './description'
import MarketplaceHome from './home'
-import { fetchPluginRecommendBanners } from './home/banners'
+import { fetchPluginBanners } from './home/banners'
import { HydrateQueryClient } from './hydration-server'
import ListWrapper from './list/list-wrapper'
import StickySearchAndSwitchWrapper from './sticky-search-and-switch-wrapper'
@@ -40,15 +40,14 @@ const Marketplace = async ({
homeHeaderBrandName,
searchParams,
}: MarketplaceProps) => {
- let trendingBanners: BannerRecommend[] = []
+ let trendingBanners: PluginBanner[] = []
if (variant === 'home') {
- const locale = language ?? await getLocaleOnServer()
+ const locale = language ?? (await getLocaleOnServer())
try {
- trendingBanners = await fetchPluginRecommendBanners(locale)
- }
- catch {
+ trendingBanners = await fetchPluginBanners(locale)
+ } catch {
// Keep the homepage available if Marketplace banner delivery is unavailable.
}
}
@@ -57,32 +56,32 @@ const Marketplace = async ({
- {variant === 'home'
- ? (
-
+ ) : (
+ <>
+
+ {!isMarketplacePlatform && (
+
- )
- : (
- <>
-
- {!isMarketplacePlatform && (
-
- )}
-
- >
)}
+
+ >
+ )}
diff --git a/web/app/styles/tailwind-core.css b/web/app/styles/tailwind-core.css
index e1c6545678e..c2a8e8c1b09 100644
--- a/web/app/styles/tailwind-core.css
+++ b/web/app/styles/tailwind-core.css
@@ -33,6 +33,8 @@
/* ---------- JS plugins ------------------------------------------------ */
@plugin './plugins/icons.ts';
@plugin './plugins/typography.ts';
+@source inline('i-ri-pause-large-fill');
+@source inline('i-ri-play-large-fill');
/* ---------- Project-only theme tokens --------------------------------- */
@theme {
diff --git a/web/i18n/en-US/plugin.json b/web/i18n/en-US/plugin.json
index 2bdad4f4b4e..a3cf9248db0 100644
--- a/web/i18n/en-US/plugin.json
+++ b/web/i18n/en-US/plugin.json
@@ -235,8 +235,11 @@
"marketplace.home.trendingByCreator": "by {{creator}}",
"marketplace.home.trendingDescription": "Top picks by real usage, refreshed every two weeks. Ranked by actual runs across workspaces — no paid placement, no editorial picks.",
"marketplace.home.trendingEyebrow": "Trending Now",
+ "marketplace.home.trendingPause": "Pause",
"marketplace.home.trendingPaginationLabel": "Trending pages",
+ "marketplace.home.trendingPlay": "Play",
"marketplace.home.trendingTitle": "The plugins everyone is installing",
+ "marketplace.home.trendingView": "View",
"marketplace.moreFrom": "More from Marketplace",
"marketplace.noPluginFound": "No integration found",
"marketplace.partnerTip": "Verified by a Dify partner",
diff --git a/web/i18n/zh-Hans/plugin.json b/web/i18n/zh-Hans/plugin.json
index 9d8a8ff940f..eff58497ed0 100644
--- a/web/i18n/zh-Hans/plugin.json
+++ b/web/i18n/zh-Hans/plugin.json
@@ -235,8 +235,11 @@
"marketplace.home.trendingByCreator": "由 {{creator}} 发布",
"marketplace.home.trendingDescription": "基于真实使用情况选出的热门插件,每两周更新一次。榜单按各工作区的实际运行次数排序,不含付费推广或编辑推荐。",
"marketplace.home.trendingEyebrow": "当前热门",
+ "marketplace.home.trendingPause": "暂停",
"marketplace.home.trendingPaginationLabel": "热门推荐页码",
+ "marketplace.home.trendingPlay": "播放",
"marketplace.home.trendingTitle": "大家都在安装的插件",
+ "marketplace.home.trendingView": "查看",
"marketplace.moreFrom": "来自 Marketplace 的更多内容",
"marketplace.noPluginFound": "未找到集成",
"marketplace.partnerTip": "此插件由 Dify 合作伙伴认证",
diff --git a/web/i18n/zh-Hant/plugin.json b/web/i18n/zh-Hant/plugin.json
index 375b7069cf2..a252d6358e1 100644
--- a/web/i18n/zh-Hant/plugin.json
+++ b/web/i18n/zh-Hant/plugin.json
@@ -235,8 +235,11 @@
"marketplace.home.trendingByCreator": "由 {{creator}} 發布",
"marketplace.home.trendingDescription": "根據真實使用情況選出的熱門外掛程式,每兩週更新一次。榜單按各工作區的實際執行次數排序,不含付費推廣或編輯推薦。",
"marketplace.home.trendingEyebrow": "目前熱門",
+ "marketplace.home.trendingPause": "暫停",
"marketplace.home.trendingPaginationLabel": "熱門推薦頁碼",
+ "marketplace.home.trendingPlay": "播放",
"marketplace.home.trendingTitle": "大家都在安裝的外掛程式",
+ "marketplace.home.trendingView": "查看",
"marketplace.moreFrom": "來自 Marketplace 的更多內容",
"marketplace.noPluginFound": "未找到集成",
"marketplace.partnerTip": "由 Dify 合作夥伴驗證",