@everymatrix/player-account-controller 0.0.199 → 0.0.203
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="3903441"
|
|
37
|
+
session="d71d62ae-e6c7-440f-a1a0-867087eeada9"
|
|
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.203",
|
|
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.203",
|
|
33
|
+
"@everymatrix/player-account-notifications": "^0.0.203",
|
|
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": "31d7d9eeef7e68b954b83fb3dde25db05d8edf74"
|
|
42
42
|
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
export let session:string = '';
|
|
32
32
|
export let endpoint:string = '';
|
|
33
33
|
export let lang:string = 'en';
|
|
34
|
+
export let operator:string = 'Everymatrix';
|
|
34
35
|
|
|
35
36
|
setupI18n({ withLocale: 'en', translations: {}});
|
|
36
37
|
|
|
@@ -159,7 +160,7 @@
|
|
|
159
160
|
fetch(`${endpoint}/player/${userId}/limits`, setTimeout)
|
|
160
161
|
.then((res:any) => {
|
|
161
162
|
if (res.status == 200) {
|
|
162
|
-
window.postMessage({ type: '
|
|
163
|
+
window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
|
|
163
164
|
} else {
|
|
164
165
|
// ERROR
|
|
165
166
|
}
|
|
@@ -190,7 +191,7 @@
|
|
|
190
191
|
fetch(`${endpoint}/player/${userId}/limits`, setSelfExclusion)
|
|
191
192
|
.then((res:any) => {
|
|
192
193
|
if (res.status == 200) {
|
|
193
|
-
window.postMessage({ type: '
|
|
194
|
+
window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
|
|
194
195
|
} else {
|
|
195
196
|
// ERROR
|
|
196
197
|
}
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
fetch(`${endpoint}/player/${userId}/limits`, optionsAccountClosure)
|
|
222
223
|
.then((res:any) => {
|
|
223
224
|
if (res.status == 200) {
|
|
224
|
-
window.postMessage({ type: '
|
|
225
|
+
window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
|
|
225
226
|
} else {
|
|
226
227
|
// ERROR
|
|
227
228
|
}
|
|
@@ -558,73 +559,73 @@
|
|
|
558
559
|
{#if isMobile}
|
|
559
560
|
{#if !switchContent}
|
|
560
561
|
<nav class="PlayerAccountMobile">
|
|
561
|
-
<player-account-menu {endpoint} {session} {playerid}></player-account-menu>
|
|
562
|
+
<player-account-menu {endpoint} {session} {playerid} {lang}></player-account-menu>
|
|
562
563
|
<player-account-notifications customnotif={customnotifications}></player-account-notifications>
|
|
563
564
|
</nav>
|
|
564
565
|
{:else}
|
|
565
566
|
{#if switchContent && pageName === widgetTitle[0]}
|
|
566
|
-
<player-profile-info {endpoint}></player-profile-info>
|
|
567
|
+
<player-profile-info {endpoint} {lang}></player-profile-info>
|
|
567
568
|
{:else if switchContent && pageName === widgetTitle[1]}
|
|
568
|
-
<player-change-password></player-change-password>
|
|
569
|
+
<player-change-password {lang}></player-change-password>
|
|
569
570
|
{:else if switchContent && pageName === widgetTitle[2]}
|
|
570
|
-
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session}></player-reality-check>
|
|
571
|
+
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
|
|
571
572
|
{:else if switchContent && pageName === widgetTitle[3]}
|
|
572
|
-
<player-account-timeout></player-account-timeout>
|
|
573
|
+
<player-account-timeout {lang} {operator}></player-account-timeout>
|
|
573
574
|
{:else if switchContent && pageName === widgetTitle[4]}
|
|
574
|
-
<player-account-closure></player-account-closure>
|
|
575
|
+
<player-account-closure {lang}></player-account-closure>
|
|
575
576
|
{:else if switchContent && pageName === widgetTitle[5]}
|
|
576
|
-
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification}></player-account-gaming-limits>
|
|
577
|
+
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
|
|
577
578
|
{:else if switchContent && pageName === widgetTitle[6]}
|
|
578
|
-
<player-account-self-exclusion></player-account-self-exclusion>
|
|
579
|
+
<player-account-self-exclusion {lang} {operator}></player-account-self-exclusion>
|
|
579
580
|
{:else if switchContent && pageName === widgetTitle[7]}
|
|
580
|
-
<player-active-bonuses {endpoint} {session} {playerid}></player-active-bonuses>
|
|
581
|
+
<player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
|
|
581
582
|
{:else if switchContent && pageName === widgetTitle[8]}
|
|
582
|
-
<player-bonus-history {endpoint} {session} {playerid}></player-bonus-history>
|
|
583
|
+
<player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
|
|
583
584
|
{:else if switchContent && pageName === widgetTitle[9]}
|
|
584
|
-
<player-gaming-history {endpoint} {session} {playerid}></player-gaming-history>
|
|
585
|
+
<player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
|
|
585
586
|
{:else if switchContent && pageName === widgetTitle[10]}
|
|
586
|
-
<player-deposit {endpoint} {session} {playerid}></player-deposit>
|
|
587
|
+
<player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
|
|
587
588
|
{:else if switchContent && pageName === widgetTitle[11]}
|
|
588
|
-
<player-withdrawal {endpoint} {session} {playerid}></player-withdrawal>
|
|
589
|
+
<player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
|
|
589
590
|
{:else if switchContent && pageName === widgetTitle[12]}
|
|
590
|
-
<player-pending-withdrawals {endpoint} {session} {playerid}></player-pending-withdrawals>
|
|
591
|
+
<player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
|
|
591
592
|
{:else if switchContent && pageName === widgetTitle[13]}
|
|
592
|
-
<player-transaction-history {endpoint} {session} {playerid}></player-transaction-history>
|
|
593
|
+
<player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
|
|
593
594
|
{/if}
|
|
594
595
|
{/if}
|
|
595
596
|
{:else}
|
|
596
597
|
<nav>
|
|
597
|
-
<player-account-menu {endpoint} {session} {playerid}></player-account-menu>
|
|
598
|
+
<player-account-menu {endpoint} {session} {playerid} {lang}></player-account-menu>
|
|
598
599
|
</nav>
|
|
599
600
|
<main>
|
|
600
601
|
{#if switchContent && pageName === widgetTitle[0]}
|
|
601
|
-
<player-profile-info {endpoint}></player-profile-info>
|
|
602
|
+
<player-profile-info {endpoint} {lang}></player-profile-info>
|
|
602
603
|
{:else if switchContent && pageName === widgetTitle[1]}
|
|
603
|
-
<player-change-password></player-change-password>
|
|
604
|
+
<player-change-password {lang}></player-change-password>
|
|
604
605
|
{:else if switchContent && pageName === widgetTitle[2]}
|
|
605
|
-
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session}></player-reality-check>
|
|
606
|
+
<player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
|
|
606
607
|
{:else if switchContent && pageName === widgetTitle[3]}
|
|
607
|
-
<player-account-timeout></player-account-timeout>
|
|
608
|
+
<player-account-timeout {lang} {operator}></player-account-timeout>
|
|
608
609
|
{:else if switchContent && pageName === widgetTitle[4]}
|
|
609
|
-
<player-account-closure></player-account-closure>
|
|
610
|
+
<player-account-closure {lang}></player-account-closure>
|
|
610
611
|
{:else if switchContent && pageName === widgetTitle[5]}
|
|
611
|
-
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification}></player-account-gaming-limits>
|
|
612
|
+
<player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
|
|
612
613
|
{:else if switchContent && pageName === widgetTitle[6]}
|
|
613
|
-
<player-account-self-exclusion></player-account-self-exclusion>
|
|
614
|
+
<player-account-self-exclusion {lang} {operator}></player-account-self-exclusion>
|
|
614
615
|
{:else if switchContent && pageName === widgetTitle[7]}
|
|
615
|
-
<player-active-bonuses {endpoint} {session} {playerid}></player-active-bonuses>
|
|
616
|
+
<player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
|
|
616
617
|
{:else if switchContent && pageName === widgetTitle[8]}
|
|
617
|
-
<player-bonus-history {endpoint} {session} {playerid}></player-bonus-history>
|
|
618
|
+
<player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
|
|
618
619
|
{:else if switchContent && pageName === widgetTitle[9]}
|
|
619
|
-
<player-gaming-history {endpoint} {session} {playerid}></player-gaming-history>
|
|
620
|
+
<player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
|
|
620
621
|
{:else if switchContent && pageName === widgetTitle[10]}
|
|
621
|
-
<player-deposit {endpoint} {session} {playerid}></player-deposit>
|
|
622
|
+
<player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
|
|
622
623
|
{:else if switchContent && pageName === widgetTitle[11]}
|
|
623
|
-
<player-withdrawal {endpoint} {session} {playerid}></player-withdrawal>
|
|
624
|
+
<player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
|
|
624
625
|
{:else if switchContent && pageName === widgetTitle[12]}
|
|
625
|
-
<player-pending-withdrawals {endpoint} {session} {playerid}></player-pending-withdrawals>
|
|
626
|
+
<player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
|
|
626
627
|
{:else if switchContent && pageName === widgetTitle[13]}
|
|
627
|
-
<player-transaction-history {endpoint} {session} {playerid}></player-transaction-history>
|
|
628
|
+
<player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
|
|
628
629
|
{/if}
|
|
629
630
|
</main>
|
|
630
631
|
<aside>
|
|
@@ -664,6 +665,7 @@
|
|
|
664
665
|
&.PlayerAccountMobilePage {
|
|
665
666
|
display: block;
|
|
666
667
|
background: #F9F8F8;
|
|
668
|
+
padding-right: 0px;
|
|
667
669
|
}
|
|
668
670
|
}
|
|
669
671
|
.PlayerAccountPage > nav {
|