From c956ad0d1a034eac4713d88e25e3e78c81b4ccf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 10 Jan 2025 10:02:58 +0100 Subject: [PATCH] Revert "Remove desktop_alt and mobile_alt interfaces" This reverts commit a3c14feb5e979412d75dc68a62747d70b0c339ab. --- geoportal/vars.yaml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/geoportal/vars.yaml b/geoportal/vars.yaml index cf0fcc11c..a59874d67 100644 --- a/geoportal/vars.yaml +++ b/geoportal/vars.yaml @@ -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 @@ -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: @@ -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: @@ -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: @@ -483,6 +494,10 @@ vars: autoRotate: True atLoadingTime: True + mobile_renovated: + extends: mobile_alt + redirect_interface: mobile_renovated + iframe_api: constants: gmfOptions: *gmfOptions @@ -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}; @@ -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