@everymatrix/casino-tournaments-page-controller 1.2.1 → 1.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-page-controller",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "dist/casino-tournaments-page-controller.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": "02dbae5b4d167acdb57c72905b756343a318870a"
|
|
40
40
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
export let viewmode:string = '';
|
|
36
36
|
export let minscore:string = '';
|
|
37
37
|
export let scorefractiondigit: string = '2';
|
|
38
|
-
export let
|
|
38
|
+
export let translationurl:string = '';
|
|
39
39
|
|
|
40
40
|
export let leaderboardoffset:string = '0';
|
|
41
41
|
export let leaderboardlimit:string = '15';
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
setupI18n({ withLocale: 'en', translations: {}});
|
|
77
77
|
|
|
78
78
|
const setTranslationUrl = ():void => {
|
|
79
|
-
let url:string =
|
|
79
|
+
let url:string = translationurl;
|
|
80
80
|
|
|
81
81
|
fetch(url).then((res:any) => res.json())
|
|
82
82
|
.then((res) => {
|
|
@@ -424,13 +424,16 @@
|
|
|
424
424
|
|
|
425
425
|
$: session && userid && setSession();
|
|
426
426
|
$: lang && setActiveLanguage();
|
|
427
|
-
$:
|
|
427
|
+
$: translationurl && setTranslationUrl();
|
|
428
428
|
$: initialParameters = tourid && endpoint && session && lang;
|
|
429
429
|
$: initialParameters && initialLoad();
|
|
430
430
|
$: cmsendpoint && tourid && getDataFromCMS();
|
|
431
431
|
$: isMiniMode = (viewmode != 'desktop') && isMobile(userAgent); // forward this page from tournamentslider
|
|
432
432
|
$: clientstyling && customStylingContainer && setClientStyling();
|
|
433
433
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
434
|
+
|
|
435
|
+
// fix bug caused by svelte ^3.44 https://github.com/sveltejs/svelte/issues/7037
|
|
436
|
+
$: betCount = tournamentDetails?.minBetCount || $_('tournamentsPage.unlimited')
|
|
434
437
|
</script>
|
|
435
438
|
|
|
436
439
|
{#if isLoading}
|
|
@@ -593,7 +596,7 @@
|
|
|
593
596
|
</div>
|
|
594
597
|
<div class="TabContent Rules { activeTab != 'rules' ? 'hidden' : ''}" part="ThumbnailTabContent">
|
|
595
598
|
{#if tournamentDetails}
|
|
596
|
-
<casino-tournaments-thumbnail-rule lang="{lang}" tcurl="{tournamentDetails.termsUrl||'#'}" scorecriterial="{tournamentDetails.scoreCriteria}" betcount="{
|
|
599
|
+
<casino-tournaments-thumbnail-rule lang="{lang}" tcurl="{tournamentDetails.termsUrl||'#'}" scorecriterial="{tournamentDetails.scoreCriteria}" betcount="{betCount}"
|
|
597
600
|
starttime="{moment(tournamentDetails.startTime).format('DD/MM/YYYY HH:mm:ss')}"
|
|
598
601
|
endtime="{moment(tournamentDetails.endTime).format('DD/MM/YYYY HH:mm:ss')}"
|
|
599
602
|
products="{tournamentProducts}"
|
|
@@ -718,7 +721,7 @@
|
|
|
718
721
|
}
|
|
719
722
|
|
|
720
723
|
.TournamentCardDetails {
|
|
721
|
-
width:
|
|
724
|
+
width: 30%;
|
|
722
725
|
|
|
723
726
|
&.MobileClass {
|
|
724
727
|
width: 100%;
|