From af66e690a4a6321fa192342eb02b398f0eb34d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 12 Oct 2022 17:58:18 +0200 Subject: [PATCH] Making legals link customizable This PR makes legal links (privacy policy, etc...) customizable via ADMIN_API. This also removes the need for a DISPLAY_TERMS_OF_USE environment variable. This PR also adds new fields in the /map endpoint to customize the look of the platform (background color and customize icons) --- front/src/Components/Login/LoginScene.svelte | 35 ++++++++++++-- front/src/Connexion/Room.ts | 16 +++++-- front/src/Enum/EnvironmentVariable.ts | 1 - front/src/i18n/ca-ES/login.ts | 5 +- front/src/i18n/de-DE/login.ts | 5 +- front/src/i18n/en-US/login.ts | 5 +- front/src/i18n/es-ES/login.ts | 5 +- front/src/i18n/formatters.ts | 2 +- front/src/i18n/fr-FR/login.ts | 5 +- front/src/i18n/pt-BR/login.ts | 5 +- front/src/i18n/zh-CN/login.ts | 5 +- front/vite.config.ts | 1 - messages/JsonMessages/MapDetailsData.ts | 48 ++++++++++++++++++++ 13 files changed, 119 insertions(+), 19 deletions(-) diff --git a/front/src/Components/Login/LoginScene.svelte b/front/src/Components/Login/LoginScene.svelte index 8fded543d3..d79d27933a 100644 --- a/front/src/Components/Login/LoginScene.svelte +++ b/front/src/Components/Login/LoginScene.svelte @@ -1,11 +1,11 @@