@everymatrix/casino-footer-v2 0.0.190 → 0.0.347
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 +1344 -4018
- package/dist/casino-footer-v2.js.map +1 -1
- package/index.html +101 -15
- package/package.json +2 -2
- package/rollup.config.js +5 -13
- package/src/CasinoFooterV2.svelte +557 -183
- package/src/i18n.js +27 -0
- package/src/translations.js +32 -0
- package/translations.js +32 -0
- package/dist/casino-lobby.js +0 -2
- package/dist/casino-lobby.js.map +0 -1
package/index.html
CHANGED
@@ -1,21 +1,107 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en">
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<script src='dist/casino-footer-v2.js'></script>
|
12
|
-
</head>
|
7
|
+
<title>casino-footer-v2</title>
|
8
|
+
<link rel="stylesheet" href="public/reset.css" />
|
9
|
+
<script src="dist/casino-footer-v2.js"></script>
|
10
|
+
</head>
|
13
11
|
|
14
|
-
<body>
|
12
|
+
<body>
|
13
|
+
<style>
|
14
|
+
html,
|
15
|
+
body {
|
16
|
+
margin: 0;
|
17
|
+
padding: 0;
|
18
|
+
height: 100%;
|
19
|
+
font-family: "Helvetica Neue", "Helvetica", sans-serif;
|
20
|
+
}
|
21
|
+
.header {
|
22
|
+
display: flex;
|
23
|
+
justify-content: center;
|
24
|
+
align-items: center;
|
25
|
+
padding: 10px 20px;
|
26
|
+
margin-bottom: 20px;
|
27
|
+
background: #42a3e2;
|
28
|
+
box-shadow: 3px 4px 5px 0px rgba(0, 0, 0, 0.2);
|
29
|
+
}
|
30
|
+
.header__logo svg {
|
31
|
+
height: 50px;
|
32
|
+
width: 50px;
|
33
|
+
margin-right: 5px;
|
34
|
+
}
|
35
|
+
.header__name {
|
36
|
+
color: #fff;
|
37
|
+
}
|
38
|
+
.header__name span {
|
39
|
+
margin-right: 10px;
|
40
|
+
font-weight: bold;
|
41
|
+
}
|
42
|
+
.webcomponent {
|
43
|
+
padding: 10px 20px;
|
44
|
+
}
|
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>
|
15
93
|
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
94
|
+
<casino-footer-v2
|
95
|
+
endpoint="https://bahcom-stage.everymatrix.com/apijson"
|
96
|
+
lang="en"
|
97
|
+
env="stage"
|
98
|
+
clocktext="Time"
|
99
|
+
clockenabled="true"
|
100
|
+
clocksecondsenabled="true"
|
101
|
+
clockcustomformat="false"
|
102
|
+
languageselectorenabled="true"
|
103
|
+
panicbuttonenabled="true"
|
104
|
+
sessiontimerenabled="true"
|
105
|
+
></casino-footer-v2>
|
106
|
+
</body>
|
21
107
|
</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.347",
|
4
4
|
"main": "index.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": "442a3c22302f7e8a4c7bd9e735f560f5438e32f2"
|
40
40
|
}
|
package/rollup.config.js
CHANGED
@@ -6,11 +6,8 @@ import livereload from 'rollup-plugin-livereload';
|
|
6
6
|
import { terser } from 'rollup-plugin-terser';
|
7
7
|
import sveltePreprocess from 'svelte-preprocess';
|
8
8
|
import typescript from '@rollup/plugin-typescript';
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
const production = process.env.NODE_ENV == 'production';
|
13
|
-
const dev = process.env.NODE_ENV == 'development';
|
9
|
+
const production = process.env.NODE_ENV === 'production';
|
10
|
+
const dev = process.env.NODE_ENV === 'development';
|
14
11
|
|
15
12
|
export default {
|
16
13
|
input: 'src/index.ts',
|
@@ -18,21 +15,17 @@ export default {
|
|
18
15
|
sourcemap: true,
|
19
16
|
format: 'umd',
|
20
17
|
name: 'app',
|
21
|
-
file: 'dist/casino-
|
18
|
+
file: 'dist/casino-footer-v2.js'
|
22
19
|
},
|
23
20
|
plugins: [
|
24
21
|
svelte({
|
25
22
|
preprocess: sveltePreprocess(),
|
26
23
|
compilerOptions: {
|
27
|
-
// @TODO check generate and hydratable
|
28
|
-
// generate: 'ssr',
|
29
|
-
// hydratable: true,
|
30
24
|
// enable run-time checks when not in production
|
31
25
|
customElement: true,
|
32
26
|
dev: !production
|
33
27
|
}
|
34
28
|
}),
|
35
|
-
image(),
|
36
29
|
commonjs(),
|
37
30
|
resolve({
|
38
31
|
browser: true,
|
@@ -53,13 +46,12 @@ export default {
|
|
53
46
|
}),
|
54
47
|
// If we're building for production (npm run build
|
55
48
|
// instead of npm run dev), minify
|
56
|
-
production &&
|
49
|
+
production &&
|
57
50
|
terser({
|
58
51
|
output: {
|
59
52
|
comments: "all"
|
60
53
|
},
|
61
|
-
})
|
62
|
-
production && uglify.uglify()
|
54
|
+
})
|
63
55
|
],
|
64
56
|
watch: {
|
65
57
|
clearScreen: false
|