Skip to content

Commit

Permalink
Revert "Remove desktop_alt and mobile_alt interfaces"
Browse files Browse the repository at this point in the history
This reverts commit a3c14fe.
  • Loading branch information
sbrunner committed Jan 10, 2025
1 parent 9abc933 commit c956ad0
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions geoportal/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ vars:
- name: iframe_api_renovated
type: custom
html_filename: iframe_api.html
- name: desktop_alt
type: canvas
layout: desktop
- name: desktop_renovated
type: custom
html_filename: desktop.html
- name: mobile_alt
- name: mobile_renovated
type: custom
html_filename: mobile.html
Expand Down Expand Up @@ -197,15 +201,15 @@ vars:
gmfBase:
name: base

desktop_renovated:
desktop_alt:
extends: desktop
redirect_interface: mobile_renovated
redirect_interface: mobile_alt
constants:
sentryOptions:
<<: *sentryOptions
tags:
service: js
interface: desktop_renovated
interface: desktop_alt
gmfOptions:
<<: *gmfOptions
map:
Expand Down Expand Up @@ -365,9 +369,16 @@ vars:
height: 20
gmfShareOptions:
enableEmail: False

desktop_renovated:
extends: desktop_alt
redirect_interface: mobile_renovated
constants:
# Those two lines should be commented in dev mode.
gmfCustomJavascriptUrl: ''
gmfCustomStylesheetUrl: ''
sitnFeedbackPath: custom/feedback
swisscomHeatmapPath: custom/swisscom-heatmap

mobile:
constants:
Expand All @@ -388,15 +399,15 @@ vars:
- name: srtm
unit: m

mobile_renovated:
mobile_alt:
extends: mobile
redirect_interface: desktop_renovated
redirect_interface: desktop_alt
constants:
sentryOptions:
<<: *sentryOptions
tags:
service: js
interface: mobile_renovated
interface: mobile_alt
gmfOptions:
<<: *gmfOptions
map:
Expand Down Expand Up @@ -483,6 +494,10 @@ vars:
autoRotate: True
atLoadingTime: True

mobile_renovated:
extends: mobile_alt
redirect_interface: mobile_renovated

iframe_api:
constants:
gmfOptions: *gmfOptions
Expand Down Expand Up @@ -936,7 +951,7 @@ vars:
login: *auth_header

global_headers:
- pattern: '^/desktop_renovated(/.*|\?.*)?$'
- pattern: '^/desktop_alt(/.*|\?.*)?$'
headers:
Content-Security-Policy: "default-src {content_security_policy_main_default_src};
script-src 'unsafe-eval' {content_security_policy_main_script_src};
Expand Down Expand Up @@ -1030,7 +1045,7 @@ no_interpreted:
- reset_password.email_body
- shortener.email_body
- welcome_email.email_body
- interfaces_config.mobile_renovated.constants.gmfMobileMeasurePointOptions.format
- interfaces_config.mobile_alt.constants.gmfMobileMeasurePointOptions.format

runtime_environment:
- name: SMTP_USER
Expand Down

0 comments on commit c956ad0

Please sign in to comment.