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
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
cac94455
Commit
cac94455
authored
9 months ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
remove unncessary comments
parent
55527a9e
No related branches found
No related tags found
1 merge request
!22
Feature/nat 569 add opa to gui2
Pipeline
#86935
passed
9 months ago
Stage: tsc_lint_and_test
Stage: build
Stage: trigger_jenkins_build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contexts/GsoConfigContext.tsx
+0
-6
0 additions, 6 deletions
contexts/GsoConfigContext.tsx
pages/_app.tsx
+0
-2
0 additions, 2 deletions
pages/_app.tsx
with
0 additions
and
8 deletions
contexts/GsoConfigContext.tsx
+
0
−
6
View file @
cac94455
import
React
,
{
createContext
,
useContext
,
ReactNode
}
from
'
react
'
;
// Define the shape of the GsoConfig
interface
GsoConfig
{
opaPublicBundleUrl
:
string
;
oidcClientId
:
string
;
}
// Create the default values for the context
const
defaultGsoConfig
:
GsoConfig
=
{
opaPublicBundleUrl
:
''
,
oidcClientId
:
''
,
};
// Create the context
const
GsoConfigContext
=
createContext
<
GsoConfig
>
(
defaultGsoConfig
);
// Define the provider's props, including children
interface
GsoConfigProviderProps
{
initialOrchestratorConfig
:
GsoConfig
;
children
:
ReactNode
;
}
// Create a provider component
export
const
GsoConfigProvider
:
React
.
FC
<
GsoConfigProviderProps
>
=
({
initialOrchestratorConfig
,
children
,
...
...
@@ -33,7 +28,6 @@ export const GsoConfigProvider: React.FC<GsoConfigProviderProps> = ({
);
};
// Create a custom hook for using the context
export
const
useGsoConfig
=
()
=>
{
return
useContext
(
GsoConfigContext
);
};
...
...
This diff is collapsed.
Click to expand it.
pages/_app.tsx
+
0
−
2
View file @
cac94455
// Adjust the import path as necessary
import
'
../font/inter.css
'
;
import
{
getAppLogo
}
from
'
@/components/AppLogo/AppLogo
'
;
import
{
WfoAuthWithPolicy
}
from
'
@/components/WfoAuthWithPolicy
'
;
...
...
@@ -7,7 +6,6 @@ import {
getInitialOrchestratorConfig
,
}
from
'
@/configuration
'
;
import
{
gsoConfig
}
from
'
@/configuration/configuration
'
;
// Adjust the import path as necessary
import
{
GsoConfigProvider
}
from
'
@/contexts/GsoConfigContext
'
;
import
{
TranslationsProvider
}
from
'
@/translations/translationsProvider
'
;
import
{
EuiProvider
,
EuiThemeColorMode
}
from
'
@elastic/eui
'
;
...
...
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