From c8eb4d8fcde4127984b8741174d74b5017c06a6e Mon Sep 17 00:00:00 2001 From: Brett Kochendorfer Date: Thu, 5 Oct 2023 11:09:42 -0500 Subject: [PATCH 1/4] feat: Mozilla Accounts Post Nov 1 Add ability to show different banner after November 1st and to change the Firefox Account logo to Mozilla. --- config/development.json | 3 +- config/local.json | 3 +- config/production.json | 3 +- src/html/index.html | 58 +++++++++++++++++++++++++++--- src/js/decorators.js | 2 ++ src/js/handlers.js | 1 + src/scss/components/_branding.scss | 9 +++++ 7 files changed, 72 insertions(+), 7 deletions(-) diff --git a/config/development.json b/config/development.json index 02cadd4..6bd8975 100644 --- a/config/development.json +++ b/config/development.json @@ -12,7 +12,8 @@ "autologin": "true", "iam_api_lookup": "true", "maintenance_mode": "false", - "mozilla_accounts_banner_pre": "true" + "mozilla_accounts_banner_pre": "true", + "mozilla_accounts_banner_post": "false" }, "supportedLoginMethods": [ "github", "google-oauth2", "firefoxaccounts", "email" ], "csp": "default-src 'none'; connect-src 'self' https://iam.api.test.sso.allizom.org; script-src 'self' https://cdn.sso.allizom.org https://www.googletagmanager.com https://www.google-analytics.com; style-src 'self' https://cdn.sso.allizom.org; font-src 'self' https://cdn.sso.allizom.org; img-src 'self' https://cdn.sso.allizom.org https://www.google-analytics.com", diff --git a/config/local.json b/config/local.json index 3278257..aaa62e8 100644 --- a/config/local.json +++ b/config/local.json @@ -12,7 +12,8 @@ "autologin": "true", "iam_api_lookup": "true", "maintenance_mode": "false", - "mozilla_accounts_banner_pre": "true" + "mozilla_accounts_banner_pre": "false", + "mozilla_accounts_banner_post": "true" }, "supportedLoginMethods": [ "github", "google-oauth2", "firefoxaccounts", "email" ], "csp": "default-src *", diff --git a/config/production.json b/config/production.json index 361ff0d..28dbb22 100644 --- a/config/production.json +++ b/config/production.json @@ -11,7 +11,8 @@ "autologin": "true", "iam_api_lookup": "true", "maintenance_mode": "false", - "mozilla_accounts_banner_pre": "true" + "mozilla_accounts_banner_pre": "true", + "mozilla_accounts_banner_post": "false" }, "supportedLoginMethods": [ "github", "google-oauth2", "firefoxaccounts", "email" ], "csp": "default-src 'none'; connect-src 'self' https://iam.api.sso.mozilla.com; script-src 'self' https://cdn.sso.mozilla.com https://www.googletagmanager.com https://www.google-analytics.com; style-src 'self' https://cdn.sso.mozilla.com; font-src 'self' https://cdn.sso.mozilla.com; img-src 'self' https://cdn.sso.mozilla.com https://www.google-analytics.com", diff --git a/src/html/index.html b/src/html/index.html index 82661a6..deafe42 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -33,6 +33,9 @@ autologin: {{{ features.autologin }}} iam_api_lookup: {{{ features.iam_api_lookup }}} supportedLoginMethods: {{{ supportedLoginMethods }}} + maintenance_mode: "{{{ features.maintenance_mode }}}" + mozilla_accounts_banner_pre: "{{{ features.mozilla_accounts_banner_pre }}}" + mozilla_accounts_banner_post: "{{{ features.mozilla_accounts_banner_post }}}" Display names: github: {{{ displayNames.github }}} google-oauth2: {{{ displayNames.google-oauth2 }}} @@ -98,6 +101,35 @@ + +
@@ -117,12 +149,18 @@