@everymatrix/casino-tournaments-list-controller 1.0.13 → 1.0.15
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-list-controller",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"main": "dist/casino-tournaments-list-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": "0ee1d4bccc4964628711251119148f0a04ba10df"
|
|
40
40
|
}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
export let keepbrowsercontext:string = 'false';
|
|
22
22
|
export let clientstyling:string = '';
|
|
23
23
|
export let clientstylingurl:string = '';
|
|
24
|
+
export let translationUrl:string = '';
|
|
24
25
|
|
|
25
26
|
let customStylingContainer: HTMLElement;
|
|
26
27
|
let displayNone:boolean = false;
|
|
@@ -33,6 +34,19 @@
|
|
|
33
34
|
let playerID:String = '';
|
|
34
35
|
let tournamentList:any = '';
|
|
35
36
|
|
|
37
|
+
const setTranslationUrl = ():void => {
|
|
38
|
+
let url:string = translationUrl;
|
|
39
|
+
|
|
40
|
+
fetch(url).then((res:any) => res.json())
|
|
41
|
+
.then((res) => {
|
|
42
|
+
Object.keys(res).forEach((item:any):void => {
|
|
43
|
+
addNewMessages(item, res[item]);
|
|
44
|
+
});
|
|
45
|
+
}).catch((err:any) => {
|
|
46
|
+
console.log(err);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
36
50
|
Object.keys(TournamentsListTranslations).forEach((item) => {
|
|
37
51
|
addNewMessages(item, TournamentsListTranslations[item]);
|
|
38
52
|
});
|
|
@@ -125,6 +139,7 @@
|
|
|
125
139
|
|
|
126
140
|
$: customStylingContainer && clientstyling && setClientStyling();
|
|
127
141
|
$: customStylingContainer && clientstylingurl && setClientStylingURL();
|
|
142
|
+
$: translationUrl && setTranslationUrl();
|
|
128
143
|
$: session && setSession();
|
|
129
144
|
$: userid && setPlayerID();
|
|
130
145
|
</script>
|