Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
minerva
frontend
Merge requests
!193
Resolve "[
MIN-170
] Link to minerva website + API doc"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "[
MIN-170
] Link to minerva website + API doc"
107-min-170-link-to-minerva-website-api-doc
into
development
Overview
0
Commits
2
Pipelines
3
Changes
10
Merged
Piotr Gawron
requested to merge
107-min-170-link-to-minerva-website-api-doc
into
development
10 months ago
Overview
0
Commits
2
Pipelines
3
Changes
10
Expand
Closes
#107 (closed)
0
0
Merge request reports
Viewing commit
10050fd5
Prev
Next
Show latest version
10 files
+
91
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
10050fd5
api docs url is computed based on api base url
· 10050fd5
Piotr Gawron
authored
10 months ago
src/components/FunctionalArea/NavBar/NavBar.component.tsx
+
6
−
2
Options
import
logoImg
from
'
@/assets/vectors/branding/logo.svg
'
;
import
luxembourgLogoImg
from
'
@/assets/vectors/branding/luxembourg-logo.svg
'
;
import
{
API_DOCS_URL
,
MINERVA_WEBSITE_URL
}
from
'
@/constants
'
;
import
{
MINERVA_WEBSITE_URL
}
from
'
@/constants
'
;
import
{
openDrawer
}
from
'
@/redux/drawer/drawer.slice
'
;
import
{
useAppDispatch
}
from
'
@/redux/hooks/useAppDispatch
'
;
import
{
openLegend
}
from
'
@/redux/legend/legend.slice
'
;
@@ -33,12 +33,16 @@ export const NavBar = (): JSX.Element => {
const
configuration
=
store
.
getState
().
configuration
.
main
.
data
;
const
version
=
configuration
?
`(v
${
configuration
.
version
}
)`
:
''
;
const
constant
=
store
.
getState
().
constant
.
main
.
data
;
const
apiDocsUrl
=
constant
?
constant
.
apiDocsUrl
:
''
;
return
(
<
div
className
=
"flex min-h-full w-[88px] flex-col items-center justify-between overflow-y-auto bg-cultured py-8"
>
<
div
data-testid
=
"nav-buttons"
>
<
div
className
=
"mb-8 flex flex-col gap-[10px]"
>
<
IconButton
icon
=
"info"
onClick
=
{
openDrawerInfo
}
title
=
"Project info"
/>
<
a
href
=
{
API_DOCS_URL
}
target
=
"_blank"
>
<
a
href
=
{
apiDocsUrl
}
target
=
"_blank"
>
<
IconButton
icon
=
"page"
title
=
"API Doc"
/>
</
a
>
<
IconButton
icon
=
"plugin"
onClick
=
{
openDrawerPlugins
}
title
=
"Available plugins"
/>
Loading