Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
18cf7f7e
Unverified
Commit
18cf7f7e
authored
Nov 16, 2023
by
zxhlyh
Committed by
GitHub
Nov 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove plugin page (#1544)
parent
cfbfd59b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
90 deletions
+0
-90
coming-soon.png
...(commonLayout)/plugins-coming-soon/assets/coming-soon.png
+0
-0
plugins-bg.png
.../(commonLayout)/plugins-coming-soon/assets/plugins-bg.png
+0
-0
page.module.css
web/app/(commonLayout)/plugins-coming-soon/page.module.css
+0
-32
page.tsx
web/app/(commonLayout)/plugins-coming-soon/page.tsx
+0
-19
index.tsx
web/app/components/header/index.tsx
+0
-2
index.tsx
web/app/components/header/plugin-nav/index.tsx
+0
-37
No files found.
web/app/(commonLayout)/plugins-coming-soon/assets/coming-soon.png
deleted
100644 → 0
View file @
cfbfd59b
2.28 KB
web/app/(commonLayout)/plugins-coming-soon/assets/plugins-bg.png
deleted
100644 → 0
View file @
cfbfd59b
45.2 KB
web/app/(commonLayout)/plugins-coming-soon/page.module.css
deleted
100644 → 0
View file @
cfbfd59b
.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
web/app/(commonLayout)/plugins-coming-soon/page.tsx
deleted
100644 → 0
View file @
cfbfd59b
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
web/app/components/header/index.tsx
View file @
18cf7f7e
...
...
@@ -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'
>
...
...
web/app/components/header/plugin-nav/index.tsx
deleted
100644 → 0
View file @
cfbfd59b
'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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment