Skip to content

Commit

Permalink
Add new link in bottom bar to a references / release notes page
Browse files Browse the repository at this point in the history
  • Loading branch information
piMoll committed Dec 16, 2024
1 parent 1f5fa91 commit 0882d28
Show file tree
Hide file tree
Showing 17 changed files with 123 additions and 5 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ FROM ghcr.io/opengisch/qwc2_minimal-qwc2-minimal-builder:upgrade-to-qwc2-lts2024
COPY ./app/js/Help.jsx /app/js/Help.jsx
COPY ./app/js/SearchProviders.js /app/js/SearchProviders.js
COPY ./app/index.html /app/index.html
COPY ./app/static/translations/cs-CZ_overrides.json /app/static/translations/cs-CZ_overrides.json
COPY ./app/static/translations/de-CH_overrides.json /app/static/translations/de-CH_overrides.json
COPY ./app/static/translations/de-DE_overrides.json /app/static/translations/de-DE_overrides.json
COPY ./app/static/translations/en-US_overrides.json /app/static/translations/en-US_overrides.json
COPY ./app/static/translations/es-ES_overrides.json /app/static/translations/es-ES_overrides.json
COPY ./app/static/translations/fr-FR_overrides.json /app/static/translations/fr-FR_overrides.json
COPY ./app/static/translations/it-IT_overrides.json /app/static/translations/it-IT_overrides.json
COPY ./app/static/translations/pl-PL_overrides.json /app/static/translations/pl-PL_overrides.json
COPY ./app/static/translations/pt-BR_overrides.json /app/static/translations/pt-BR_overrides.json
COPY ./app/static/translations/ro-RO_overrides.json /app/static/translations/ro-RO_overrides.json
COPY ./app/static/translations/ru-RU_overrides.json /app/static/translations/ru-RU_overrides.json
COPY ./app/static/translations/sv-SE_overrides.json /app/static/translations/sv-SE_overrides.json
COPY ./app/static/translations/tr-TR_overrides.json /app/static/translations/tr-TR_overrides.json

WORKDIR /app

Expand Down
7 changes: 5 additions & 2 deletions app/js/Help.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ export function renderHelp() {
</div>
<div>QWC2 build {process.env.BuildDate}</div>
<div>
<a href={process.env.QWC2RepoSource}>Verwendete QWC2 Version</a>
<a href={process.env.QWC2RepoSource} target="_blank">Verwendete QWC2 Version</a>
</div>
<div>
<a href="https://qwc-services.github.io/master/release_notes/ChangeLog/" target="_blank">Changelog</a>
</div>
</div>
);
}
}
7 changes: 7 additions & 0 deletions app/static/translations/cs-CZ_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/de-CH_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "Hinweise"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/de-DE_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "Hinweise"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/en-US_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/es-ES_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "Notas"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/fr-FR_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "Remarques"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/it-IT_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "Note"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/pl-PL_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/pt-BR_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/pt-PT_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/ro-RO_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/ru-RU_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/sv-SE_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
7 changes: 7 additions & 0 deletions app/static/translations/tr-TR_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"messages": {
"bottombar": {
"viewertitle_label": "References"
}
}
}
10 changes: 7 additions & 3 deletions dev/customer_config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"routingServiceUrl": "",
"urlPositionFormat": "centerAndZoom",
"urlPositionCrs": "",
"loadTranslationOverrides": false,
"loadTranslationOverrides": true,
"omitUrlParameterUpdates": false,
"preserveExtentOnThemeSwitch": true,
"preserveBackgroundOnThemeSwitch": true,
Expand Down Expand Up @@ -161,7 +161,9 @@
"name": "BottomBar",
"cfg": {
"termsUrl": "https://maps.thalwil.ch/static_files/help/nutzungsbedingungen.pdf",
"termsUrlTarget": "_blank"
"termsUrlTarget": "_blank",
"viewertitleUrl": "https://maps.thalwil.ch/static_files/th_tools/index.html",
"viewertitleUrlTarget": "_blank"
}
},
{
Expand Down Expand Up @@ -336,7 +338,9 @@
"displayCoordinates": false,
"displayScales": false,
"termsUrl": "https://maps.thalwil.ch/static_files/help/nutzungsbedingungen.pdf",
"termsUrlTarget": "_blank"
"termsUrlTarget": "_blank",
"viewertitleUrl": "https://maps.thalwil.ch/static_files/th_tools/index.html",
"viewertitleUrlTarget": "_blank"
}
},
{
Expand Down

0 comments on commit 0882d28

Please sign in to comment.