@everymatrix/player-account-controller 0.0.256 → 0.0.259
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/index.html
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
<player-account-controller
|
|
35
35
|
endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
|
|
36
36
|
cmsendpoint="https://wt1-stage.everymatrix.com/apijson"
|
|
37
|
-
playerid="
|
|
38
|
-
session="
|
|
37
|
+
playerid="3856617"
|
|
38
|
+
session="b21604ca-1497-4da2-8874-35373c4e914c"
|
|
39
39
|
customnotifications="#58586B,#2687F6,#D0046C"
|
|
40
40
|
lang="en"
|
|
41
41
|
env="stage"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.259",
|
|
4
4
|
"main": "dist/player-account-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"typescript": "^3.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@everymatrix/player-account-menu": "^0.0.
|
|
33
|
-
"@everymatrix/player-account-notifications": "^0.0.
|
|
32
|
+
"@everymatrix/player-account-menu": "^0.0.259",
|
|
33
|
+
"@everymatrix/player-account-notifications": "^0.0.259",
|
|
34
34
|
"cross-env": "^7.0.3",
|
|
35
35
|
"sirv-cli": "^1.0.0",
|
|
36
36
|
"svelte": "^3.0.0"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7e26e42bac250a646d98bd80910b234522350fd6"
|
|
42
42
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
case 'ChangeAccountPage':
|
|
104
104
|
switchContent = true;
|
|
105
105
|
pagePath = e.data.page.path;
|
|
106
|
-
selected = e.data.page.id;
|
|
106
|
+
selected = e.data.page.id;
|
|
107
107
|
break;
|
|
108
108
|
|
|
109
109
|
case 'SetActivePage':
|
|
@@ -132,9 +132,11 @@
|
|
|
132
132
|
|
|
133
133
|
break;
|
|
134
134
|
|
|
135
|
-
case '
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
case 'PlayerAccountMenuActive':
|
|
136
|
+
if (e.data.isMobile) {
|
|
137
|
+
switchContent = false;
|
|
138
|
+
initialLoad();
|
|
139
|
+
}
|
|
138
140
|
break;
|
|
139
141
|
|
|
140
142
|
case 'UpdatePlayerInfo':
|
|
@@ -185,6 +187,8 @@
|
|
|
185
187
|
|
|
186
188
|
case 'SetPlayerAccountTimeout':
|
|
187
189
|
url = new URL(`${endpoint}/player/${userId}/limits`);
|
|
190
|
+
url.searchParams.append('playerId', userId);
|
|
191
|
+
|
|
188
192
|
let timeoutValue = e.data.timeoutSelected;
|
|
189
193
|
|
|
190
194
|
let dataTimeout = {
|
|
@@ -195,7 +199,6 @@
|
|
|
195
199
|
let setTimeout = {
|
|
196
200
|
method: "PUT",
|
|
197
201
|
headers: {
|
|
198
|
-
'playerId': userId,
|
|
199
202
|
'X-SessionID': sessionId,
|
|
200
203
|
'Content-Type': "application/json",
|
|
201
204
|
'Accept': 'application/json',
|
|
@@ -219,6 +222,7 @@
|
|
|
219
222
|
|
|
220
223
|
case 'SetSelfExclusion':
|
|
221
224
|
url = new URL(`${endpoint}/player/${userId}/limits`);
|
|
225
|
+
url.searchParams.append('playerId', userId);
|
|
222
226
|
|
|
223
227
|
let selfExclusionPeriod = e.data.selfExclusionPeriod;
|
|
224
228
|
let selfExclusionExpiryDate = e.data.selfExclusionExpiryDate;
|
|
@@ -233,7 +237,6 @@
|
|
|
233
237
|
let setSelfExclusion = {
|
|
234
238
|
method: "PUT",
|
|
235
239
|
headers: {
|
|
236
|
-
'playerId': userId,
|
|
237
240
|
'X-SessionID': sessionId,
|
|
238
241
|
'Content-Type': "application/json",
|
|
239
242
|
'Accept': 'application/json',
|
|
@@ -257,6 +260,7 @@
|
|
|
257
260
|
|
|
258
261
|
case 'AccountClosure':
|
|
259
262
|
url = new URL(`${endpoint}/player/${userId}/limits`);
|
|
263
|
+
url.searchParams.append('playerId', userId);
|
|
260
264
|
|
|
261
265
|
let accountClosureData = 'UserRequest';
|
|
262
266
|
let accountClosureSelection = {
|
|
@@ -270,7 +274,6 @@
|
|
|
270
274
|
let optionsAccountClosure = {
|
|
271
275
|
method: "PUT",
|
|
272
276
|
headers: {
|
|
273
|
-
'playerId': userId,
|
|
274
277
|
'X-SessionID': sessionId,
|
|
275
278
|
'Content-Type': "application/json",
|
|
276
279
|
'Accept': 'application/json',
|
|
@@ -723,13 +726,6 @@
|
|
|
723
726
|
{/if}
|
|
724
727
|
|
|
725
728
|
<style lang="scss">
|
|
726
|
-
//This function does a multiplication
|
|
727
|
-
// in order to work with px the
|
|
728
|
-
// same way as working with em
|
|
729
|
-
@function ttp($value) {
|
|
730
|
-
$multiplicator: 16px;
|
|
731
|
-
@return $value * $multiplicator;
|
|
732
|
-
}
|
|
733
729
|
|
|
734
730
|
:host {
|
|
735
731
|
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|