@everymatrix/casino-game-page 0.0.92 → 0.0.96
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/casino-game-page.js +185 -136
- package/dist/casino-game-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoGamePage.svelte +10 -13
- package/src/translations.js +67 -13
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-game-page",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.96",
|
4
4
|
"main": "dist/casino-game-page.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": "a5b786cbdb55417fffbe2510fa634b4633cd1eb4"
|
40
40
|
}
|
@@ -59,6 +59,8 @@
|
|
59
59
|
const formatGameLaunchUrl = (game:any) => {
|
60
60
|
let url:any = new URL(game.launchUrl);
|
61
61
|
|
62
|
+
url.searchParams.append('language', lang);
|
63
|
+
|
62
64
|
// Maybe we should check if the session is valid, somehow?
|
63
65
|
if (sessionID && sessionID.length > 0) {
|
64
66
|
isLoggedIn = true;
|
@@ -324,19 +326,14 @@
|
|
324
326
|
}
|
325
327
|
|
326
328
|
const setSession = () => {
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
}, (err:any) => {
|
336
|
-
isLoggedIn = false;
|
337
|
-
console.error('err on session', err);
|
338
|
-
});
|
339
|
-
}
|
329
|
+
checkSession(endpoint, session).then((res:any) => {
|
330
|
+
sessionID = res.Guid;
|
331
|
+
playerID = res.UserID;
|
332
|
+
isLoggedIn = true;
|
333
|
+
}, (err:any) => {
|
334
|
+
isLoggedIn = false;
|
335
|
+
console.error('err on session', err);
|
336
|
+
});
|
340
337
|
}
|
341
338
|
|
342
339
|
const setClientStyling = () => {
|
package/src/translations.js
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
export const GamePageTranslations = {
|
2
2
|
en: {
|
3
3
|
gamePage: {
|
4
|
-
signIn: '
|
4
|
+
signIn: 'Log in',
|
5
5
|
register: 'REGISTER',
|
6
|
-
deposit: '
|
7
|
-
playForFun: '
|
8
|
-
playNow: '
|
6
|
+
deposit: 'Deposit',
|
7
|
+
playForFun: 'Play for fun',
|
8
|
+
playNow: 'Start now!'
|
9
9
|
}
|
10
10
|
},
|
11
11
|
de: {
|
12
12
|
gamePage: {
|
13
|
-
signIn: '
|
13
|
+
signIn: 'Einloggen',
|
14
14
|
register: 'REGISTRIEREN',
|
15
|
-
deposit: '
|
16
|
-
playForFun: '
|
17
|
-
playNow: '
|
15
|
+
deposit: 'Einzahlung',
|
16
|
+
playForFun: 'Play for fun',
|
17
|
+
playNow: 'Jetzt starten!'
|
18
18
|
}
|
19
19
|
},
|
20
20
|
it: {
|
21
21
|
gamePage: {
|
22
|
-
signIn: '
|
23
|
-
register: '
|
24
|
-
deposit: '
|
25
|
-
playForFun: '
|
26
|
-
playNow: '
|
22
|
+
signIn: 'Login',
|
23
|
+
register: 'REGISTRATI',
|
24
|
+
deposit: 'Deposito',
|
25
|
+
playForFun: 'Play for fun',
|
26
|
+
playNow: 'Inizia ora!'
|
27
27
|
}
|
28
28
|
},
|
29
29
|
fr: {
|
@@ -70,5 +70,59 @@ export const GamePageTranslations = {
|
|
70
70
|
playForFun: 'JOACĂ PENTRU DISTRACTIE',
|
71
71
|
playNow: 'JOACĂ ACUM'
|
72
72
|
}
|
73
|
+
},
|
74
|
+
hr: {
|
75
|
+
gamePage: {
|
76
|
+
signIn: 'Prijavite se',
|
77
|
+
register: 'REGISTRACIJA',
|
78
|
+
deposit: 'Uplata',
|
79
|
+
playForFun: 'Igraj za zabavu',
|
80
|
+
playNow: 'Započnite sada!'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
hu: {
|
84
|
+
gamePage: {
|
85
|
+
signIn: 'Bejelentkezés',
|
86
|
+
register: 'REGISZTRÁCIÓ',
|
87
|
+
deposit: 'Befizetés',
|
88
|
+
playForFun: 'Play for fun',
|
89
|
+
playNow: 'Játsszon most!'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
pl: {
|
93
|
+
gamePage: {
|
94
|
+
signIn: 'Zaloguj się',
|
95
|
+
register: 'REJESTRACJA',
|
96
|
+
deposit: 'Wpłata',
|
97
|
+
playForFun: 'Graj dla zabawy',
|
98
|
+
playNow: 'Rozpocznij teraz!'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
pt: {
|
102
|
+
gamePage: {
|
103
|
+
signIn: 'Login',
|
104
|
+
register: 'REGISTAR',
|
105
|
+
deposit: 'Depósito',
|
106
|
+
playForFun: 'Play for fun',
|
107
|
+
playNow: 'Comece agora!'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
sl: {
|
111
|
+
gamePage: {
|
112
|
+
signIn: 'Prijavite se',
|
113
|
+
register: 'REGISTRACIJA',
|
114
|
+
deposit: 'Vplačilo',
|
115
|
+
playForFun: 'Igrajte za zabavo',
|
116
|
+
playNow: 'Začnite zdaj!'
|
117
|
+
}
|
118
|
+
},
|
119
|
+
sr: {
|
120
|
+
gamePage: {
|
121
|
+
signIn: 'Prijavi se',
|
122
|
+
register: 'REGISTRACIJA',
|
123
|
+
deposit: 'Uplata',
|
124
|
+
playForFun: 'Igraj za zabavu',
|
125
|
+
playNow: 'Započnite sada!'
|
126
|
+
}
|
73
127
|
}
|
74
128
|
};
|