Skip to content
Snippets Groups Projects
Commit 11a04f49 authored by mateusz-winiarczyk's avatar mateusz-winiarczyk
Browse files

Merge branch 'MIN-170-link-to-minerva-website' into 'development'

feat(nav): add links to minerva website and api docs (MIN-170)

Closes MIN-170

See merge request !170
parents b68a4c78 7696c716
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!170feat(nav): add links to minerva website and api docs (MIN-170)
Pipeline #88367 passed
import logoImg from '@/assets/images/logo.png';
import luxembourgLogoImg from '@/assets/images/luxembourg-logo.png';
import { API_DOCS_URL, 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';
......@@ -37,7 +38,9 @@ export const NavBar = (): JSX.Element => {
<div data-testid="nav-buttons">
<div className="mb-8 flex flex-col gap-[10px]">
<IconButton icon="info" onClick={openDrawerInfo} title="Project info" />
<IconButton icon="page" title="API Doc" />
<a href={API_DOCS_URL} target="_blank">
<IconButton icon="page" title="API Doc" />
</a>
<IconButton icon="plugin" onClick={openDrawerPlugins} title="Available plugins" />
<IconButton icon="export" onClick={openDrawerExport} title="Export" />
</div>
......@@ -57,7 +60,10 @@ export const NavBar = (): JSX.Element => {
/>
<Image src={logoImg} alt="logo" height={48} width={48} />
<span className="h-16 w-14 text-center text-[8px] leading-4">
Powered by: MINERVA Platform (v16.0.8)
Powered by: MINERVA Platform{' '}
<a href={MINERVA_WEBSITE_URL} target="_blank">
(v16.0.8)
</a>
</span>
</div>
</div>
......
......@@ -10,3 +10,5 @@ export const PROJECT_ID = getProjectIdFromUrl() || DEFAULT_PROJECT_ID;
export const ZOD_SEED = parseInt(process.env.ZOD_SEED || '123', 10);
export const BIO_ENTITY = 'bioEntity';
export const DRUGS_CHEMICALS = ['drugs', 'chemicals'];
export const MINERVA_WEBSITE_URL = 'https://minerva.pages.uni.lu/doc/';
export const API_DOCS_URL = 'https://lux1.atcomp.pl/minerva/docs/';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment