@everymatrix/casino-page 1.0.13 → 1.0.14
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/dist/casino-page.js +4 -4
- package/dist/casino-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoPage.svelte +17 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-page",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"main": "dist/casino-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": "5da9a4e3b1b2d635a921ce3981f56157191f5aa7"
|
|
40
40
|
}
|
package/src/CasinoPage.svelte
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import '@everymatrix/casino-winners';
|
|
18
18
|
import '@everymatrix/jackpot-banner';
|
|
19
19
|
import '@everymatrix/casino-collections-providers';
|
|
20
|
+
import '@everymatrix/casino-favorites-section';
|
|
20
21
|
|
|
21
22
|
export let endpoint:string = '';
|
|
22
23
|
export let datasource:string = '';
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
export let userid:string = ''; // Value for UserID;
|
|
27
28
|
export let clientstyling:string = '';
|
|
28
29
|
export let clientstylingurl:string = '';
|
|
30
|
+
export let translationUrl:string = '';
|
|
29
31
|
|
|
30
32
|
export let categorybackground:string = '';
|
|
31
33
|
export let visiblegames:string;
|
|
@@ -153,9 +155,21 @@
|
|
|
153
155
|
let urlCasino:any;
|
|
154
156
|
let firstLoad:boolean = false;
|
|
155
157
|
|
|
156
|
-
|
|
157
158
|
setupI18n({ withLocale: 'en', translations: {}});
|
|
158
159
|
|
|
160
|
+
const setTranslationUrl = ():void => {
|
|
161
|
+
let url:string = translationUrl;
|
|
162
|
+
|
|
163
|
+
fetch(url).then((res:any) => res.json())
|
|
164
|
+
.then((res) => {
|
|
165
|
+
Object.keys(res).forEach((item:any):void => {
|
|
166
|
+
addNewMessages(item, res[item]);
|
|
167
|
+
});
|
|
168
|
+
}).catch((err:any) => {
|
|
169
|
+
console.log(err);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
159
173
|
Object.keys(CasinoPageTranslations).forEach((item) => {
|
|
160
174
|
addNewMessages(item, CasinoPageTranslations[item]);
|
|
161
175
|
});
|
|
@@ -914,6 +928,7 @@
|
|
|
914
928
|
$: session && userid && endpoint && setSession();
|
|
915
929
|
$: endpoint && datasource && lang && alternativesearch && initialSetup();
|
|
916
930
|
$: lang && updateCategoriesLanguage();
|
|
931
|
+
$: translationUrl && setTranslationUrl();
|
|
917
932
|
$: clientstyling && customStylingContainer && setClientStyling();
|
|
918
933
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
919
934
|
$: panicButton && addEventsToDisplayedElements();
|
|
@@ -1188,7 +1203,7 @@
|
|
|
1188
1203
|
/>
|
|
1189
1204
|
{/each}
|
|
1190
1205
|
{:else if favoritesScreen}
|
|
1191
|
-
<casino-
|
|
1206
|
+
<casino-favorites-section
|
|
1192
1207
|
session={session}
|
|
1193
1208
|
userid={userid}
|
|
1194
1209
|
endpoint={endpoint}
|