@everymatrix/casino-games-category-section 1.33.1 → 1.33.2
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/index.html
CHANGED
|
@@ -31,13 +31,17 @@
|
|
|
31
31
|
|
|
32
32
|
<div class="webcomponent">
|
|
33
33
|
<casino-games-category-section
|
|
34
|
+
endpoint="https://demo-api.stage.norway.everymatrix.com"
|
|
35
|
+
lang="en"
|
|
36
|
+
session="80ae132b-ce15-4980-b537-8133de4ba558"
|
|
37
|
+
userid="3884262"
|
|
38
|
+
favorites="true"
|
|
34
39
|
fetchviaevent="false"
|
|
35
|
-
displayedgamecount="
|
|
40
|
+
displayedgamecount="8"
|
|
41
|
+
displayedgamecount="8"
|
|
36
42
|
showallbuttongamescount="10"
|
|
37
43
|
actionevent="CategoryChange"
|
|
38
44
|
showallpage="casino"
|
|
39
|
-
endpoint="https://demo-api.stage.norway.everymatrix.com"
|
|
40
|
-
lang="en"
|
|
41
45
|
datasource="RNG"
|
|
42
46
|
categoryid="RNG$jacpots"
|
|
43
47
|
gamepagemodalurl="true"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-games-category-section",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.2",
|
|
4
4
|
"main": "dist/casino-games-category-section.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "5e12ec2b432963ee93e561f427aee3d113aa869a"
|
|
39
39
|
}
|
|
@@ -142,12 +142,14 @@
|
|
|
142
142
|
});
|
|
143
143
|
|
|
144
144
|
// Start favored games section
|
|
145
|
-
const getFavoredGames = (
|
|
145
|
+
const getFavoredGames = (sessionId:string, playerID:string) => {
|
|
146
|
+
let url = `${endpoint}/v1/player/${playerID}/favorites/`;
|
|
147
|
+
|
|
146
148
|
isLoading = true;
|
|
147
149
|
let options = {
|
|
148
150
|
method: "GET",
|
|
149
151
|
headers: {
|
|
150
|
-
'X-SessionID':
|
|
152
|
+
'X-SessionID': sessionID,
|
|
151
153
|
}
|
|
152
154
|
};
|
|
153
155
|
|
|
@@ -496,7 +498,7 @@
|
|
|
496
498
|
playerID = e.data.userID;
|
|
497
499
|
if (favorites == 'true') {
|
|
498
500
|
if (playerID && playerID.length && sessionID && sessionID.length > 0) {
|
|
499
|
-
getFavoredGames(
|
|
501
|
+
getFavoredGames(sessionID, playerID);
|
|
500
502
|
}
|
|
501
503
|
}
|
|
502
504
|
|
|
@@ -658,6 +660,7 @@
|
|
|
658
660
|
|
|
659
661
|
$: lang && setActiveLanguage();
|
|
660
662
|
$: (fetchviaevent === 'false' || fetchviaevent === '') && endpoint && lang && categoryid && datasource && displayedgamecount && showallbuttongamescount && fetchGamesByCategory(categoryid, displayedgamecount, showallbuttongamescount);
|
|
663
|
+
$: (favorites === 'true') && session && userid && getFavoredGames(session, userid);
|
|
661
664
|
$: dataloaded && thumbnailContainer && setupObserver();
|
|
662
665
|
$: lang && categoryid && initialSetup();
|
|
663
666
|
$: translationurl && setTranslationUrl();
|