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
35954de5
Verified
Commit
35954de5
authored
4 months ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
FIX: display_name
parent
888437c3
No related branches found
No related tags found
1 merge request
!7
Revert "MAINT: Ignore venv and package-lock.json"
Pipeline
#56453
passed
4 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+7
-2
7 additions, 2 deletions
Dockerfile
pages/fdo/show/[prefix]/[suffix].tsx
+5
-2
5 additions, 2 deletions
pages/fdo/show/[prefix]/[suffix].tsx
with
12 additions
and
4 deletions
Dockerfile
+
7
−
2
View file @
35954de5
...
@@ -24,8 +24,13 @@ COPY . .
...
@@ -24,8 +24,13 @@ COPY . .
ENV
PORT 3000
ENV
PORT 3000
ENV
NEXT_PUBLIC_API_URL=https://manager.testbed.pid.gwdg.de/api/v1
ARG
NEXT_PUBLIC_API_URL
ENV
KEY_CLOAK_CLIENT_SECRET ""
ARG
KEY_CLOAK_CLIENT_SECRET
ARG
NEXT_PUBLIC_HANDLE_SYSTEM_BASE_URI
ENV
NEXT_PUBLIC_HANDLE_SYSTEM_BASE_URI=${NEXT_PUBLIC_HANDLE_SYSTEM_BASE_URI}
ENV
NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-"https://manager.testbed.pid.gwdg.de/api/v1"}
ENV
KEY_CLOAK_CLIENT_SECRET=${KEY_CLOAK_CLIENT_SECRET}
#EXPOSE 3000
#EXPOSE 3000
#CMD ["npm", "run", "dev"]
#CMD ["npm", "run", "dev"]
...
...
This diff is collapsed.
Click to expand it.
pages/fdo/show/[prefix]/[suffix].tsx
+
5
−
2
View file @
35954de5
...
@@ -29,7 +29,6 @@ import ReportIcon from '@mui/icons-material/Report'
...
@@ -29,7 +29,6 @@ import ReportIcon from '@mui/icons-material/Report'
import
{
JsonView
,
darkStyles
,
defaultStyles
}
from
'
react-json-view-lite
'
;
import
{
JsonView
,
darkStyles
,
defaultStyles
}
from
'
react-json-view-lite
'
;
import
{
styled
,
ThemeProvider
}
from
'
@mui/material/styles
'
import
{
styled
,
ThemeProvider
}
from
'
@mui/material/styles
'
import
Details
from
'
../../../../src/components/fdos/details
'
import
Details
from
'
../../../../src/components/fdos/details
'
import
IFdo
from
'
../../../../src/interfaces/IFdo
'
import
{
FDO_COMMUNITY_TYPE_EVEBS
as
EVEBS
,
FDO_COMMUNITY_MD_PROFILE_EDC
as
EDC
,
FDO_COMMUNITY_MD_PROFILE_AAS
as
AAS
,
HANDLE_SYSTEM_BASE_URI
as
HS_BASE_URI
}
from
'
../../../../src/constants
'
import
{
FDO_COMMUNITY_TYPE_EVEBS
as
EVEBS
,
FDO_COMMUNITY_MD_PROFILE_EDC
as
EDC
,
FDO_COMMUNITY_MD_PROFILE_AAS
as
AAS
,
HANDLE_SYSTEM_BASE_URI
as
HS_BASE_URI
}
from
'
../../../../src/constants
'
import
'
react-json-view-lite/dist/index.css
'
;
import
'
react-json-view-lite/dist/index.css
'
;
...
@@ -105,12 +104,16 @@ const EvebsDetails = ({typePid, repository, metadataPid}) => {
...
@@ -105,12 +104,16 @@ const EvebsDetails = ({typePid, repository, metadataPid}) => {
});
});
const
metadata
=
data
?.
data
;
const
metadata
=
data
?.
data
;
var
displayName
=
metadata
?.
displayName
if
(
displayName
)
{
displayName
=
displayName
[
0
].
text
}
console
.
log
(
isLoading
,
data
,
repository
,
typePid
,
metadata
);
console
.
log
(
isLoading
,
data
,
repository
,
typePid
,
metadata
);
return
isLoading
||
metadataRecord
.
isLoading
?
<
Item
>
loading json
</
Item
>
:
(
return
isLoading
||
metadataRecord
.
isLoading
?
<
Item
>
loading json
</
Item
>
:
(
<>
<>
<
Item
sx
=
{
{
width
:
'
50%
'
}
}
>
<
Item
sx
=
{
{
width
:
'
50%
'
}
}
>
<
Typography
variant
=
"h5"
gutterBottom
>
{
metadata
?.
displayName
||
metadata
.
idShort
||
metadata
.
id
}
</
Typography
>
<
Typography
variant
=
"subtitle1"
gutterBottom
>
{
metadata
?.
description
[
0
].
text
}
</
Typography
>
<
Typography
variant
=
"h5"
gutterBottom
>
{
displayName
||
metadata
.
idShort
||
metadata
.
id
}
</
Typography
>
<
Typography
variant
=
"subtitle1"
gutterBottom
>
{
metadata
?.
description
[
0
].
text
}
</
Typography
>
<
Box
>
<
Box
>
<
Details
rows
=
{
getEvebsDetails
(
typePid
,
repository
,
metadataRecord
.
data
.
data
)
}
></
Details
>
<
Details
rows
=
{
getEvebsDetails
(
typePid
,
repository
,
metadataRecord
.
data
.
data
)
}
></
Details
>
</
Box
>
</
Box
>
...
...
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