Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: add entry point for requesting a plugin (#20026)

Nite Knite916c415b4b78
diff --git a/web/app/components/base/logo/dify-logo.tsx b/web/app/components/base/logo/dify-logo.tsx
index c3dca3e71d9..9e8f0773728 100644
--- a/web/app/components/base/logo/dify-logo.tsx
+++ b/web/app/components/base/logo/dify-logo.tsx
@@ -33,16 +33,17 @@ const DifyLogo: FC<DifyLogoProps> = ({
const { theme } = useTheme()
const themedStyle = (theme === 'dark' && style === 'default') ? 'monochromeWhite' : style
const { systemFeatures } = useGlobalPublicStore()
+ const hasBrandingLogo = Boolean(systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo)
let src = `${basePath}${logoPathMap[themedStyle]}`
- if (systemFeatures.branding.enabled)
+ if (hasBrandingLogo)
src = systemFeatures.branding.workspace_logo
return (
<img
src={src}
- className={classNames('block object-contain', logoSizeMap[size], className)}
- alt='Dify logo'
+ className={classNames('block object-contain', logoSizeMap[size], hasBrandingLogo && 'w-auto', className)}
+ alt={hasBrandingLogo ? 'Logo' : 'Dify logo'}
/>
)
}
diff --git a/web/app/components/header/index.tsx b/web/app/components/header/index.tsx
index c2345fbdaa0..6e8d1704dda 100644
--- a/web/app/components/header/index.tsx
+++ b/web/app/components/header/index.tsx
@@ -60,7 +60,7 @@ const Header = () => {
{
!isMobile
&& <div className='flex shrink-0 items-center gap-1.5 self-stretch pl-3'>
- <Link href="/apps" className='flex h-8 w-[52px] shrink-0 items-center justify-center gap-2'>
+ <Link href="/apps" className='flex h-8 shrink-0 items-center justify-center gap-2 px-0.5'>
<DifyLogo />
</Link>
<div className='font-light text-divider-deep'>/</div>
diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx
index 7cba865c661..e769c8e29a1 100644
--- a/web/app/components/plugins/plugin-page/index.tsx
+++ b/web/app/components/plugins/plugin-page/index.tsx
@@ -186,6 +186,17 @@ const PluginPage = ({
{
isExploringMarketplace && (
<>
+ <Link
+ href='https://github.com/langgenius/dify-plugins/issues/new?template=plugin_request.yaml'
+ target='_blank'
+ >
+ <Button
+ variant='ghost'
+ className='text-text-tertiary'
+ >
+ {t('plugin.requestAPlugin')}
+ </Button>
+ </Link>
<Link
href={getDocsUrl(locale, '/plugins/publish-plugins/publish-to-dify-marketplace/README')}
target='_blank'
@@ -198,7 +209,7 @@ const PluginPage = ({
{t('plugin.submitPlugin')}
</Button>
</Link>
- <div className='mx-2 h-3.5 w-[1px] bg-divider-regular'></div>
+ <div className='mx-1 h-3.5 w-[1px] shrink-0 bg-divider-regular'></div>
</>
)
}
diff --git a/web/i18n/en-US/plugin.ts b/web/i18n/en-US/plugin.ts
index a0b36fbd657..51399d53101 100644
--- a/web/i18n/en-US/plugin.ts
+++ b/web/i18n/en-US/plugin.ts
@@ -208,6 +208,7 @@ const translation = {
installedError: '{{errorLength}} plugins failed to install',
clearAll: 'Clear all',
},
+ requestAPlugin: 'Request a plugin',
submitPlugin: 'Submit plugin',
difyVersionNotCompatible: 'The current Dify version is not compatible with this plugin, please upgrade to the minimum version required: {{minimalDifyVersion}}',
}
diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts
index e088557dfbd..9b059ac5f47 100644
--- a/web/i18n/zh-Hans/plugin.ts
+++ b/web/i18n/zh-Hans/plugin.ts
@@ -208,6 +208,7 @@ const translation = {
installedError: '{{errorLength}} 个插件安装失败',
clearAll: '清除所有',
},
+ requestAPlugin: '申请插件',
submitPlugin: '上传插件',
difyVersionNotCompatible: '当前 Dify 版本不兼容该插件,其最低版本要求为 {{minimalDifyVersion}}',
}
diff --git a/web/i18n/zh-Hant/plugin.ts b/web/i18n/zh-Hant/plugin.ts
index 03f6ece7e54..5e93925a6d0 100644
--- a/web/i18n/zh-Hant/plugin.ts
+++ b/web/i18n/zh-Hant/plugin.ts
@@ -191,6 +191,7 @@ const translation = {
clearAll: '全部清除',
installing: '安裝 {{installingLength}} 個外掛程式,0 個完成。',
},
+ requestAPlugin: '申请外掛程式',
submitPlugin: '提交外掛程式',
findMoreInMarketplace: '在 Marketplace 中查找更多內容',
installPlugin: '安裝外掛程式',