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:
parent
27aa3c51d3
commit
a5d4d163e1
5 changed files with 24 additions and 4 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue