Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Entwicklungsportal - ARCHIVED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FIT-Connect
Entwicklungsportal - ARCHIVED
Commits
abe6aa25
Commit
abe6aa25
authored
1 year ago
by
Jürgen Voskuhl
Browse files
Options
Downloads
Patches
Plain Diff
Fixed trailing spaces
parent
c16e7810
No related branches found
Branches containing commit
No related tags found
1 merge request
!86
planning#1203: Standards
Pipeline
#56299
failed
1 year ago
Stage: lint
Stage: cve-scan
Stage: build
Stage: deploy
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/[serviceName].tsx
+113
-0
113 additions, 0 deletions
components/[serviceName].tsx
with
113 additions
and
0 deletions
components/[serviceName].tsx
0 → 100644
+
113
−
0
View file @
abe6aa25
import
NavHeader
from
'
@/views/it-standards/Navigationheader
'
import
{
Header
}
from
'
@/views/it-standards/Service
'
import
{
ServiceContent
}
from
'
../types/ServiceContent
'
import
{
InfoBoxes
}
from
'
@/views/it-standards/InfoBoxes
'
import
useContent
from
'
shared/use-content
'
import
useImgPath
from
'
shared/use-img-path
'
const
initializedUsedContent
=
useContent
(
'
standards
'
)
const
{
getImgPath
}
=
useImgPath
()
export
default
function
({
contentString
})
{
const
content
:
ServiceContent
=
JSON
.
parse
(
contentString
)
if
(
content
.
docsUrl
!==
undefined
&&
content
.
docsUrl
!==
''
)
{
const
documentationLinkItem
=
content
.
artefacts
.
filter
((
item
)
=>
item
.
name
===
'
artefaktDocumentation
'
&&
item
.
url
===
'
n.v.
'
)[
0
]
if
(
documentationLinkItem
!==
undefined
)
{
documentationLinkItem
.
url
=
content
.
docsUrl
}
}
return
(
<
div
className
=
{
'
mx-auto max-w-screen-xl it-standard
'
}
>
<
div
className
=
"col-start-1 col-span-12 "
>
<
NavHeader
/>
</
div
>
<
header
className
=
"lg:col-start-1 xl:col-start-1 lg:col-span-12 xl:col-span-12 flex flex-row pt-4 font-medium"
>
Föderaler IT-Standard - Detailansicht
</
header
>
<
div
className
=
"flex"
>
<
main
className
=
"lg:col-span-9 xl:col-span-9"
>
<
Header
contact
=
{
{
name
:
content
.
contactInformation
.
name
,
mail
:
content
.
contactInformation
.
mail
,
}
}
img
=
{
{
src
:
getImgPath
(
content
.
logo
.
path
),
alt
:
content
.
logo
.
title
,
}
}
title
=
{
content
?.
name
}
description
=
{
content
?.
text
}
tags
=
{
content
.
tags
}
developer
=
{
{
name
:
content
?.
developer
.
name
,
link
:
content
?.
developer
.
url
,
}
}
statusLabel
=
{
content
.
status
}
documentationURL
=
{
content
.
docsUrl
}
sourceURL
=
{
content
.
sourceCodeUrl
}
resources
=
{
content
.
childResources
}
/>
</
main
>
<
div
className
=
"lg:block lg:col-span-2 xl:col-span-2 mt-8 p-2"
>
<
InfoBoxes
productOwner
=
{
{
name
:
content
.
productOwner
.
name
,
mail
:
content
.
productOwner
.
mail
,
link
:
content
.
productOwner
.
url
,
phone
:
content
.
productOwner
.
phone
,
contactform
:
content
.
productOwner
.
contactform
,
}
}
developer
=
{
{
name
:
content
.
developer
.
name
,
mail
:
content
.
developer
.
mail
,
link
:
content
.
developer
.
url
,
phone
:
content
.
developer
.
phone
,
contactform
:
content
.
developer
.
contactform
,
}
}
contact
=
{
{
name
:
content
.
contactInformation
.
name
,
mail
:
content
.
contactInformation
.
mail
,
link
:
content
.
contactInformation
.
url
,
phone
:
content
.
contactInformation
.
phone
,
contactform
:
content
.
contactInformation
.
contactform
,
}
}
supportInfo
=
{
content
.
supportInfo
}
artefacts
=
{
content
.
artefacts
}
combinedStandards
=
{
content
.
childResources
}
slugMaster
=
{
content
.
slugMaster
}
currentSlug
=
{
content
.
slug
}
lastUpdate
=
{
content
.
dateLastUpdate
}
/>
</
div
>
</
div
>
</
div
>
)
}
export
async
function
getStaticProps
({
params
})
{
const
content
=
initializedUsedContent
.
contentByServiceName
(
params
.
serviceName
)
return
{
props
:
{
contentString
:
JSON
.
stringify
(
content
),
},
}
}
export
async
function
getStaticPaths
()
{
const
{
contents
}
=
useContent
(
'
standards
'
)
const
servicePaths
=
contents
.
map
((
content
)
=>
{
return
{
params
:
{
serviceName
:
content
.
slug
}
}
})
return
{
paths
:
servicePaths
,
fallback
:
false
,
}
}
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