Add test mode
`*` char permit to defined test mode with warning message Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<script lang="typescript">
|
||||
import { fly } from "svelte/transition";
|
||||
import { userIsAdminStore } from "../../Stores/GameStore";
|
||||
import { userIsAdminStore, limitMap } from "../../Stores/GameStore";
|
||||
import { ADMIN_URL } from "../../Enum/EnvironmentVariable";
|
||||
|
||||
const upgradeLink = ADMIN_URL + "/pricing";
|
||||
const registerLink = ADMIN_URL + "/second-step-register";
|
||||
</script>
|
||||
|
||||
<main class="warningMain" transition:fly={{ y: -200, duration: 500 }}>
|
||||
@@ -14,6 +15,12 @@
|
||||
>here</a
|
||||
>
|
||||
</p>
|
||||
{:else if $limitMap}
|
||||
<p>
|
||||
Your are une test mode. This map will be opened during 2 days. You can register your domain <a
|
||||
href={registerLink}>here</a
|
||||
>!
|
||||
</p>
|
||||
{:else}
|
||||
<p>This world is close to its limit!</p>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user