@everymatrix/casino-game-page 1.7.3 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-game-page",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.8.3",
|
4
4
|
"main": "dist/casino-game-page.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "15df0a4bc1195017b7df65675dfd40261b5dbe8b"
|
40
40
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<svelte:options tag={null} />
|
2
2
|
|
3
3
|
<script lang="ts">
|
4
|
-
import { onMount } from "svelte";
|
4
|
+
import { beforeUpdate, onMount } from "svelte";
|
5
5
|
import { isMobile, checkSession, getDevice } from 'rvhelper';
|
6
6
|
import { _, addNewMessages, setLocale, setupI18n } from './i18n';
|
7
7
|
import { GamePageTranslations } from './translations';
|
@@ -43,6 +43,8 @@
|
|
43
43
|
let iframe:any;
|
44
44
|
|
45
45
|
let isLoggedIn:boolean = false;
|
46
|
+
// should be true while we have userid/session props, but the async events which set isLoggedIn haven't completed
|
47
|
+
let determiningIsLoggedIn:boolean = false;
|
46
48
|
let isFavLoading:boolean = false;
|
47
49
|
let hasErrors:boolean = false;
|
48
50
|
let isLoading:boolean = true;
|
@@ -540,7 +542,6 @@
|
|
540
542
|
sessionID = session;
|
541
543
|
isLoggedIn = true;
|
542
544
|
}
|
543
|
-
|
544
545
|
}
|
545
546
|
|
546
547
|
const startInterval = (e:any):void => {
|
@@ -597,6 +598,10 @@
|
|
597
598
|
}
|
598
599
|
}
|
599
600
|
|
601
|
+
beforeUpdate(() => {
|
602
|
+
determiningIsLoggedIn = (session || userid) && !isLoggedIn;
|
603
|
+
})
|
604
|
+
|
600
605
|
onMount(() => {
|
601
606
|
window.addEventListener('resize', resizeHandler, false);
|
602
607
|
window.addEventListener('message', messageHandler, false);
|
@@ -676,7 +681,7 @@
|
|
676
681
|
{/if}
|
677
682
|
<p>{time}</p>
|
678
683
|
</div>
|
679
|
-
{:else if anonymousFunMode}
|
684
|
+
{:else if anonymousFunMode && !determiningIsLoggedIn}
|
680
685
|
<div class="GameDetails" part="GameDetails">
|
681
686
|
<h3>{game.name}</h3>
|
682
687
|
<img src={game.thumbnail} class="GameThumbnail" part="GameThumbnail" alt="game thumbnail" loading="lazy" />
|
@@ -687,7 +692,7 @@
|
|
687
692
|
</div>
|
688
693
|
<p>{time}</p>
|
689
694
|
</div>
|
690
|
-
{:else}
|
695
|
+
{:else if !determiningIsLoggedIn}
|
691
696
|
<div class="GameDetails" part="GameDetails">
|
692
697
|
<h3>{game.name}</h3>
|
693
698
|
<img src={game.thumbnail} class="GameThumbnail" part="GameThumbnail" alt="game thumbnail" loading="lazy" />
|
@@ -723,7 +728,7 @@
|
|
723
728
|
</div>
|
724
729
|
</div>
|
725
730
|
</div>
|
726
|
-
{:else}
|
731
|
+
{:else if !determiningIsLoggedIn}
|
727
732
|
{#if funMode}
|
728
733
|
<div id="IframeContainer" part="IframeContainer" bind:this={gameFrameContainer} class:FullsScreenLayout={isFullscreen} style="width: {modalFrameWidth}; height: {modalFrameHeight};">
|
729
734
|
<div id="IframeGame" part="IframeGame" bind:this={gameInnerContainer} style="{gameStyle}">
|
package/src/translations.js
CHANGED
@@ -29,6 +29,7 @@ export const GamePageTranslations = {
|
|
29
29
|
playForFun: 'Play for fun',
|
30
30
|
playNow: 'Jetzt beginnen!',
|
31
31
|
breakButton: 'Für 24 Std. Games Sofortpause, 3 Sekunden drücken',
|
32
|
+
loading: "Es lädt, bitte warten...",
|
32
33
|
}
|
33
34
|
},
|
34
35
|
it: {
|
@@ -39,6 +40,7 @@ export const GamePageTranslations = {
|
|
39
40
|
playForFun: 'Play for fun',
|
40
41
|
playNow: 'Inizia ora!',
|
41
42
|
breakButton: 'Prenditi 1 giorno di pausa dal gioco - 24-hour Cool Off',
|
43
|
+
loading: "Loading, please wait...",
|
42
44
|
}
|
43
45
|
},
|
44
46
|
fr: {
|
@@ -50,7 +52,7 @@ export const GamePageTranslations = {
|
|
50
52
|
playNow: 'Commencez maintenant',
|
51
53
|
break: 'Fair une pause d\'un jour pour jouer ',
|
52
54
|
breakButton: 'Refroidissement de 24 heures',
|
53
|
-
loading:
|
55
|
+
loading: "Chargement, veuillez patienter...",
|
54
56
|
}
|
55
57
|
},
|
56
58
|
es: {
|
@@ -61,6 +63,7 @@ export const GamePageTranslations = {
|
|
61
63
|
playForFun: 'Modo práctica',
|
62
64
|
playNow: 'Juega ahora!',
|
63
65
|
breakButton: 'Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas',
|
66
|
+
loading: 'Cargando por favor espere ...',
|
64
67
|
}
|
65
68
|
},
|
66
69
|
tr: {
|
@@ -71,6 +74,7 @@ export const GamePageTranslations = {
|
|
71
74
|
playForFun: 'EĞLENCE İÇİN OYNA',
|
72
75
|
playNow: 'ŞİMDİ OYNA',
|
73
76
|
breakButton: 'Oyuna 1 gün ara verin - 24-hour Cool Off',
|
77
|
+
loading: 'Yükleniyor, lütfen bekleyin...',
|
74
78
|
}
|
75
79
|
},
|
76
80
|
ru: {
|
@@ -81,6 +85,7 @@ export const GamePageTranslations = {
|
|
81
85
|
playForFun: 'ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ',
|
82
86
|
playNow: 'ИГРАТЬ СЕЙЧАС',
|
83
87
|
breakButton: 'Сделайте 1 день перерыва в игре - 24-hour Cool Off',
|
88
|
+
loading: "Loading, please wait...",
|
84
89
|
}
|
85
90
|
},
|
86
91
|
ro: {
|
@@ -91,6 +96,7 @@ export const GamePageTranslations = {
|
|
91
96
|
playForFun: 'JOACĂ PENTRU DISTRACTIE',
|
92
97
|
playNow: 'JOACĂ ACUM',
|
93
98
|
breakButton: 'Luați o pauză de la joc - 24-hour Cool Off',
|
99
|
+
loading: "Se incarca, te rugam asteapta…",
|
94
100
|
}
|
95
101
|
},
|
96
102
|
hr: {
|
@@ -101,6 +107,7 @@ export const GamePageTranslations = {
|
|
101
107
|
playForFun: 'Igraj za zabavu',
|
102
108
|
playNow: 'Započnite sada!',
|
103
109
|
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
110
|
+
loading: "Loading, please wait...",
|
104
111
|
}
|
105
112
|
},
|
106
113
|
hu: {
|
@@ -111,6 +118,7 @@ export const GamePageTranslations = {
|
|
111
118
|
playForFun: 'Play for fun',
|
112
119
|
playNow: 'Játsszon most!',
|
113
120
|
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
121
|
+
loading: 'Betöltés, kérjük várjon...',
|
114
122
|
}
|
115
123
|
},
|
116
124
|
pl: {
|
@@ -121,6 +129,7 @@ export const GamePageTranslations = {
|
|
121
129
|
playForFun: 'Graj dla zabawy',
|
122
130
|
playNow: 'Rozpocznij teraz!',
|
123
131
|
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
132
|
+
loading: "Loading, please wait...",
|
124
133
|
}
|
125
134
|
},
|
126
135
|
pt: {
|
@@ -131,6 +140,7 @@ export const GamePageTranslations = {
|
|
131
140
|
playForFun: 'Jogue por diversão',
|
132
141
|
playNow: 'Comece agora!',
|
133
142
|
breakButton: 'Faça uma pausa de 1 dia no jogo - Faça uma pausa de 24 horas no jogo',
|
143
|
+
loading: 'Carregando, por favor espere ...',
|
134
144
|
}
|
135
145
|
},
|
136
146
|
sl: {
|
@@ -141,6 +151,7 @@ export const GamePageTranslations = {
|
|
141
151
|
playForFun: 'Igrajte za zabavo',
|
142
152
|
playNow: 'Začnite zdaj!',
|
143
153
|
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
154
|
+
loading: "Loading, please wait...",
|
144
155
|
}
|
145
156
|
},
|
146
157
|
sr: {
|
@@ -151,6 +162,7 @@ export const GamePageTranslations = {
|
|
151
162
|
playForFun: 'Igraj za zabavu',
|
152
163
|
playNow: 'Započnite sada!',
|
153
164
|
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
165
|
+
loading: "Loading, please wait...",
|
154
166
|
}
|
155
167
|
}
|
156
168
|
};
|