Finish 2 days room limit

- Create modal to register when limit is past
 - Create modal to share the link
 - Use UrlManager to check if limit room is active

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant 2021-12-23 13:09:28 +01:00
parent 60f4cf75c3
commit fd64fc43a4
12 changed files with 194 additions and 11 deletions

View file

@ -1,6 +1,6 @@
<script lang="typescript">
import { fly } from "svelte/transition";
import { userIsAdminStore, limitMap } from "../../Stores/GameStore";
import { userIsAdminStore, limitMapStore } from "../../Stores/GameStore";
import { ADMIN_URL } from "../../Enum/EnvironmentVariable";
const upgradeLink = ADMIN_URL + "/pricing";
@ -11,11 +11,10 @@
{#if $userIsAdminStore}
<h2>Warning!</h2>
<p>
This world is close to its limit!. You can upgrade its capacity <a href={upgradeLink} target="_blank"
>here</a
This world is close to its limit!. You can upgrade its capacity <a href={upgradeLink} target="_blank">here</a
>
</p>
{:else if $limitMap}
{:else if $limitMapStore}
<p>
Your are une test mode. This map will be opened during 2 days. You can register your domain <a
href={registerLink}>here</a