Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FDO Manager WebUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fdo
FDO Manager WebUI
Commits
7482ebaf
Commit
7482ebaf
authored
6 months ago
by
Sina Rohde
Browse files
Options
Downloads
Patches
Plain Diff
linter fix
parent
2c6d268c
No related branches found
No related tags found
3 merge requests
!7
Revert "MAINT: Ignore venv and package-lock.json"
,
!4
inserted new files for content parts
,
!3
F search bar
Pipeline
#54233
passed
6 months ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pages/index.tsx
+23
-37
23 additions, 37 deletions
pages/index.tsx
src/components/Content.tsx
+9
-11
9 additions, 11 deletions
src/components/Content.tsx
src/components/ContentArea.tsx
+15
-16
15 additions, 16 deletions
src/components/ContentArea.tsx
with
47 additions
and
64 deletions
pages/index.tsx
+
23
−
37
View file @
7482ebaf
...
@@ -19,7 +19,6 @@ import Stack from '@mui/material/Stack'
...
@@ -19,7 +19,6 @@ import Stack from '@mui/material/Stack'
import
Link
from
'
next/link
'
import
Link
from
'
next/link
'
import
ContentArea
from
'
@components/ContentArea
'
import
ContentArea
from
'
@components/ContentArea
'
const
Item
=
styled
(
Paper
)(({
theme
})
=>
({
const
Item
=
styled
(
Paper
)(({
theme
})
=>
({
backgroundColor
:
theme
.
palette
.
mode
===
'
dark
'
?
'
#1A2027
'
:
'
#fff
'
,
backgroundColor
:
theme
.
palette
.
mode
===
'
dark
'
?
'
#1A2027
'
:
'
#fff
'
,
...
theme
.
typography
.
body2
,
...
theme
.
typography
.
body2
,
...
@@ -36,27 +35,24 @@ export default function Index () {
...
@@ -36,27 +35,24 @@ export default function Index () {
<
Box
sx
=
{
{
flexGrow
:
1
}
}
>
<
Box
sx
=
{
{
flexGrow
:
1
}
}
>
<
AppBar
position
=
"static"
>
<
AppBar
position
=
"static"
>
<
Toolbar
>
<
Toolbar
>
<
Avatar
<
Avatar
alt
=
"FDO logo graphic"
alt
=
"FDO logo graphic"
src
=
"images/logo-fdo-white.png"
>
src
=
"images/logo-fdo-white.png"
>
</
Avatar
>
</
Avatar
>
<
Typography
<
Typography
variant
=
"h6"
variant
=
"h6"
noWrap
noWrap
component
=
"div"
component
=
"div"
marginLeft
=
{
2
}
marginLeft
=
{
2
}
sx
=
{
{
flexGrow
:
1
,
display
:
{
xs
:
'
none
'
,
sm
:
'
block
'
}
}
}
sx
=
{
{
flexGrow
:
1
,
display
:
{
xs
:
'
none
'
,
sm
:
'
block
'
}
}
}
>
>
FDO MANAGER
FDO MANAGER
</
Typography
>
</
Typography
>
<
Stack
<
Stack
direction
=
"row"
direction
=
"row"
width
=
"80%"
width
=
"80%"
justifyContent
=
"flex-end"
justifyContent
=
"flex-end"
alignItems
=
"center"
alignItems
=
"center"
gap
=
"14px"
gap
=
"14px"
>
>
<
FormControl
sx
=
{
{
minWidth
:
64
}
}
>
<
FormControl
sx
=
{
{
minWidth
:
64
}
}
>
<
Select
<
Select
disableUnderline
disableUnderline
...
@@ -65,33 +61,24 @@ export default function Index () {
...
@@ -65,33 +61,24 @@ export default function Index () {
variant
=
"standard"
variant
=
"standard"
sx
=
{
{
sx
=
{
{
color
:
'
inherit
'
,
color
:
'
inherit
'
,
'
& .MuiSvgIcon-root
'
:
{
'
& .MuiSvgIcon-root
'
:
{
color
:
'
inherit
'
},
color
:
'
inherit
'
'
& .MuiStack-root > .MuiTypography-root
'
:
{
display
:
{
xs
:
'
none
'
,
sm
:
'
block
'
}
}
},
}
}
>
'
& .MuiStack-root > .MuiTypography-root
'
:
{
{
[...(
locales
??
[])].
sort
().
map
((
lang
:
string
)
=>
(
display
:
{
// @ts-expect-error
xs
:
'
none
'
,
<
MenuItem
sm
:
'
block
'
component
=
{
Link
}
}
href
=
{
{
pathname
,
query
}
}
}
locale
=
{
lang
}
}
}
selected
=
{
currentLocale
===
lang
}
>
key
=
{
lang
}
{
[...(
locales
??
[])].
sort
().
map
((
lang
:
string
)
=>
(
defaultValue
=
{
lang
}
// @ts-expect-error
value
=
{
lang
}
>
<
MenuItem
<
Typography
>
component
=
{
Link
}
{
lang
===
'
en
'
?
'
English
'
:
'
German
'
}
href
=
{
{
pathname
,
query
}
}
</
Typography
>
locale
=
{
lang
}
</
MenuItem
>
selected
=
{
currentLocale
===
lang
}
))
}
key
=
{
lang
}
defaultValue
=
{
lang
}
value
=
{
lang
}
>
<
Typography
>
{
lang
===
'
en
'
?
'
English
'
:
'
German
'
}
</
Typography
>
</
MenuItem
>
))
}
</
Select
>
</
Select
>
</
FormControl
>
</
FormControl
>
</
Stack
>
</
Stack
>
...
@@ -100,8 +87,7 @@ export default function Index () {
...
@@ -100,8 +87,7 @@ export default function Index () {
color
=
"inherit"
color
=
"inherit"
onClick
=
{
()
=>
{
onClick
=
{
()
=>
{
setMode
()
setMode
()
}
}
}
}
>
>
{
mode
===
'
dark
'
?
<
LightModeOutlined
/>
:
<
DarkModeOutlined
/>
}
{
mode
===
'
dark
'
?
<
LightModeOutlined
/>
:
<
DarkModeOutlined
/>
}
</
IconButton
>
</
IconButton
>
</
Stack
>
</
Stack
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Content.tsx
+
9
−
11
View file @
7482ebaf
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
import
Box
from
'
@mui/material/Box
'
;
import
Box
from
'
@mui/material/Box
'
import
Typography
from
'
@mui/material/Typography
'
;
import
Typography
from
'
@mui/material/Typography
'
export
default
function
Types
()
{
export
default
function
Types
()
{
return
(
return
(
<
Box
sx
=
{
{
width
:
'
100%
'
,
maxWidth
:
500
}
}
>
<
Box
sx
=
{
{
width
:
'
100%
'
,
maxWidth
:
500
}
}
>
<
Typography
variant
=
"subtitle1"
gutterBottom
>
<
Typography
variant
=
"subtitle1"
gutterBottom
>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
blanditiis tenetur
blanditiis tenetur
</
Typography
>
</
Typography
>
<
Typography
variant
=
"body1"
gutterBottom
>
<
Typography
variant
=
"body1"
gutterBottom
>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
blanditiis tenetur unde suscipit, quam beatae rerum inventore consectetur,
blanditiis tenetur unde suscipit, quam beatae rerum inventore consectetur,
neque doloribus, cupiditate numquam dignissimos laborum fugiat deleniti? Eum
neque doloribus, cupiditate numquam dignissimos laborum fugiat deleniti? Eum
quasi quidem quibusdam.
quasi quidem quibusdam.
</
Typography
>
</
Typography
>
<
Typography
variant
=
"button"
display
=
"block"
gutterBottom
>
<
Typography
variant
=
"button"
display
=
"block"
gutterBottom
>
button text
button text
</
Typography
>
</
Typography
>
...
@@ -30,5 +28,5 @@ export default function Types() {
...
@@ -30,5 +28,5 @@ export default function Types() {
overline text
overline text
</
Typography
>
</
Typography
>
</
Box
>
</
Box
>
);
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/ContentArea.tsx
+
15
−
16
View file @
7482ebaf
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
import
{
styled
}
from
'
@mui/material/styles
'
;
import
{
styled
}
from
'
@mui/material/styles
'
import
Grid
from
'
@mui/material/Grid
'
;
import
Grid
from
'
@mui/material/Grid
'
import
Paper
from
'
@mui/material/Paper
'
;
import
Paper
from
'
@mui/material/Paper
'
import
Box
from
'
@mui/material/Box
'
;
import
Box
from
'
@mui/material/Box
'
import
QueryPanel
from
'
./header/QueryPanel
'
;
import
QueryPanel
from
'
./header/QueryPanel
'
import
Content
from
'
src/components/Content
'
;
import
Content
from
'
src/components/Content
'
import
Typography
from
'
@mui/material/Typography
'
;
import
Typography
from
'
@mui/material/Typography
'
import
Divider
from
'
@mui/material/Divider
'
;
import
Divider
from
'
@mui/material/Divider
'
const
Item
=
styled
(
Paper
)(({
theme
})
=>
({
const
Item
=
styled
(
Paper
)(({
theme
})
=>
({
backgroundColor
:
theme
.
palette
.
mode
===
'
dark
'
?
'
#1A2027
'
:
'
#fff
'
,
backgroundColor
:
theme
.
palette
.
mode
===
'
dark
'
?
'
#1A2027
'
:
'
#fff
'
,
...
theme
.
typography
.
body2
,
...
theme
.
typography
.
body2
,
padding
:
theme
.
spacing
(
2
),
padding
:
theme
.
spacing
(
2
),
textAlign
:
'
center
'
,
textAlign
:
'
center
'
,
color
:
theme
.
palette
.
text
.
secondary
,
color
:
theme
.
palette
.
text
.
secondary
}))
;
}))
export
default
function
RowAndColumnSpacing
()
{
export
default
function
RowAndColumnSpacing
()
{
return
(
return
(
<
Box
alignItems
=
"center"
>
<
Box
alignItems
=
"center"
>
<
Grid
container
spacing
=
{
2
}
columns
=
{
10
}
justifyContent
=
"center"
alignItems
=
"center"
marginTop
=
{
2
}
>
<
Grid
container
spacing
=
{
2
}
columns
=
{
10
}
justifyContent
=
"center"
alignItems
=
"center"
marginTop
=
{
2
}
>
...
@@ -38,7 +37,7 @@ export default function RowAndColumnSpacing() {
...
@@ -38,7 +37,7 @@ export default function RowAndColumnSpacing() {
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
blanditiis tenetur unde suscipit.
blanditiis tenetur unde suscipit.
</
Typography
><
br
/>
</
Typography
><
br
/>
<
Typography
variant
=
"button"
display
=
"block"
gutterBottom
fontSize
=
{
19
}
>
<
Typography
variant
=
"button"
display
=
"block"
gutterBottom
fontSize
=
{
19
}
>
Enter FDO Manager
Enter FDO Manager
</
Typography
>
</
Typography
>
</
Item
>
</
Item
>
...
@@ -54,5 +53,5 @@ export default function RowAndColumnSpacing() {
...
@@ -54,5 +53,5 @@ export default function RowAndColumnSpacing() {
</
Grid
>
</
Grid
>
</
Grid
>
</
Grid
>
</
Box
>
</
Box
>
);
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment