diff --git a/front/src/Components/Menu/ContactSubMenu.svelte b/front/src/Components/Menu/ContactSubMenu.svelte index fcca3619..6cca0609 100644 --- a/front/src/Components/Menu/ContactSubMenu.svelte +++ b/front/src/Components/Menu/ContactSubMenu.svelte @@ -1,93 +1,15 @@ -
-
-
-

- The WorkAdventure team is always happy to give you some guidance and advice. - If you have any question, issue, new features or improvements you'd like to see or if you'd like to give us some feedback, - please don't hesitate to reach out! -

-
-
-

Our Office

-

- Let's grab a coffee and have a chat on our virtual office .... on WorkAdventure. Our team loves meeting new people! -

- Visit us -
-
-

Our Mail

-

You'd rather send us an email? Please, feel free to do so, although we hope we could meet you on our virtual office soon enough.

- hello@workadventu.re -
-
-

Our web site

-

Do you want to know more about us? Just follow the link to our website.

- About us -
-
-

Our social media

-

Follow us and keep you updated on the latest news and upcoming new features!

- - {'Discord'} - - - {'Facebook'} - - - {'Instagram'} - - - {'LinkedIn'} - - - {'Twitter'} - - - {'Youtube'} - -
-
-
- + \ No newline at end of file diff --git a/front/src/Components/Menu/Menu.svelte b/front/src/Components/Menu/Menu.svelte index de053b84..28ae17eb 100644 --- a/front/src/Components/Menu/Menu.svelte +++ b/front/src/Components/Menu/Menu.svelte @@ -11,6 +11,7 @@ import {onMount} from "svelte"; import {get} from "svelte/store"; import {sendMenuClickedEvent} from "../../Api/iframe/Ui/MenuItem"; + import {CONTACT_URL} from "../../Enum/EnvironmentVariable"; let activeSubMenu: string = SubMenusInterface.settings; let activeComponent: typeof SettingsSubMenu = SettingsSubMenu; @@ -20,9 +21,9 @@ subMenusStore.removeMenu(SubMenusInterface.globalMessages); } - //Until we can add iframe to a menu and change contact for self-hosted version - //we remove the contact sub-menu - subMenusStore.removeMenu(SubMenusInterface.contact); + if(CONTACT_URL === undefined) { + subMenusStore.removeMenu(SubMenusInterface.contact); + } switchMenu(SubMenusInterface.settings); }) diff --git a/front/src/Components/images/discord_64x64.png b/front/src/Components/images/discord_64x64.png deleted file mode 100644 index 89c7de1b..00000000 Binary files a/front/src/Components/images/discord_64x64.png and /dev/null differ diff --git a/front/src/Components/images/facebook_64x64.png b/front/src/Components/images/facebook_64x64.png deleted file mode 100644 index 91580149..00000000 Binary files a/front/src/Components/images/facebook_64x64.png and /dev/null differ diff --git a/front/src/Components/images/instagram_64x64.png b/front/src/Components/images/instagram_64x64.png deleted file mode 100644 index fe968f33..00000000 Binary files a/front/src/Components/images/instagram_64x64.png and /dev/null differ diff --git a/front/src/Components/images/linkedin_64x64.png b/front/src/Components/images/linkedin_64x64.png deleted file mode 100644 index 5fd3b1af..00000000 Binary files a/front/src/Components/images/linkedin_64x64.png and /dev/null differ diff --git a/front/src/Components/images/twitter_64x64.png b/front/src/Components/images/twitter_64x64.png deleted file mode 100644 index 281bd594..00000000 Binary files a/front/src/Components/images/twitter_64x64.png and /dev/null differ diff --git a/front/src/Components/images/youtube_64x64.png b/front/src/Components/images/youtube_64x64.png deleted file mode 100644 index 1c2d19f0..00000000 Binary files a/front/src/Components/images/youtube_64x64.png and /dev/null differ diff --git a/front/src/Enum/EnvironmentVariable.ts b/front/src/Enum/EnvironmentVariable.ts index b63f4f07..907162d4 100644 --- a/front/src/Enum/EnvironmentVariable.ts +++ b/front/src/Enum/EnvironmentVariable.ts @@ -18,6 +18,7 @@ export const MAX_USERNAME_LENGTH = parseInt(process.env.MAX_USERNAME_LENGTH || " export const MAX_PER_GROUP = parseInt(process.env.MAX_PER_GROUP || "4"); export const DISPLAY_TERMS_OF_USE = process.env.DISPLAY_TERMS_OF_USE == "true"; export const NODE_ENV = process.env.NODE_ENV || "development"; +export const CONTACT_URL = process.env.CONTACT_URL || undefined; export const isMobile = (): boolean => window.innerWidth <= 800 || window.innerHeight <= 600; diff --git a/front/webpack.config.ts b/front/webpack.config.ts index 39a00828..9d9a4a7b 100644 --- a/front/webpack.config.ts +++ b/front/webpack.config.ts @@ -190,6 +190,7 @@ module.exports = { PUSHER_URL: undefined, UPLOADER_URL: null, ADMIN_URL: undefined, + CONTACT_URL: null, DEBUG_MODE: null, STUN_SERVER: null, TURN_SERVER: null,