@everymatrix/casino-tournaments-controller 1.10.5 → 1.11.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-tournaments-controller",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"main": "dist/casino-tournaments-controller.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": "2c051cd4a69abbebb6c006b4f794bc831e92cd08"
|
|
39
39
|
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
export let sorttype: string = '';
|
|
32
32
|
export let sortorder: string = ''
|
|
33
33
|
export let starttimeafter: string = '' // start time after how many days
|
|
34
|
+
export let showanonymoustournaments: string = 'true'
|
|
34
35
|
|
|
35
36
|
export let clientstyling:string = '';
|
|
36
37
|
export let clientstylingurl:string = '';
|
|
@@ -157,15 +158,21 @@
|
|
|
157
158
|
tournamentsUrl.searchParams.append('sortOrder', sortorder || 'desc');
|
|
158
159
|
tournamentsUrl.searchParams.append('language', lang);
|
|
159
160
|
|
|
161
|
+
const filterOptions: any = {
|
|
162
|
+
StartTimeAfter: getStartTimeAfter(),
|
|
163
|
+
}
|
|
160
164
|
|
|
161
|
-
if
|
|
162
|
-
|
|
165
|
+
if(!session && showanonymoustournaments === 'false'){
|
|
166
|
+
filterOptions.tags = 'no-role-set'
|
|
167
|
+
}
|
|
163
168
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
tournamentsUrl.searchParams.append('filter', `StartTimeAfter=${getStartTimeAfter()}`);
|
|
169
|
+
if (activeFilters.length > 0 && activeFilters[0] != 'All') {
|
|
170
|
+
filterOptions.state = activeFilters.map((item:any) => matchStatus(item)).join("|")
|
|
167
171
|
}
|
|
168
172
|
|
|
173
|
+
const filter = Object.keys(filterOptions).map(k => `${k}=${filterOptions[k]}`).join(',')
|
|
174
|
+
tournamentsUrl.searchParams.append('filter', filter);
|
|
175
|
+
|
|
169
176
|
tournamentsUrl.searchParams.append('platform', getDevice(userAgent));
|
|
170
177
|
|
|
171
178
|
if(sorttype){
|
|
@@ -353,7 +360,7 @@
|
|
|
353
360
|
$: filters && setActiveFilters();
|
|
354
361
|
$: lang && setActiveLanguage();
|
|
355
362
|
$: translationurl && setTranslationUrl();
|
|
356
|
-
$: initialParameters = endpoint && numberoftournaments && showmorestep && lang;
|
|
363
|
+
$: initialParameters = endpoint && numberoftournaments && showmorestep && lang && showanonymoustournaments;
|
|
357
364
|
$: readyToLoad = session ? initialParameters && session : initialParameters;
|
|
358
365
|
$: readyToLoad && isMounted && initialLoad();
|
|
359
366
|
</script>
|