Commit 2c488585 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

display Dashboard link in footer via DASHBOARD_URL env variable

parent 6310f437
Pipeline #227508 passed with stage
in 2 minutes and 3 seconds
......@@ -13,6 +13,8 @@ API_URL="http://localhost:5000"
BASE_URL="http://localhost:3000"
# DASHBOARD_URL="https://db.nomics.world/dashboard"
TIME_SERIES_EDITOR_URL=https://editor.nomics.world
# MATOMO_BASE_URL=""
......
......@@ -14,6 +14,8 @@
$: apiPublicBaseUrl = $session.apiPublicBaseUrl
$: dashboardUrl = $session.dashboardUrl
$: matomoBaseUrl = $session.matomoBaseUrl
$: matomoSiteId = $session.matomoSiteId
......@@ -77,7 +79,9 @@
<h5 class="text-lg font-normal mb-4">Resources</h5>
<ul class="leading-normal">
<li><a target="_blank" href="https://db.nomics.world/docs">Documentation</a></li>
<li><a target="_blank" href="https://db.nomics.world/dashboard">Dashboard</a></li>
{#if dashboardUrl}
<li><a target="_blank" href={dashboardUrl}>Dashboard</a></li>
{/if}
<li>
<a target="_blank" href="https://git.nomics.world/dbnomics/dbnomics-python-client">Python client</a>
</li>
......
......@@ -21,6 +21,8 @@ if (!baseUrl) {
throw Error("Environment variable BASE_URL is missing.")
}
export const dashboardUrl = trimEndSlash(process.env.DASHBOARD_URL)
export const timeSeriesEditorUrl = trimEndSlash(process.env.TIME_SERIES_EDITOR_URL)
export const matomoBaseUrl = process.env.MATOMO_BASE_URL ? trimEndSlash(process.env.MATOMO_BASE_URL) : null
......
......@@ -9,6 +9,7 @@ import {
apiPrivateBaseUrl,
apiPublicBaseUrl,
baseUrl,
dashboardUrl,
contentBaseUrl,
forumUrl,
forumNewsCategory,
......@@ -46,6 +47,7 @@ polka() // You can also use Express
apiPrivateBaseUrl,
apiPublicBaseUrl,
baseUrl,
dashboardUrl,
contentBaseUrl,
downloadSeriesLimit,
forumNewsCategory,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment