Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GÉANT Service Orchestrator GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator GUI
Commits
94ee92ab
Commit
94ee92ab
authored
1 year ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
fix acl for MapsPage and remove exampe title
parent
e2ac6803
No related branches found
No related tags found
1 merge request
!29
fix acl for MapsPage and remove exampe title
Pipeline
#87035
passed
1 year ago
Stage: tsc_lint_and_test
Stage: build
Stage: trigger_jenkins_build
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pages/_app.tsx
+1
-1
1 addition, 1 deletion
pages/_app.tsx
pages/maps/index.tsx
+7
-11
7 additions, 11 deletions
pages/maps/index.tsx
types/policyResources.ts
+3
-0
3 additions, 0 deletions
types/policyResources.ts
with
11 additions
and
12 deletions
pages/_app.tsx
+
1
−
1
View file @
94ee92ab
...
...
@@ -130,7 +130,7 @@ function CustomApp({
<
TranslationsProvider
>
<
Head
>
<
link
rel
=
"icon"
href
=
"/favicon.png"
/>
<
title
>
Welcome to example-o
rchestrator
-ui!
</
title
>
<
title
>
GÉANT Service O
rchestrator
</
title
>
</
Head
>
<
main
className
=
"app"
>
<
ConfirmationDialogContextWrapper
>
...
...
This diff is collapsed.
Click to expand it.
pages/maps/index.tsx
+
7
−
11
View file @
94ee92ab
import
NetworkMap
from
'
@/components/NetworkMap/NetworkMap
'
;
import
{
GSOPolicyResource
}
from
'
@/types/policyResources
'
;
import
{
NetworkTopologyData
}
from
'
@/types/types
'
;
import
{
WfoPolicyRenderPageFallback
}
from
'
@orchestrator-ui/orchestrator-ui-components
'
;
import
axios
from
'
axios
'
;
import
{
NextPage
,
GetServerSideProps
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
interface
MapsProps
{
networkTopologyData
:
NetworkTopologyData
;
}
const
Maps
:
NextPage
<
MapsProps
>
=
({
networkTopologyData
})
=>
{
const
Maps
Page
:
NextPage
<
MapsProps
>
=
({
networkTopologyData
})
=>
{
return
(
<>
<
Head
>
<
title
>
Maps
</
title
>
</
Head
>
<
div
>
<
NetworkMap
data
=
{
networkTopologyData
}
/>
</
div
>
</>
<
WfoPolicyRenderPageFallback
resource
=
{
GSOPolicyResource
.
NAVIGATION_MAPS
}
>
<
NetworkMap
data
=
{
networkTopologyData
}
/>
</
WfoPolicyRenderPageFallback
>
);
};
...
...
@@ -42,4 +38,4 @@ export const getServerSideProps: GetServerSideProps = async () => {
}
};
export
default
Maps
;
export
default
Maps
Page
;
This diff is collapsed.
Click to expand it.
types/policyResources.ts
0 → 100644
+
3
−
0
View file @
94ee92ab
export
enum
GSOPolicyResource
{
NAVIGATION_MAPS
=
'
NAVIGATION_MAPS
'
,
}
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