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: remove plugin page (#1544)

zxhlyh18cf7f7ed074
diff --git a/web/app/(commonLayout)/plugins-coming-soon/assets/coming-soon.png b/web/app/(commonLayout)/plugins-coming-soon/assets/coming-soon.png
deleted file mode 100644
index a1c48b508df..00000000000
Binary files a/web/app/(commonLayout)/plugins-coming-soon/assets/coming-soon.png and /dev/null differ
diff --git a/web/app/(commonLayout)/plugins-coming-soon/assets/plugins-bg.png b/web/app/(commonLayout)/plugins-coming-soon/assets/plugins-bg.png
deleted file mode 100644
index 9be76acc520..00000000000
Binary files a/web/app/(commonLayout)/plugins-coming-soon/assets/plugins-bg.png and /dev/null differ
diff --git a/web/app/(commonLayout)/plugins-coming-soon/page.module.css b/web/app/(commonLayout)/plugins-coming-soon/page.module.css
deleted file mode 100644
index 73aab949c98..00000000000
--- a/web/app/(commonLayout)/plugins-coming-soon/page.module.css
+++ /dev/null
@@ -1,32 +0,0 @@
-.bg {
- position: relative;
- width: 750px;
- height: 450px;
- background: #fff url(./assets/plugins-bg.png) center center no-repeat;
- background-size: contain;
- box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
- border-radius: 16px;
-}
-
-.text {
- position: absolute;
- top: 40px;
- left: 48px;
- width: 526px;
- background: linear-gradient(91.92deg, #104AE1 -1.74%, #0098EE 75.74%);
- background-clip: text;
- color: transparent;
- font-size: 24px;
- font-weight: 700;
- line-height: 32px;
-}
-
-.tag {
- position: absolute;
- width: 116.74px;
- height: 69.3px;
- left: -18.37px;
- top: -11.48px;
- background: url(./assets/coming-soon.png) center center no-repeat;
- background-size: contain;
-}
\ No newline at end of file
diff --git a/web/app/(commonLayout)/plugins-coming-soon/page.tsx b/web/app/(commonLayout)/plugins-coming-soon/page.tsx
deleted file mode 100644
index 285b0189a33..00000000000
--- a/web/app/(commonLayout)/plugins-coming-soon/page.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import s from './page.module.css'
-import { getLocaleOnServer } from '@/i18n/server'
-import { useTranslation } from '@/i18n/i18next-serverside-config'
-
-const PluginsComingSoon = async () => {
- const locale = getLocaleOnServer()
- const { t } = await useTranslation(locale, 'common')
-
- return (
- <div className='flex justify-center items-center w-full h-full bg-gray-100'>
- <div className={s.bg}>
- <div className={s.tag} />
- <div className={s.text}>{t('menus.pluginsTips')}</div>
- </div>
- </div >
- )
-}
-
-export default PluginsComingSoon
diff --git a/web/app/components/header/index.tsx b/web/app/components/header/index.tsx
index 0500c86aef7..a81c6c6f6ca 100644
--- a/web/app/components/header/index.tsx
+++ b/web/app/components/header/index.tsx
@@ -7,7 +7,6 @@ import DatasetNav from './dataset-nav'
import EnvNav from './env-nav'
import ExploreNav from './explore-nav'
import GithubStar from './github-star'
-import PluginNav from './plugin-nav'
import { WorkspaceProvider } from '@/context/workspace-context'
import { useAppContext } from '@/context/app-context'
import LogoSite from '@/app/components/base/logo/logo-site'
@@ -31,7 +30,6 @@ const Header = () => {
<div className='flex items-center'>
<ExploreNav className={navClassName} />
<AppNav />
- <PluginNav className={navClassName} />
{isCurrentWorkspaceManager && <DatasetNav />}
</div>
<div className='flex items-center flex-shrink-0'>
diff --git a/web/app/components/header/plugin-nav/index.tsx b/web/app/components/header/plugin-nav/index.tsx
deleted file mode 100644
index 7a838540496..00000000000
--- a/web/app/components/header/plugin-nav/index.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-'use client'
-
-import { useTranslation } from 'react-i18next'
-import Link from 'next/link'
-import { useSelectedLayoutSegment } from 'next/navigation'
-import classNames from 'classnames'
-import { PuzzlePiece01 } from '@/app/components/base/icons/src/vender/line/development'
-import { PuzzlePiece01 as PuzzlePiece01Solid } from '@/app/components/base/icons/src/vender/solid/development'
-
-type PluginNavProps = {
- className?: string
-}
-
-const PluginNav = ({
- className,
-}: PluginNavProps) => {
- const { t } = useTranslation()
- const selectedSegment = useSelectedLayoutSegment()
- const isPluginsComingSoon = selectedSegment === 'plugins-coming-soon'
-
- return (
- <Link href="/plugins-coming-soon" className={classNames(
- className, 'group',
- isPluginsComingSoon && 'bg-white shadow-md',
- isPluginsComingSoon ? 'text-primary-600' : 'text-gray-500 hover:bg-gray-200',
- )}>
- {
- isPluginsComingSoon
- ? <PuzzlePiece01Solid className='mr-2 w-4 h-4' />
- : <PuzzlePiece01 className='mr-2 w-4 h-4' />
- }
- {t('common.menus.plugins')}
- </Link>
- )
-}
-
-export default PluginNav