@tapni/auth 0.0.4 → 0.0.6
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/dist/TapniAuth.es.js +405 -406
- package/dist/TapniAuth.umd.js +10 -10
- package/package.json +1 -1
- package/src/App.vue +0 -3
- package/src/services/UtilService.js +18 -8
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -123,9 +123,6 @@ export default {
|
|
|
123
123
|
},
|
|
124
124
|
methods: {
|
|
125
125
|
async init () {
|
|
126
|
-
const storage = await StorageService.getAll();
|
|
127
|
-
await this.setStorage(storage)
|
|
128
|
-
|
|
129
126
|
if (this.storage && this.storage.token && this.storage.refreshTokens) {
|
|
130
127
|
this.setToken(this.storage.token);
|
|
131
128
|
const refreshTokens = this.getRefreshTokens();
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import enLocale from '../store/locales/en';
|
|
2
|
+
import deLocale from '../store/locales/de';
|
|
3
|
+
import esLocale from '../store/locales/es';
|
|
4
|
+
import krLocale from '../store/locales/kr';
|
|
5
|
+
import itLocale from '../store/locales/it';
|
|
6
|
+
import frLocale from '../store/locales/fr';
|
|
7
|
+
import srLocale from '../store/locales/sr';
|
|
8
|
+
import trLocale from '../store/locales/tr';
|
|
9
|
+
|
|
1
10
|
export default {
|
|
2
11
|
getFirstBrowserLanguage() {
|
|
3
12
|
let nav = window.navigator
|
|
@@ -26,14 +35,15 @@ export default {
|
|
|
26
35
|
return null
|
|
27
36
|
},
|
|
28
37
|
compareLangKeys() {
|
|
29
|
-
const en = Object.keys(
|
|
30
|
-
const de = Object.keys(
|
|
31
|
-
const es = Object.keys(
|
|
32
|
-
const kr = Object.keys(
|
|
33
|
-
const it = Object.keys(
|
|
34
|
-
const fr = Object.keys(
|
|
35
|
-
const sr = Object.keys(
|
|
36
|
-
const tr = Object.keys(
|
|
38
|
+
const en = Object.keys(enLocale.default.state);
|
|
39
|
+
const de = Object.keys(deLocale.default.state);
|
|
40
|
+
const es = Object.keys(esLocale.default.state);
|
|
41
|
+
const kr = Object.keys(krLocale.default.state);
|
|
42
|
+
const it = Object.keys(itLocale.default.state);
|
|
43
|
+
const fr = Object.keys(frLocale.default.state);
|
|
44
|
+
const sr = Object.keys(srLocale.default.state);
|
|
45
|
+
const tr = Object.keys(trLocale.default.state);
|
|
46
|
+
|
|
37
47
|
|
|
38
48
|
// Compare en and de
|
|
39
49
|
console.log('In en but not in de', en.filter(x => !de.includes(x)));
|