@everymatrix/casino-most-played-section 1.3.4 → 1.4.0
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-most-played-section",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.4.0",
|
4
4
|
"main": "index.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": "be1fa07132bd9efec772e8532a8bc54c82eb1cb6"
|
40
40
|
}
|
@@ -21,6 +21,7 @@
|
|
21
21
|
export let visiblegames:string;
|
22
22
|
export let favorites:string = '';
|
23
23
|
export let lastPlayedEmpty:string = '';
|
24
|
+
export let casinomygames:string = 'false';
|
24
25
|
|
25
26
|
|
26
27
|
let userAgent:any = window.navigator.userAgent;
|
@@ -96,7 +97,7 @@
|
|
96
97
|
rounds: 10
|
97
98
|
}).then((res:any) => {
|
98
99
|
isLoading = false;
|
99
|
-
|
100
|
+
window.postMessage({ type: 'GetFavoredGame' }, window.location.href);
|
100
101
|
if (res.count > 0) {
|
101
102
|
let promises:any = [];
|
102
103
|
|
@@ -113,7 +114,9 @@
|
|
113
114
|
|
114
115
|
Promise.all(promises).then((values:any) => {
|
115
116
|
mostPlayedGames = values.map((item:any) => item[0]);
|
116
|
-
|
117
|
+
if(casinomygames === "true") {
|
118
|
+
mostPlayedGames = mostPlayedGames.slice(0, JSON.parse(visiblegames));
|
119
|
+
}
|
117
120
|
window.postMessage({ type: 'MostPlayedData', mostPlayedGames }, window.location.href);
|
118
121
|
});
|
119
122
|
} else {
|
@@ -156,25 +159,25 @@
|
|
156
159
|
<p class="SearchLoading" part="SearchLoading">No games in most played</p>
|
157
160
|
{:else}
|
158
161
|
<casino-games-category-section
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
/>
|
162
|
+
session={session}
|
163
|
+
userid={userid}
|
164
|
+
endpoint={endpoint}
|
165
|
+
datasource={datasource}
|
166
|
+
lang={lang}
|
167
|
+
currency={currency}
|
168
|
+
favorites={favorites}
|
169
|
+
categoryid="MOSTPLAYED"
|
170
|
+
categoryindex="1"
|
171
|
+
categorygames="9"
|
172
|
+
class="CategoryContainer"
|
173
|
+
{clientstyling}
|
174
|
+
{clientstylingurl}
|
175
|
+
{livecasino}
|
176
|
+
{visiblegames}
|
177
|
+
{gamepagemodalurl}
|
178
|
+
{integratedgameframedesktop}
|
179
|
+
{integratedgameframemobile}
|
180
|
+
{casinomygames} />
|
178
181
|
{/if}
|
179
182
|
</div>
|
180
183
|
</div>
|