@everymatrix/casino-games-category-section 0.0.248 → 0.0.249
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.249",
|
|
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": "38af455e241b6ef7ccabb2367be2be59e6b24352"
|
|
40
40
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
export let favorites:string = '';
|
|
20
20
|
export let clientstyling:string = '';
|
|
21
21
|
export let clientstylingurl:string = '';
|
|
22
|
-
export let currency:string
|
|
22
|
+
export let currency:string;
|
|
23
23
|
|
|
24
24
|
export let categoryid:string = '';
|
|
25
25
|
export let categoryindex:number = 0;
|
|
@@ -107,12 +107,16 @@
|
|
|
107
107
|
// IntersectionObserver used for loading more games
|
|
108
108
|
let observer = new IntersectionObserver((entries, observerRef) => {
|
|
109
109
|
entries.forEach(async (entry) => {
|
|
110
|
+
let gameid = entry.target.gameid; // eslint-disable-line
|
|
110
111
|
let index = entry.target.elems_index; // eslint-disable-line
|
|
111
112
|
|
|
112
113
|
if (entry.isIntersecting) {
|
|
113
114
|
if (index * 1.2 > limit ) {
|
|
114
115
|
loadMoreGames(categoryid);
|
|
115
116
|
}
|
|
117
|
+
intersectingIndexes[gameid] = 1;
|
|
118
|
+
} else {
|
|
119
|
+
intersectingIndexes[gameid] = 0;
|
|
116
120
|
}
|
|
117
121
|
});
|
|
118
122
|
});
|
|
@@ -528,7 +532,6 @@
|
|
|
528
532
|
session={session}
|
|
529
533
|
userid={userid}
|
|
530
534
|
lang={lang}
|
|
531
|
-
currency={currency}
|
|
532
535
|
searchitem={searchItem}
|
|
533
536
|
favorites={favorites}
|
|
534
537
|
gamethumbnail={gameprops.thumbnail}
|
|
@@ -540,6 +543,7 @@
|
|
|
540
543
|
gameid={gameprops.id}
|
|
541
544
|
gamefunmode={gameprops.hasFunMode}
|
|
542
545
|
gamefavorite={gameprops.isFavorite}
|
|
546
|
+
{currency}
|
|
543
547
|
livelobbyendpoint={gameprops.details ? gameprops.href : ''}
|
|
544
548
|
{clientstyling}
|
|
545
549
|
{clientstylingurl}
|
|
@@ -578,7 +582,6 @@
|
|
|
578
582
|
session={session}
|
|
579
583
|
userid={userid}
|
|
580
584
|
lang={lang}
|
|
581
|
-
currency={currency}
|
|
582
585
|
class="{MASONRY_CLASS_PREFIX}{gameprops.cellSize ? gameprops.cellSize : '1x1'}"
|
|
583
586
|
part="{MASONRY_CLASS_PREFIX}{gameprops.cellSize ? gameprops.cellSize : '1x1'}"
|
|
584
587
|
favorites={favorites}
|
|
@@ -594,6 +597,7 @@
|
|
|
594
597
|
bind:this={thumbnailContainer[index]}
|
|
595
598
|
connectlive={intersectingIndexes[gameprops.id] == 1 ? 'connect' : 'disconnect'}
|
|
596
599
|
visibilityconnect={visibilityconnect}
|
|
600
|
+
{currency}
|
|
597
601
|
livelobbyendpoint={gameprops.details ? gameprops.href : ''}
|
|
598
602
|
{clientstyling}
|
|
599
603
|
{clientstylingurl}
|
|
@@ -628,7 +632,6 @@
|
|
|
628
632
|
session={session}
|
|
629
633
|
userid={userid}
|
|
630
634
|
lang={lang}
|
|
631
|
-
currency={currency}
|
|
632
635
|
favorites={favorites}
|
|
633
636
|
gamethumbnail={gameprops.gameModel.thumbnail}
|
|
634
637
|
gamename={gameprops.gameModel.name}
|
|
@@ -640,6 +643,7 @@
|
|
|
640
643
|
gamefunmode={gameprops.gameModel.hasFunMode}
|
|
641
644
|
gamefavorite={gameprops.gameModel.isFavorite}
|
|
642
645
|
showfavoredcategory={showFavGamesCategory}
|
|
646
|
+
{currency}
|
|
643
647
|
livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.href : ''}
|
|
644
648
|
{clientstyling}
|
|
645
649
|
{clientstylingurl}
|
|
@@ -655,7 +659,6 @@
|
|
|
655
659
|
session={session}
|
|
656
660
|
userid={userid}
|
|
657
661
|
lang={lang}
|
|
658
|
-
currency={currency}
|
|
659
662
|
favorites={favorites}
|
|
660
663
|
gamethumbnail={gameprops.gameModel.thumbnail}
|
|
661
664
|
gamename={gameprops.gameModel.name}
|
|
@@ -667,6 +670,7 @@
|
|
|
667
670
|
gamefunmode={gameprops.gameModel.hasFunMode}
|
|
668
671
|
gamefavorite={gameprops.gameModel.isFavorite}
|
|
669
672
|
showfavoredcategory={showFavGamesCategory}
|
|
673
|
+
{currency}
|
|
670
674
|
livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.href : ''}
|
|
671
675
|
{clientstyling}
|
|
672
676
|
{clientstylingurl}
|