@everymatrix/player-account-controller 0.0.221 → 0.0.225
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
|
@@ -35,8 +35,6 @@
|
|
|
35
35
|
cmsendpoint="https://widgets.everymatrix.com/apijson"
|
|
36
36
|
playerid="3657535"
|
|
37
37
|
session="e518be84-5441-4905-ba97-7834c6a955a1"
|
|
38
|
-
accountpath="/profile-menu"
|
|
39
|
-
notificationpath="/support-information"
|
|
40
38
|
customnotifications="#58586B,#2687F6,#D0046C"
|
|
41
39
|
lang="en"
|
|
42
40
|
></player-account-controller>
|
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.225",
|
|
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.225",
|
|
33
|
+
"@everymatrix/player-account-notifications": "^0.0.225",
|
|
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": "f58cef61f569c3d9b496becafc3ab9e93cb5eca7"
|
|
42
42
|
}
|
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
import '@everymatrix/player-gaming-history';
|
|
24
24
|
|
|
25
25
|
export let cmsendpoint:string = '';
|
|
26
|
-
export let accountpath:string = '';
|
|
27
|
-
export let notificationpath:string = '';
|
|
28
26
|
export let customnotifications:string = '';
|
|
29
27
|
export let limitspath:string = '';
|
|
30
28
|
export let playerid:string = '';
|
|
@@ -35,6 +33,8 @@
|
|
|
35
33
|
|
|
36
34
|
setupI18n({ withLocale: 'en', translations: {}});
|
|
37
35
|
|
|
36
|
+
let accountpath:string = '/profile-menu';
|
|
37
|
+
let notificationpath:string = '/support-information';
|
|
38
38
|
let isLoading:boolean = false;
|
|
39
39
|
let userAgent:string = window.navigator.userAgent;
|
|
40
40
|
let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
'Withdrawal',
|
|
71
71
|
'Pending Withdrawals',
|
|
72
72
|
'Transaction History'];
|
|
73
|
-
const accountMenuEndpointURL:string = cmsendpoint
|
|
74
|
-
const notificationsEndpointURL:string = cmsendpoint
|
|
73
|
+
const accountMenuEndpointURL:string = `${cmsendpoint}/${lang}/${accountpath}`;
|
|
74
|
+
const notificationsEndpointURL:string = `${cmsendpoint}/${lang}/${notificationpath}`;
|
|
75
75
|
|
|
76
76
|
let switchContent:boolean = false;
|
|
77
77
|
|
|
@@ -522,8 +522,8 @@
|
|
|
522
522
|
|
|
523
523
|
|
|
524
524
|
const getData = () => {
|
|
525
|
-
getAccountMenuDetails(cmsendpoint
|
|
526
|
-
getNotificationsDetails(cmsendpoint
|
|
525
|
+
getAccountMenuDetails(`${cmsendpoint}/${lang}${accountpath}`);
|
|
526
|
+
getNotificationsDetails(`${cmsendpoint}/${lang}${notificationpath}`);
|
|
527
527
|
getUserProfileInfo();
|
|
528
528
|
getGamingLimits(`${endpoint}/player/${playerid}/limits`);
|
|
529
529
|
getRealityCheckData(`${endpoint}/player/${playerid}/realitycheck`);
|