@everymatrix/casino-games-category-section 1.5.5 → 1.6.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-games-category-section",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
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": "e4b57a534bdee7d09fc53a7b49e31338bc1a3f00"
|
|
40
40
|
}
|
|
@@ -177,13 +177,14 @@
|
|
|
177
177
|
|
|
178
178
|
// @TODO categoryId type
|
|
179
179
|
const getData = (categoryId:any, offset:number, limit:number, filterArray:Array<Object> = []) => {
|
|
180
|
+
isLoading = true;
|
|
181
|
+
|
|
180
182
|
let categoryidparsed = '';
|
|
181
183
|
let url:any = '';
|
|
182
|
-
|
|
183
|
-
if((categoryid.match(/\$/g) || []).length > 1) {
|
|
184
|
+
|
|
185
|
+
if ((categoryid.match(/\$/g) || []).length > 1) {
|
|
184
186
|
categoryidparsed = categoryid.split('$').slice(0, 2).join('$');
|
|
185
187
|
url = new URL(`${endpoint}/casino/groups/${datasource}/${categoryidparsed}/subGroups`);
|
|
186
|
-
|
|
187
188
|
} else {
|
|
188
189
|
url = new URL(`${endpoint}/casino/groups/${datasource}/${categoryid}`);
|
|
189
190
|
}
|
|
@@ -232,7 +233,7 @@
|
|
|
232
233
|
dataloaded = true;
|
|
233
234
|
hasErrors = false;
|
|
234
235
|
maxTotal = categoryData.games.total;
|
|
235
|
-
|
|
236
|
+
|
|
236
237
|
resolve(categoryData);
|
|
237
238
|
}, (err:any) => {
|
|
238
239
|
hasErrors = true;
|
|
@@ -493,7 +494,7 @@
|
|
|
493
494
|
differenceOfTime = moment(endDateOfTag).diff(currentDate)
|
|
494
495
|
firstToExpire = index;
|
|
495
496
|
}
|
|
496
|
-
|
|
497
|
+
|
|
497
498
|
if (moment(currentDate).isAfter(startDateOfTag) && moment(currentDate).isBefore(endDateOfTag)) {
|
|
498
499
|
tagName = tags[firstToExpire].name;
|
|
499
500
|
}
|
|
@@ -548,7 +549,7 @@
|
|
|
548
549
|
});
|
|
549
550
|
}
|
|
550
551
|
}
|
|
551
|
-
|
|
552
|
+
|
|
552
553
|
const setClientStyling = ():void => {
|
|
553
554
|
let sheet = document.createElement('style');
|
|
554
555
|
sheet.innerHTML = clientstyling;
|