Fix pretier
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
96d46e96c2
commit
efa57d2754
6 changed files with 64 additions and 61 deletions
|
@ -18,7 +18,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function register() {
|
function register() {
|
||||||
window.open(`${ADMIN_URL}/second-step-register`, '_self');
|
window.open(`${ADMIN_URL}/second-step-register`, "_self");
|
||||||
}
|
}
|
||||||
function showInvite() {
|
function showInvite() {
|
||||||
showShareLinkMapModalStore.set(true);
|
showShareLinkMapModalStore.set(true);
|
||||||
|
|
|
@ -3,16 +3,18 @@
|
||||||
import { ADMIN_URL } from "../../Enum/EnvironmentVariable";
|
import { ADMIN_URL } from "../../Enum/EnvironmentVariable";
|
||||||
|
|
||||||
function register() {
|
function register() {
|
||||||
window.open(`${ADMIN_URL}/second-step-register`, '_self');
|
window.open(`${ADMIN_URL}/second-step-register`, "_self");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="limit-map nes-container"
|
<div class="limit-map nes-container" transition:fly={{ y: -900, duration: 500 }}>
|
||||||
transition:fly={{ y: -900, duration: 500 }}>
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Limit of your room</h2>
|
<h2>Limit of your room</h2>
|
||||||
<p>Register your account!</p>
|
<p>Register your account!</p>
|
||||||
<p>This map is limited in the time and to continue to use WorkAdventure, you must register your account in our back office.</p>
|
<p>
|
||||||
|
This map is limited in the time and to continue to use WorkAdventure, you must register your account in our
|
||||||
|
back office.
|
||||||
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<button class="nes-btn is-primary" on:click|preventDefault={register}>Register</button>
|
<button class="nes-btn is-primary" on:click|preventDefault={register}>Register</button>
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const myNavigator: ExtNavigator = window.navigator;
|
const myNavigator: ExtNavigator = window.navigator;
|
||||||
const haveNavigatorSharingFeature:boolean = myNavigator && myNavigator.canShare != null && myNavigator.share != null;
|
const haveNavigatorSharingFeature: boolean =
|
||||||
|
myNavigator && myNavigator.canShare != null && myNavigator.share != null;
|
||||||
|
|
||||||
let copied: boolean = false;
|
let copied: boolean = false;
|
||||||
|
|
||||||
|
@ -41,8 +42,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="share-link-map nes-container"
|
<div class="share-link-map nes-container" transition:fly={{ y: -900, duration: 500 }}>
|
||||||
transition:fly={{ y: -900, duration: 500 }}>
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Invite your friends or colleagues</h2>
|
<h2>Invite your friends or colleagues</h2>
|
||||||
<p>Share the link of the room!</p>
|
<p>Share the link of the room!</p>
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
{#if $userIsAdminStore}
|
{#if $userIsAdminStore}
|
||||||
<h2>Warning!</h2>
|
<h2>Warning!</h2>
|
||||||
<p>
|
<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>
|
</p>
|
||||||
{:else if $limitMapStore}
|
{:else if $limitMapStore}
|
||||||
|
|
|
@ -65,7 +65,7 @@ class UrlManager {
|
||||||
if (!timestamp) {
|
if (!timestamp) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return ((new Date()).getTime() - 48*60*60*1000) < timestamp;
|
return new Date().getTime() - 48 * 60 * 60 * 1000 < timestamp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue