@everymatrix/casino-games-category-section 0.0.95 → 0.0.99
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-games-category-section",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.99",
|
|
4
4
|
"main": "dist/casino-games-category-section.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": "e1d8e342dfc965336d29503748fc0cfd1698d7a9"
|
|
40
40
|
}
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
export let categoryindex:Number = 0;
|
|
25
25
|
export let categorygames:Number = 0;
|
|
26
26
|
|
|
27
|
+
export let once = true;
|
|
28
|
+
export let top = 0;
|
|
29
|
+
export let bottom = 0;
|
|
30
|
+
export let left = 0;
|
|
31
|
+
export let right = 0;
|
|
32
|
+
|
|
27
33
|
// CasinoPage loading state
|
|
28
34
|
let isLoading:Boolean = false;
|
|
29
35
|
let hasErrors:Boolean = false;
|
|
@@ -49,12 +55,6 @@
|
|
|
49
55
|
let showItems:Boolean = true;
|
|
50
56
|
|
|
51
57
|
/* Start Lazy Loading */
|
|
52
|
-
export let once = true;
|
|
53
|
-
export let top = 0;
|
|
54
|
-
export let bottom = 0;
|
|
55
|
-
export let left = 0;
|
|
56
|
-
export let right = 0;
|
|
57
|
-
|
|
58
58
|
let nativeLoading = true;
|
|
59
59
|
let intersecting = false;
|
|
60
60
|
let container:any;
|
|
@@ -72,9 +72,6 @@
|
|
|
72
72
|
let mostPlayedScreen:Boolean = false;
|
|
73
73
|
let customStylingContainer:HTMLElement;
|
|
74
74
|
|
|
75
|
-
// const operatorCategoryVisibleGames:number = operatorDetail.categoryStyles.numberOfVisibleGames;
|
|
76
|
-
// const operatorFavoritesURL:string = operatorConfig.favoritesUrl;
|
|
77
|
-
|
|
78
75
|
let favoriteGamesData:any = {
|
|
79
76
|
items: [],
|
|
80
77
|
count: 0,
|
|
@@ -334,9 +331,12 @@
|
|
|
334
331
|
sessionID = e.data.session;
|
|
335
332
|
playerID = e.data.userID;
|
|
336
333
|
|
|
337
|
-
if (
|
|
338
|
-
|
|
334
|
+
if (favorites == 'true') {
|
|
335
|
+
if (playerID && playerID.length && sessionID && sessionID.length > 0) {
|
|
336
|
+
getFavoredGames(`${endpoint}/player/${playerID}/favorites/`, sessionID, playerID);
|
|
337
|
+
}
|
|
339
338
|
}
|
|
339
|
+
|
|
340
340
|
break;
|
|
341
341
|
|
|
342
342
|
default:
|
|
@@ -404,9 +404,11 @@
|
|
|
404
404
|
cssFile.innerHTML = `@import ${clientstylingurl}`;
|
|
405
405
|
|
|
406
406
|
if (clientstylingurl) {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
407
|
+
let url = new URL(clientstylingurl);
|
|
408
|
+
|
|
409
|
+
fetch(url)
|
|
410
|
+
.then((res:any) => res.text())
|
|
411
|
+
.then((data:any) => {
|
|
410
412
|
cssFile.innerHTML = data
|
|
411
413
|
|
|
412
414
|
if (customStylingContainer) {
|
|
@@ -418,12 +420,13 @@
|
|
|
418
420
|
|
|
419
421
|
onMount(() => {
|
|
420
422
|
window.addEventListener('message', messageHandler, false);
|
|
421
|
-
window.postMessage({ type: 'GetFavoredGame'}, window.location.href);
|
|
423
|
+
window.postMessage({ type: 'GetFavoredGame' }, window.location.href);
|
|
422
424
|
|
|
423
425
|
/* Start Lazy Loading */
|
|
424
426
|
const handler = () => {
|
|
425
|
-
if(container) {
|
|
427
|
+
if (container) {
|
|
426
428
|
const containerDimensions = container.getBoundingClientRect();
|
|
429
|
+
|
|
427
430
|
intersecting = (
|
|
428
431
|
(containerDimensions.bottom + bottom) > 0 &&
|
|
429
432
|
(containerDimensions.right + right) > 0 &&
|
|
@@ -501,6 +504,7 @@
|
|
|
501
504
|
gamefunmode={gameprops.hasFunMode}
|
|
502
505
|
gamefavorite={gameprops.isFavorite}
|
|
503
506
|
{clientstyling}
|
|
507
|
+
{clientstylingurl}
|
|
504
508
|
{endpoint}
|
|
505
509
|
></casino-game-thumbnail>
|
|
506
510
|
{/each}
|
|
@@ -547,6 +551,7 @@
|
|
|
547
551
|
gamefunmode={gameprops.hasFunMode}
|
|
548
552
|
gamefavorite={gameprops.isFavorite}
|
|
549
553
|
{clientstyling}
|
|
554
|
+
{clientstylingurl}
|
|
550
555
|
{endpoint}
|
|
551
556
|
></casino-game-thumbnail>
|
|
552
557
|
{/if}
|
|
@@ -588,6 +593,7 @@
|
|
|
588
593
|
gamefavorite={gameprops.gameModel.isFavorite}
|
|
589
594
|
showfavoredcategory={showFavGamesCategory}
|
|
590
595
|
{clientstyling}
|
|
596
|
+
{clientstylingurl}
|
|
591
597
|
{endpoint}
|
|
592
598
|
></casino-game-thumbnail>
|
|
593
599
|
{/if}
|
|
@@ -610,6 +616,7 @@
|
|
|
610
616
|
gamefavorite={gameprops.gameModel.isFavorite}
|
|
611
617
|
showfavoredcategory={showFavGamesCategory}
|
|
612
618
|
{clientstyling}
|
|
619
|
+
{clientstylingurl}
|
|
613
620
|
{endpoint}
|
|
614
621
|
></casino-game-thumbnail>
|
|
615
622
|
{/if}
|
package/src/translations.js
CHANGED
|
@@ -5,7 +5,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
5
5
|
viewAll: 'Show all',
|
|
6
6
|
searchedItems: 'Search result',
|
|
7
7
|
recentSearchedItems: 'Recently searched',
|
|
8
|
-
noResults: 'Sorry, no results found. Please try again'
|
|
8
|
+
noResults: 'Sorry, no results found. Please try again.'
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
de: {
|
|
@@ -14,7 +14,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
14
14
|
viewAll: 'Alle anzeigen',
|
|
15
15
|
searchedItems: 'Suchergebnis',
|
|
16
16
|
recentSearchedItems: 'Zuletzt gesucht',
|
|
17
|
-
noResults: 'Sorry,
|
|
17
|
+
noResults: 'Sorry, kein Treffer. Bitte erneut versuchen.'
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
it: {
|
|
@@ -23,7 +23,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
23
23
|
viewAll: 'Mostra tutto',
|
|
24
24
|
searchedItems: 'risultato',
|
|
25
25
|
recentSearchedItems: 'Ricerche recenti',
|
|
26
|
-
noResults: '
|
|
26
|
+
noResults: 'Spiacenti, nessun risultato. Si prega di riprovare.'
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
fr: {
|
|
@@ -77,7 +77,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
77
77
|
viewAll: 'Pokaži sve',
|
|
78
78
|
searchedItems: 'Pretraži rezultat',
|
|
79
79
|
recentSearchedItems: 'Zadnje pretrage',
|
|
80
|
-
noResults: '
|
|
80
|
+
noResults: 'Žao nam je, nema rezultata. Molimo pokušajte ponovno.'
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
hu: {
|
|
@@ -86,7 +86,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
86
86
|
viewAll: 'Az összes megjelenítése',
|
|
87
87
|
searchedItems: 'Keresés eredménye',
|
|
88
88
|
recentSearchedItems: 'Legutóbb keresett',
|
|
89
|
-
noResults: '
|
|
89
|
+
noResults: 'Sajnos nincs találat. Kérjük próbálja újra.'
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
pl: {
|
|
@@ -95,7 +95,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
95
95
|
viewAll: 'Pokaż wszystkie',
|
|
96
96
|
searchedItems: 'Wynik wyszukiwania',
|
|
97
97
|
recentSearchedItems: 'Ostatnio wyszukiwane',
|
|
98
|
-
noResults: '
|
|
98
|
+
noResults: 'Przepraszamy, brak wyników. Prosimy spróbować ponownie.'
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
pt: {
|
|
@@ -104,7 +104,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
104
104
|
viewAll: 'Mostrar tudo',
|
|
105
105
|
searchedItems: 'Procurar resultado',
|
|
106
106
|
recentSearchedItems: 'Pesquisado recentemente',
|
|
107
|
-
noResults: '
|
|
107
|
+
noResults: 'Desculpe, sem qualquer correspondência. Por favor, tente novamente.'
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
sl: {
|
|
@@ -113,7 +113,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
113
113
|
viewAll: 'Prikaži vse',
|
|
114
114
|
searchedItems: 'Rezultati iskanja',
|
|
115
115
|
recentSearchedItems: 'Nedavno iskanje',
|
|
116
|
-
noResults: '
|
|
116
|
+
noResults: 'Oprostite, ni rezultata. Prosimo poizkusite ponovno.'
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
sr: {
|
|
@@ -122,7 +122,7 @@ export const GamesCategorySectionTranslations = {
|
|
|
122
122
|
viewAll: 'Prikaži sve',
|
|
123
123
|
searchedItems: 'Pretraži rezultat',
|
|
124
124
|
recentSearchedItems: 'Zadnja pretraga',
|
|
125
|
-
noResults: '
|
|
125
|
+
noResults: 'Žao nam je, nema pogodaka. Pokušaj ponovo.'
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
};
|