From 3f1c5246f8b6681e32156deba28ffd8c5077a6c5 Mon Sep 17 00:00:00 2001 From: GRL78 <80678534+GRL78@users.noreply.github.com> Date: Tue, 21 Sep 2021 20:24:53 +0200 Subject: [PATCH] TO MERGE : Contact page from Admin or Environment Variable (#1401) * Contact page from Admin or Environment Variable * Get contact page from admin by pusher * Changes requested * Modify contactPageStore management * documentation environment variables Co-authored-by: Gregoire Parant --- .env.template | 3 +++ front/src/Components/Menu/ContactSubMenu.svelte | 5 ++--- front/src/Connexion/Room.ts | 8 +++++++- front/src/Phaser/Game/GameScene.ts | 3 +++ front/src/Stores/MenuStore.ts | 13 +++++++++---- pusher/src/Controller/MapController.ts | 1 + pusher/src/Services/AdminApi/MapDetailsData.ts | 2 ++ 7 files changed, 27 insertions(+), 8 deletions(-) diff --git a/.env.template b/.env.template index 34537b6b..6428bee1 100644 --- a/.env.template +++ b/.env.template @@ -22,3 +22,6 @@ MAX_USERNAME_LENGTH=8 OPID_CLIENT_ID= OPID_CLIENT_SECRET= OPID_CLIENT_ISSUER= + +# If you want to have a contact page in your menu, you MUST set CONTACT_URL to the URL of the page that you want +CONTACT_URL= \ No newline at end of file diff --git a/front/src/Components/Menu/ContactSubMenu.svelte b/front/src/Components/Menu/ContactSubMenu.svelte index 6cca0609..61ecc56e 100644 --- a/front/src/Components/Menu/ContactSubMenu.svelte +++ b/front/src/Components/Menu/ContactSubMenu.svelte @@ -1,9 +1,8 @@ - +