@everymatrix/casino-tournaments-controller 1.2.0 → 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-controller",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "dist/casino-tournaments-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
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
export let userid:string = '';
|
|
16
16
|
export let endpoint:string = '';
|
|
17
17
|
export let lang:string = 'en';
|
|
18
|
-
export let
|
|
18
|
+
export let translationurl:string = '';
|
|
19
19
|
// number of default tournaments shown
|
|
20
20
|
export let numberoftournaments:string = '6';
|
|
21
21
|
// number of added elements to the list when showmore is clicked
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
setupI18n({ withLocale: 'en', translations: {}});
|
|
67
67
|
|
|
68
68
|
const setTranslationUrl = ():void => {
|
|
69
|
-
let url:string =
|
|
69
|
+
let url:string = translationurl;
|
|
70
70
|
|
|
71
71
|
fetch(url).then((res:any) => res.json())
|
|
72
72
|
.then((res) => {
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
$: lang && setLocale(lang);
|
|
353
353
|
$: filters && setActiveFilters();
|
|
354
354
|
$: lang && setActiveLanguage();
|
|
355
|
-
$:
|
|
355
|
+
$: translationurl && setTranslationUrl();
|
|
356
356
|
$: initialParameters = endpoint && numberoftournaments && showmorestep && lang;
|
|
357
357
|
$: readyToLoad = session ? initialParameters && session : initialParameters;
|
|
358
358
|
$: readyToLoad && isMounted && initialLoad();
|