@everymatrix/casino-footer-v2 0.0.362 → 0.0.365
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-footer-v2.js +250 -240
- package/dist/casino-footer-v2.js.map +1 -1
- package/index.html +2 -64
- package/package.json +2 -2
- package/src/CasinoFooterV2.svelte +48 -24
- package/src/translations.js +6 -0
package/index.html
CHANGED
@@ -43,55 +43,8 @@
|
|
43
43
|
padding: 10px 20px;
|
44
44
|
}
|
45
45
|
</style>
|
46
|
-
<header class="header">
|
47
|
-
<div class="header__logo">
|
48
|
-
<svg
|
49
|
-
xmlns="http://www.w3.org/2000/svg"
|
50
|
-
width="161"
|
51
|
-
height="132"
|
52
|
-
viewBox="0 0 161 132"
|
53
|
-
>
|
54
|
-
<defs>
|
55
|
-
<linearGradient x1="0%" y1="50%" y2="50%" id="a">
|
56
|
-
<stop stop-color="#2A3B8F" offset="0%" />
|
57
|
-
<stop stop-color="#29ABE2" offset="100%" />
|
58
|
-
</linearGradient>
|
59
|
-
<linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="c">
|
60
|
-
<stop stop-color="#B4D44E" offset="0%" />
|
61
|
-
<stop stop-color="#E7F716" offset="100%" />
|
62
|
-
</linearGradient>
|
63
|
-
</defs>
|
64
|
-
<g fill="none" fill-rule="evenodd">
|
65
|
-
<path
|
66
|
-
fill="#166DA5"
|
67
|
-
d="M160.6 65.9l-17.4 29.3-24.4-29.7 24.4-28.9z"
|
68
|
-
/>
|
69
|
-
<path
|
70
|
-
fill="#8FDB69"
|
71
|
-
d="M141.3 100.2l-26.5-31.7-15.9 26.6 24.7 36.1z"
|
72
|
-
/>
|
73
|
-
<path fill="#166DA5" d="M141 31.4l-26.2 31.8-15.9-26.6L123.6.9z" />
|
74
|
-
<path
|
75
|
-
fill="url(#a)"
|
76
|
-
opacity=".95"
|
77
|
-
d="M61.1 31.4H141L123.4.7H78.7z M114.8 63.3H159l-15.9-26.8H98.8"
|
78
|
-
/>
|
79
|
-
<path
|
80
|
-
fill="url(#c)"
|
81
|
-
opacity=".95"
|
82
|
-
d="M141.3 100.3H61l17.6 30.5h45z M114.8 68.4H159l-15.9 26.8H98.8"
|
83
|
-
/>
|
84
|
-
<path
|
85
|
-
fill="#010101"
|
86
|
-
d="M78.6 130.8L41 65.8 79.1.8H37.9L.4 65.8l37.5 65z"
|
87
|
-
/>
|
88
|
-
</g>
|
89
|
-
</svg>
|
90
|
-
</div>
|
91
|
-
<h1 class="header__name"><span>WEBCOMPONENT:</span> casino-footer-v2</h1>
|
92
|
-
</header>
|
93
46
|
<casino-footer-v2
|
94
|
-
endpoint="https://bahcom-stage.everymatrix.com/apijson
|
47
|
+
endpoint="https://bahcom-stage.everymatrix.com/apijson"
|
95
48
|
userendpoint="https://betathome-de-stage-api.stage.norway.everymatrix.com/v1"
|
96
49
|
session="d919449f-5f5a-4c6f-92c2-29fb947c3f33"
|
97
50
|
userid="4229869"
|
@@ -104,23 +57,8 @@
|
|
104
57
|
clockenabled="true"
|
105
58
|
clocksecondsenabled="true"
|
106
59
|
clockcustomformat="LTS"
|
107
|
-
lang="
|
60
|
+
lang="en"
|
108
61
|
></casino-footer-v2>
|
109
62
|
|
110
|
-
<casino-footer-v2
|
111
|
-
endpoint="https://bahcom-stage.everymatrix.com/apijson/en/footer-raw-data?env=stage"
|
112
|
-
userendpoint="https://betathome-de-stage-api.stage.norway.everymatrix.com/v1"
|
113
|
-
session="d919449f-5f5a-4c6f-92c2-29fb947c3f33"
|
114
|
-
userid="4229869"
|
115
|
-
lang="en"
|
116
|
-
env="stage"
|
117
|
-
clocktext="Time"
|
118
|
-
clockenabled="true"
|
119
|
-
clocksecondsenabled="true"
|
120
|
-
clockcustomformat="false"
|
121
|
-
languageselectorenabled="true"
|
122
|
-
panicbuttonenabled="true"
|
123
|
-
sessiontimerenabled="true"
|
124
|
-
></casino-footer-v2>
|
125
63
|
</body>
|
126
64
|
</html>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-footer-v2",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.365",
|
4
4
|
"main": "dist/casino-footer-v2.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": "f4dabfce4df55a591981f327a670cc250a2ed257"
|
40
40
|
}
|
@@ -6,8 +6,8 @@
|
|
6
6
|
|
7
7
|
import { onMount } from 'svelte';
|
8
8
|
import moment from 'moment';
|
9
|
-
import { checkSession } from 'rvhelper';
|
10
|
-
import { _, addNewMessages, setLocale } from './i18n';
|
9
|
+
import { checkSession, isMobile } from 'rvhelper';
|
10
|
+
import { _, addNewMessages, setLocale, setupI18n } from './i18n';
|
11
11
|
import { CasinoFooterTranslations } from './translations.js'
|
12
12
|
|
13
13
|
export let endpoint:string = '';
|
@@ -30,8 +30,11 @@
|
|
30
30
|
export let userid:string = '';
|
31
31
|
export let userendpoint:string = '';
|
32
32
|
export let panicbuttonenabled:string = 'true';
|
33
|
-
export let sessiontimerenabled = 'true'; // 'true' to enable, anything to disable
|
33
|
+
export let sessiontimerenabled:string = 'true'; // 'true' to enable, anything to disable
|
34
|
+
export let grouplink:string = 'true';
|
34
35
|
|
36
|
+
let userAgent:string = window.navigator.userAgent;
|
37
|
+
let isOnMobile = isMobile(userAgent);
|
35
38
|
let gameVendorsLinksTitle:string = '';
|
36
39
|
let gameVendorsRepeater:Array<Object> = [];
|
37
40
|
let paymentLinksTitle:string = '';
|
@@ -74,10 +77,13 @@
|
|
74
77
|
|
75
78
|
let customStylingContainer:HTMLElement;
|
76
79
|
|
80
|
+
setupI18n({ withLocale: 'en', translations: {}});
|
81
|
+
|
77
82
|
Object.keys(CasinoFooterTranslations).forEach((item:any) => {
|
78
83
|
addNewMessages(item, CasinoFooterTranslations[item]);
|
79
84
|
});
|
80
85
|
|
86
|
+
|
81
87
|
// needed for session timer
|
82
88
|
const setSession = ():void => {
|
83
89
|
checkSession(userendpoint, session).then((res:any) => {
|
@@ -125,7 +131,13 @@
|
|
125
131
|
}
|
126
132
|
|
127
133
|
const getCmsData = ():void => {
|
128
|
-
let url:URL = new URL(`${endpoint}/${lang}/footer-raw-data
|
134
|
+
let url:URL = new URL(`${endpoint}/${lang}/footer-raw-data`);
|
135
|
+
|
136
|
+
url.searchParams.append('env', env);
|
137
|
+
|
138
|
+
if (grouplink == 'true') {
|
139
|
+
url.searchParams.append('helpLinks_groupby', 'helpLinkCategory');
|
140
|
+
}
|
129
141
|
|
130
142
|
isLoading = true;
|
131
143
|
|
@@ -300,6 +312,7 @@
|
|
300
312
|
{#if headScript}
|
301
313
|
<script src={licenseScriptSrc}></script>
|
302
314
|
{/if}
|
315
|
+
<link href='http://fonts.googleapis.com/css?family=Roboto Condensed' rel='stylesheet' type='text/css'>
|
303
316
|
</svelte:head>
|
304
317
|
|
305
318
|
{#if hasErrors}
|
@@ -310,13 +323,15 @@
|
|
310
323
|
{:else}
|
311
324
|
|
312
325
|
<div class="Footer" bind:this={customStylingContainer}>
|
313
|
-
<div class="FooterSide"
|
326
|
+
<div class="FooterSide {isOnMobile && isLoggedIn ? 'FooterSideMobile' : ''}">
|
314
327
|
<!-- start helper section -->
|
315
328
|
{#if helpLinksRepeater}
|
316
|
-
{#
|
317
|
-
|
318
|
-
|
319
|
-
|
329
|
+
{#each helpLinksRepeater as category}
|
330
|
+
{#if category.key}
|
331
|
+
<p class="FooterTitle">{category.key}</p>
|
332
|
+
{/if}
|
333
|
+
<casino-footer-section helperflag="1" clientstyling={customStyling} category={category.key} target={target} displaycolumn="true"></casino-footer-section>
|
334
|
+
{/each}
|
320
335
|
{/if}
|
321
336
|
</div>
|
322
337
|
|
@@ -349,10 +364,10 @@
|
|
349
364
|
<!-- start panic button -->
|
350
365
|
{#if panicbuttonenabled === "true" && isLoggedIn}
|
351
366
|
<panic-button
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
367
|
+
customtext = "Hold the button for 3 seconds to take 24 hours instant lock"
|
368
|
+
alternativestyling="true"
|
369
|
+
{lang}
|
370
|
+
{clientstyling}
|
356
371
|
></panic-button>
|
357
372
|
{/if}
|
358
373
|
<!-- end panic button -->
|
@@ -382,9 +397,9 @@
|
|
382
397
|
<!-- start session timer section -->
|
383
398
|
|
384
399
|
{#if sessiontimerenabled}
|
385
|
-
|
386
|
-
|
387
|
-
|
400
|
+
<div class="sessionTimerContainer">
|
401
|
+
<span class="SessionText">{$_('casinoFooter.sessionTimer')} {timeString}</span>
|
402
|
+
</div>
|
388
403
|
{/if}
|
389
404
|
<!-- end session timer section -->
|
390
405
|
</div>
|
@@ -481,20 +496,29 @@
|
|
481
496
|
position: relative;
|
482
497
|
}
|
483
498
|
|
499
|
+
.FooterSideMobile {
|
500
|
+
margin-top: 66px;
|
501
|
+
}
|
502
|
+
|
484
503
|
.FooterSide {
|
504
|
+
justify-content: center;
|
505
|
+
height: 100%;
|
485
506
|
display: flex;
|
486
507
|
flex-direction: column;
|
487
508
|
position: absolute;
|
488
509
|
background-color: $color-white;
|
489
510
|
.FooterTitle {
|
511
|
+
font-family: 'Roboto Condensed';
|
512
|
+
font-weight: 500;
|
513
|
+
font-size: 12px;
|
514
|
+
color: #111;
|
490
515
|
text-transform: uppercase;
|
491
|
-
|
492
|
-
font-weight: 600;
|
493
|
-
margin: 24px 13px;
|
516
|
+
margin: 21px 12px;
|
494
517
|
}
|
495
518
|
}
|
496
519
|
.FooterGrid {
|
497
520
|
font-weight: 400;
|
521
|
+
height: 100%;
|
498
522
|
display: flex;
|
499
523
|
padding: 100px 0;
|
500
524
|
max-width: 1200px;
|
@@ -514,11 +538,12 @@
|
|
514
538
|
text-align: center;
|
515
539
|
max-width: 1100px;
|
516
540
|
p {
|
541
|
+
font-family: 'Roboto';
|
542
|
+
font-style: normal;
|
543
|
+
font-weight: 300;
|
544
|
+
font-size: 12px;
|
545
|
+
color: #111;
|
517
546
|
text-align: center;
|
518
|
-
&.FooterTitle {
|
519
|
-
font-size: 12px;
|
520
|
-
font-weight: 700;
|
521
|
-
}
|
522
547
|
}
|
523
548
|
.LicenseDesc {
|
524
549
|
flex: 1;
|
@@ -553,7 +578,6 @@
|
|
553
578
|
flex-direction: column;
|
554
579
|
&Side {
|
555
580
|
position: relative;
|
556
|
-
margin-top: 66px;
|
557
581
|
margin-left: 14px;
|
558
582
|
}
|
559
583
|
&Grid {
|
package/src/translations.js
CHANGED