@everymatrix/player-change-password 1.0.13 → 1.0.14
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/player-change-password",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"main": "dist/player-change-password.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": "5da9a4e3b1b2d635a921ce3981f56157191f5aa7"
|
|
40
40
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
export let lang:string = 'en';
|
|
9
9
|
export let simplepasswordvalidation:string = 'false';
|
|
10
|
+
export let translationUrl:string = '';
|
|
10
11
|
|
|
11
12
|
let isLoading:boolean = false;
|
|
12
13
|
let userAgent:String = window.navigator.userAgent;
|
|
@@ -37,6 +38,19 @@
|
|
|
37
38
|
let errorPasswordChanged:string = '';
|
|
38
39
|
let showErrorPasswordChanged:boolean = false;
|
|
39
40
|
|
|
41
|
+
const setTranslationUrl = ():void => {
|
|
42
|
+
let url:string = translationUrl;
|
|
43
|
+
|
|
44
|
+
fetch(url).then((res:any) => res.json())
|
|
45
|
+
.then((res) => {
|
|
46
|
+
Object.keys(res).forEach((item:any):void => {
|
|
47
|
+
addNewMessages(item, res[item]);
|
|
48
|
+
});
|
|
49
|
+
}).catch((err:any) => {
|
|
50
|
+
console.log(err);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
Object.keys(PlayerChangePasswordTranslations).forEach((item:any) => {
|
|
41
55
|
addNewMessages(item, PlayerChangePasswordTranslations[item]);
|
|
42
56
|
});
|
|
@@ -146,6 +160,7 @@
|
|
|
146
160
|
$: simplepasswordvalidation && verifyTypeOfPassword();
|
|
147
161
|
$: lang && initialLoad();
|
|
148
162
|
$: passwordChanged;
|
|
163
|
+
$: translationUrl && setTranslationUrl();
|
|
149
164
|
</script>
|
|
150
165
|
|
|
151
166
|
{#if isLoading}
|