diff --git a/front/src/Components/WarningContainer/WarningContainer.svelte b/front/src/Components/WarningContainer/WarningContainer.svelte index bacb0c1f..1843e505 100644 --- a/front/src/Components/WarningContainer/WarningContainer.svelte +++ b/front/src/Components/WarningContainer/WarningContainer.svelte @@ -4,23 +4,20 @@ import { ADMIN_URL } from "../../Enum/EnvironmentVariable"; import LL from "../../i18n/i18n-svelte"; - const upgradeLink = ADMIN_URL + "/pricing"; const registerLink = ADMIN_URL + "/second-step-register";
{#if $userIsAdminStore}

{$LL.warning.title()}

-

- {$LL.warning.content({ upgradeLink })} -

+

{@html $LL.warning.content()}

{:else if $limitMapStore}

This map is available for 2 days. You can register your domain here!

{:else}

{$LL.warning.title()}

-

{$LL.warning.limit()}

+

{@html $LL.warning.content()}

{/if}
diff --git a/front/src/i18n/de-DE/warning.ts b/front/src/i18n/de-DE/warning.ts index fb9acd5f..4d1f4738 100644 --- a/front/src/i18n/de-DE/warning.ts +++ b/front/src/i18n/de-DE/warning.ts @@ -1,9 +1,11 @@ import type { Translation } from "../i18n-types"; +import { ADMIN_URL } from "../../Enum/EnvironmentVariable"; + +const upgradeLink = ADMIN_URL + "/pricing"; const warning: NonNullable = { title: "Warnung!", - content: - 'Diese Welt erreicht bald die maximale Kapazität. Du kannst die Kapazität hier erhöhen', + content: `Diese Welt erreicht bald die maximale Kapazität. Du kannst die Kapazität hier erhöhen`, limit: "Diese Welt erreicht bald die maximale Kapazität!", accessDenied: { camera: "Zugriff auf die Kamera verweigert. Hier klicken um deine Browser Berechtigungen zu prüfen.", diff --git a/front/src/i18n/en-US/warning.ts b/front/src/i18n/en-US/warning.ts index 999c2a92..7bf83c87 100644 --- a/front/src/i18n/en-US/warning.ts +++ b/front/src/i18n/en-US/warning.ts @@ -1,9 +1,11 @@ import type { BaseTranslation } from "../i18n-types"; +import { ADMIN_URL } from "../../Enum/EnvironmentVariable"; + +const upgradeLink = ADMIN_URL + "/pricing"; const warning: BaseTranslation = { title: "Warning!", - content: - 'This world is close to its limit!. You can upgrade its capacity here', + content: `This world is close to its limit!. You can upgrade its capacity here`, limit: "This world is close to its limit!", accessDenied: { camera: "Camera access denied. Click here and check your browser permissions.", diff --git a/front/src/i18n/fr-FR/warning.ts b/front/src/i18n/fr-FR/warning.ts index ab0e9d22..11a8ab99 100644 --- a/front/src/i18n/fr-FR/warning.ts +++ b/front/src/i18n/fr-FR/warning.ts @@ -1,9 +1,11 @@ import type { Translation } from "../i18n-types"; +import { ADMIN_URL } from "../../Enum/EnvironmentVariable"; + +const upgradeLink = ADMIN_URL + "/pricing"; const warning: NonNullable = { title: "Attention!", - content: - 'Ce monde est proche de sa limite ! Vous pouvez améliorer sa capacité içi', + content: `Ce monde est proche de sa limite ! Vous pouvez améliorer sa capacité içi`, limit: "Ce monde est proche de ses limites!", accessDenied: { camera: "Accès à la caméra refusé. Cliquez ici et vérifiez les autorisations de votre navigateur.", diff --git a/pusher/src/Controller/AdminController.ts b/pusher/src/Controller/AdminController.ts index 6fbf5721..a8e3b593 100644 --- a/pusher/src/Controller/AdminController.ts +++ b/pusher/src/Controller/AdminController.ts @@ -84,11 +84,13 @@ export class AdminController extends BaseController { if (ADMIN_API_TOKEN === "") { res.writeStatus("401 Unauthorized").end("No token configured!"); + res.end(); return; } if (token !== ADMIN_API_TOKEN) { console.error("Admin access refused for token: " + token); res.writeStatus("401 Unauthorized").end("Incorrect token"); + res.end(); return; }