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
0a4dfaea
Unverified
Commit
0a4dfaea
authored
Jan 30, 2024
by
Yash_1124
Committed by
GitHub
Jan 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat: Add Top bar while routing different different pages (#2298)
parent
c0a4fd14
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
698 additions
and
791 deletions
+698
-791
index.tsx
web/app/components/base/topbar/index.tsx
+16
-0
layout.tsx
web/app/layout.tsx
+2
-1
package.json
web/package.json
+1
-0
yarn.lock
web/yarn.lock
+679
-790
No files found.
web/app/components/base/topbar/index.tsx
0 → 100644
View file @
0a4dfaea
'use client'
import
{
AppProgressBar
as
ProgressBar
}
from
'next-nprogress-bar'
const
Topbar
=
()
=>
{
return
(
<>
<
ProgressBar
height=
'2px'
color=
"#1C64F2FF"
options=
{
{
showSpinner
:
false
}
}
shallowRouting
/>
</>)
}
export
default
Topbar
web/app/layout.tsx
View file @
0a4dfaea
...
@@ -2,8 +2,8 @@ import type { Viewport } from 'next'
...
@@ -2,8 +2,8 @@ import type { Viewport } from 'next'
import
I18nServer
from
'./components/i18n-server'
import
I18nServer
from
'./components/i18n-server'
import
BrowerInitor
from
'./components/browser-initor'
import
BrowerInitor
from
'./components/browser-initor'
import
SentryInitor
from
'./components/sentry-initor'
import
SentryInitor
from
'./components/sentry-initor'
import
Topbar
from
'./components/base/topbar'
import
{
getLocaleOnServer
}
from
'@/i18n/server'
import
{
getLocaleOnServer
}
from
'@/i18n/server'
import
'./styles/globals.css'
import
'./styles/globals.css'
import
'./styles/markdown.scss'
import
'./styles/markdown.scss'
...
@@ -43,6 +43,7 @@ const LocaleLayout = ({
...
@@ -43,6 +43,7 @@ const LocaleLayout = ({
data
-
public
-
maintenance
-
notice=
{
process
.
env
.
NEXT_PUBLIC_MAINTENANCE_NOTICE
}
data
-
public
-
maintenance
-
notice=
{
process
.
env
.
NEXT_PUBLIC_MAINTENANCE_NOTICE
}
data
-
public
-
site
-
about=
{
process
.
env
.
NEXT_PUBLIC_SITE_ABOUT
}
data
-
public
-
site
-
about=
{
process
.
env
.
NEXT_PUBLIC_SITE_ABOUT
}
>
>
<
Topbar
/>
<
BrowerInitor
>
<
BrowerInitor
>
<
SentryInitor
>
<
SentryInitor
>
{
/* @ts-expect-error Async Server Component */
}
{
/* @ts-expect-error Async Server Component */
}
...
...
web/package.json
View file @
0a4dfaea
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
"mermaid"
:
"10.4.0"
,
"mermaid"
:
"10.4.0"
,
"negotiator"
:
"^0.6.3"
,
"negotiator"
:
"^0.6.3"
,
"next"
:
"^14.0.4"
,
"next"
:
"^14.0.4"
,
"next-nprogress-bar"
:
"^2.1.2"
,
"qrcode.react"
:
"^3.1.0"
,
"qrcode.react"
:
"^3.1.0"
,
"qs"
:
"^6.11.1"
,
"qs"
:
"^6.11.1"
,
"rc-textarea"
:
"^1.5.2"
,
"rc-textarea"
:
"^1.5.2"
,
...
...
web/yarn.lock
View file @
0a4dfaea
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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