@everymatrix/player-account-controller 0.0.200 → 0.0.201
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
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
<player-account-controller
|
|
34
34
|
endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
|
|
35
35
|
cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1"
|
|
36
|
-
playerid="
|
|
37
|
-
session="
|
|
36
|
+
playerid="3916962"
|
|
37
|
+
session="1b5cb2f5-c729-424b-bca7-abe9b383eb5e"
|
|
38
38
|
accountpath="/menu-locations/profile-menu"
|
|
39
39
|
notificationpath="/support_information"
|
|
40
40
|
customnotifications="#58586B,#2687F6,#D0046C"
|
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.201",
|
|
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.201",
|
|
33
|
+
"@everymatrix/player-account-notifications": "^0.0.201",
|
|
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": "71051531499cfea745b53a0f7c0a77a252990ae7"
|
|
42
42
|
}
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
fetch(`${endpoint}/player/${userId}/limits`, setTimeout)
|
|
160
160
|
.then((res:any) => {
|
|
161
161
|
if (res.status == 200) {
|
|
162
|
-
window.postMessage({ type: '
|
|
162
|
+
window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
|
|
163
163
|
} else {
|
|
164
164
|
// ERROR
|
|
165
165
|
}
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
fetch(`${endpoint}/player/${userId}/limits`, setSelfExclusion)
|
|
191
191
|
.then((res:any) => {
|
|
192
192
|
if (res.status == 200) {
|
|
193
|
-
window.postMessage({ type: '
|
|
193
|
+
window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
|
|
194
194
|
} else {
|
|
195
195
|
// ERROR
|
|
196
196
|
}
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
fetch(`${endpoint}/player/${userId}/limits`, optionsAccountClosure)
|
|
222
222
|
.then((res:any) => {
|
|
223
223
|
if (res.status == 200) {
|
|
224
|
-
window.postMessage({ type: '
|
|
224
|
+
window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
|
|
225
225
|
} else {
|
|
226
226
|
// ERROR
|
|
227
227
|
}
|
|
@@ -558,73 +558,73 @@
|
|
|
558
558
|
{#if isMobile}
|
|
559
559
|
{#if !switchContent}
|
|
560
560
|
<nav class="PlayerAccountMobile">
|
|
561
|
-
<player-account-menu {endpoint} {session} {playerid}></player-account-menu>
|
|
561
|
+
<player-account-menu {endpoint} {session} {playerid} {lang}></player-account-menu>
|
|
562
562
|
<player-account-notifications customnotif={customnotifications}></player-account-notifications>
|
|
563
563
|
</nav>
|
|
564
564
|
{:else}
|
|
565
565
|
{#if switchContent && pageName === widgetTitle[0]}
|
|
566
|
-
<player-profile-info {endpoint}></player-profile-info>
|
|
566
|
+
<player-profile-info {endpoint} {lang}></player-profile-info>
|
|
567
567
|
{:else if switchContent && pageName === widgetTitle[1]}
|
|
568
|
-
<player-change-password></player-change-password>
|
|
568
|
+
<player-change-password {lang}></player-change-password>
|
|
569
569
|
{:else if switchContent && pageName === widgetTitle[2]}
|
|
570
|
-
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session}></player-reality-check>
|
|
570
|
+
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
|
|
571
571
|
{:else if switchContent && pageName === widgetTitle[3]}
|
|
572
|
-
<player-account-timeout></player-account-timeout>
|
|
572
|
+
<player-account-timeout {lang}></player-account-timeout>
|
|
573
573
|
{:else if switchContent && pageName === widgetTitle[4]}
|
|
574
|
-
<player-account-closure></player-account-closure>
|
|
574
|
+
<player-account-closure {lang}></player-account-closure>
|
|
575
575
|
{:else if switchContent && pageName === widgetTitle[5]}
|
|
576
|
-
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification}></player-account-gaming-limits>
|
|
576
|
+
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
|
|
577
577
|
{:else if switchContent && pageName === widgetTitle[6]}
|
|
578
|
-
<player-account-self-exclusion></player-account-self-exclusion>
|
|
578
|
+
<player-account-self-exclusion {lang}></player-account-self-exclusion>
|
|
579
579
|
{:else if switchContent && pageName === widgetTitle[7]}
|
|
580
|
-
<player-active-bonuses {endpoint} {session} {playerid}></player-active-bonuses>
|
|
580
|
+
<player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
|
|
581
581
|
{:else if switchContent && pageName === widgetTitle[8]}
|
|
582
|
-
<player-bonus-history {endpoint} {session} {playerid}></player-bonus-history>
|
|
582
|
+
<player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
|
|
583
583
|
{:else if switchContent && pageName === widgetTitle[9]}
|
|
584
|
-
<player-gaming-history {endpoint} {session} {playerid}></player-gaming-history>
|
|
584
|
+
<player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
|
|
585
585
|
{:else if switchContent && pageName === widgetTitle[10]}
|
|
586
|
-
<player-deposit {endpoint} {session} {playerid}></player-deposit>
|
|
586
|
+
<player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
|
|
587
587
|
{:else if switchContent && pageName === widgetTitle[11]}
|
|
588
|
-
<player-withdrawal {endpoint} {session} {playerid}></player-withdrawal>
|
|
588
|
+
<player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
|
|
589
589
|
{:else if switchContent && pageName === widgetTitle[12]}
|
|
590
|
-
<player-pending-withdrawals {endpoint} {session} {playerid}></player-pending-withdrawals>
|
|
590
|
+
<player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
|
|
591
591
|
{:else if switchContent && pageName === widgetTitle[13]}
|
|
592
|
-
<player-transaction-history {endpoint} {session} {playerid}></player-transaction-history>
|
|
592
|
+
<player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
|
|
593
593
|
{/if}
|
|
594
594
|
{/if}
|
|
595
595
|
{:else}
|
|
596
596
|
<nav>
|
|
597
|
-
<player-account-menu {endpoint} {session} {playerid}></player-account-menu>
|
|
597
|
+
<player-account-menu {endpoint} {session} {playerid} {lang}></player-account-menu>
|
|
598
598
|
</nav>
|
|
599
599
|
<main>
|
|
600
600
|
{#if switchContent && pageName === widgetTitle[0]}
|
|
601
|
-
<player-profile-info {endpoint}></player-profile-info>
|
|
601
|
+
<player-profile-info {endpoint} {lang}></player-profile-info>
|
|
602
602
|
{:else if switchContent && pageName === widgetTitle[1]}
|
|
603
|
-
<player-change-password></player-change-password>
|
|
603
|
+
<player-change-password {lang}></player-change-password>
|
|
604
604
|
{:else if switchContent && pageName === widgetTitle[2]}
|
|
605
|
-
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session}></player-reality-check>
|
|
605
|
+
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
|
|
606
606
|
{:else if switchContent && pageName === widgetTitle[3]}
|
|
607
|
-
<player-account-timeout></player-account-timeout>
|
|
607
|
+
<player-account-timeout {lang}></player-account-timeout>
|
|
608
608
|
{:else if switchContent && pageName === widgetTitle[4]}
|
|
609
|
-
<player-account-closure></player-account-closure>
|
|
609
|
+
<player-account-closure {lang}></player-account-closure>
|
|
610
610
|
{:else if switchContent && pageName === widgetTitle[5]}
|
|
611
|
-
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification}></player-account-gaming-limits>
|
|
611
|
+
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
|
|
612
612
|
{:else if switchContent && pageName === widgetTitle[6]}
|
|
613
|
-
<player-account-self-exclusion></player-account-self-exclusion>
|
|
613
|
+
<player-account-self-exclusion {lang}></player-account-self-exclusion>
|
|
614
614
|
{:else if switchContent && pageName === widgetTitle[7]}
|
|
615
|
-
<player-active-bonuses {endpoint} {session} {playerid}></player-active-bonuses>
|
|
615
|
+
<player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
|
|
616
616
|
{:else if switchContent && pageName === widgetTitle[8]}
|
|
617
|
-
<player-bonus-history {endpoint} {session} {playerid}></player-bonus-history>
|
|
617
|
+
<player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
|
|
618
618
|
{:else if switchContent && pageName === widgetTitle[9]}
|
|
619
|
-
<player-gaming-history {endpoint} {session} {playerid}></player-gaming-history>
|
|
619
|
+
<player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
|
|
620
620
|
{:else if switchContent && pageName === widgetTitle[10]}
|
|
621
|
-
<player-deposit {endpoint} {session} {playerid}></player-deposit>
|
|
621
|
+
<player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
|
|
622
622
|
{:else if switchContent && pageName === widgetTitle[11]}
|
|
623
|
-
<player-withdrawal {endpoint} {session} {playerid}></player-withdrawal>
|
|
623
|
+
<player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
|
|
624
624
|
{:else if switchContent && pageName === widgetTitle[12]}
|
|
625
|
-
<player-pending-withdrawals {endpoint} {session} {playerid}></player-pending-withdrawals>
|
|
625
|
+
<player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
|
|
626
626
|
{:else if switchContent && pageName === widgetTitle[13]}
|
|
627
|
-
<player-transaction-history {endpoint} {session} {playerid}></player-transaction-history>
|
|
627
|
+
<player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
|
|
628
628
|
{/if}
|
|
629
629
|
</main>
|
|
630
630
|
<aside>
|