Skip to content

Commit

Permalink
Remove desktop_alt and mobile_alt interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 12, 2024
1 parent 4f1a802 commit a3c14fe
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions geoportal/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ 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 @@ -201,15 +197,15 @@ vars:
gmfBase:
name: base

desktop_alt:
desktop_renovated:
extends: desktop
redirect_interface: mobile_alt
redirect_interface: mobile_renovated
constants:
sentryOptions:
<<: *sentryOptions
tags:
service: js
interface: desktop_alt
interface: desktop_renovated
gmfOptions:
<<: *gmfOptions
map:
Expand Down Expand Up @@ -369,16 +365,9 @@ 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 @@ -399,15 +388,15 @@ vars:
- name: srtm
unit: m

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

mobile_renovated:
extends: mobile_alt
redirect_interface: mobile_renovated

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

global_headers:
- pattern: '^/desktop_alt(/.*|\?.*)?$'
- pattern: '^/desktop_renovated(/.*|\?.*)?$'
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 @@ -1045,7 +1030,7 @@ no_interpreted:
- reset_password.email_body
- shortener.email_body
- welcome_email.email_body
- interfaces_config.mobile_alt.constants.gmfMobileMeasurePointOptions.format
- interfaces_config.mobile_renovated.constants.gmfMobileMeasurePointOptions.format

runtime_environment:
- name: SMTP_USER
Expand Down

0 comments on commit a3c14fe

Please sign in to comment.