@everymatrix/casino-header-controller 0.0.188 → 0.0.192
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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.192",
|
|
4
4
|
"main": "dist/casino-header-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "sirv public",
|
|
8
|
-
"build": "cross-env NODE_ENV
|
|
8
|
+
"build": "cross-env NODE_ENV=production rollup -c",
|
|
9
9
|
"dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
|
|
10
10
|
"validate": "svelte-check",
|
|
11
11
|
"test": "echo"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "90772f9f46872463853a444005e5adbfb07fc973"
|
|
42
42
|
}
|
package/rollup.config.js
CHANGED
|
@@ -6,9 +6,11 @@ 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
|
+
import uglify from 'rollup-plugin-uglify';
|
|
9
10
|
import image from '@rollup/plugin-image';
|
|
10
|
-
|
|
11
|
-
const
|
|
11
|
+
|
|
12
|
+
const production = process.env.NODE_ENV == 'production';
|
|
13
|
+
const dev = process.env.NODE_ENV == 'development';
|
|
12
14
|
|
|
13
15
|
export default {
|
|
14
16
|
input: 'src/index.ts',
|
|
@@ -16,16 +18,19 @@ export default {
|
|
|
16
18
|
sourcemap: true,
|
|
17
19
|
format: 'umd',
|
|
18
20
|
name: 'app',
|
|
19
|
-
file: 'dist/casino-header-controller.js'
|
|
21
|
+
file: 'dist/casino-header-controller.js',
|
|
20
22
|
},
|
|
21
23
|
plugins: [
|
|
22
24
|
svelte({
|
|
23
25
|
preprocess: sveltePreprocess(),
|
|
24
26
|
compilerOptions: {
|
|
27
|
+
// @TODO check generate and hydratable
|
|
28
|
+
// generate: 'ssr',
|
|
29
|
+
// hydratable: true,
|
|
25
30
|
// enable run-time checks when not in production
|
|
26
31
|
customElement: true,
|
|
27
32
|
dev: !production
|
|
28
|
-
}
|
|
33
|
+
}
|
|
29
34
|
}),
|
|
30
35
|
image(),
|
|
31
36
|
commonjs(),
|
|
@@ -48,12 +53,13 @@ export default {
|
|
|
48
53
|
}),
|
|
49
54
|
// If we're building for production (npm run build
|
|
50
55
|
// instead of npm run dev), minify
|
|
51
|
-
production &&
|
|
56
|
+
production &&
|
|
52
57
|
terser({
|
|
53
58
|
output: {
|
|
54
59
|
comments: "all"
|
|
55
60
|
},
|
|
56
|
-
})
|
|
61
|
+
}),
|
|
62
|
+
production && uglify.uglify()
|
|
57
63
|
],
|
|
58
64
|
watch: {
|
|
59
65
|
clearScreen: false
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import '@everymatrix/player-account-balance-modal';
|
|
9
9
|
|
|
10
10
|
import everymatrixLogo from './images/everymatrix-logo-white.png';
|
|
11
|
-
import sliderPlaceholderImage from './images/slider.png';
|
|
12
11
|
|
|
13
12
|
export let session:string = '';
|
|
14
13
|
export let userid:string = '';
|
|
@@ -18,12 +17,6 @@
|
|
|
18
17
|
export let lang:string = '';
|
|
19
18
|
export let identity:string = '';
|
|
20
19
|
|
|
21
|
-
//BannerMatrix
|
|
22
|
-
export let bannermatrix:string = '';
|
|
23
|
-
export let operatorid:string = '';
|
|
24
|
-
export let pagetag:string = '';
|
|
25
|
-
export let positiontag:string = '';
|
|
26
|
-
|
|
27
20
|
const genericIcon = `<svg version="1.1" fill="#fff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width: 30px; color: #fff;" x="0px" y="0px"
|
|
28
21
|
viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;" xml:space="preserve">
|
|
29
22
|
<path style="color: #fff" d="M180.455,360.91H24.061V24.061h156.394c6.641,0,12.03-5.39,12.03-12.03s-5.39-12.03-12.03-12.03H12.03
|
|
@@ -193,13 +186,6 @@
|
|
|
193
186
|
$: cmsendpoint && lang && initialLoad();
|
|
194
187
|
</script>
|
|
195
188
|
|
|
196
|
-
<svelte:head>
|
|
197
|
-
{#if bannermatrix}
|
|
198
|
-
<link rel="import" href="{bannermatrix}/assets/widgets/0.11.3/index.html">
|
|
199
|
-
<script src="{bannermatrix}/assets/widgets/0.11.3/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
|
|
200
|
-
{/if}
|
|
201
|
-
</svelte:head>
|
|
202
|
-
|
|
203
189
|
{#if isLoggedIn}
|
|
204
190
|
{#if mobileView}
|
|
205
191
|
<header class="HeaderWrapper HeaderMobileWrapper">
|
|
@@ -326,8 +312,6 @@
|
|
|
326
312
|
{/if}
|
|
327
313
|
{/if}
|
|
328
314
|
|
|
329
|
-
<bannermatrix-banner operator-id={operatorid} page-tag={pagetag} position-tag={positiontag}></bannermatrix-banner>
|
|
330
|
-
|
|
331
315
|
<casino-hamburger-menu menuitemsurl={hamburgerURL} {language}></casino-hamburger-menu>
|
|
332
316
|
|
|
333
317
|
<style lang="scss">
|
|
@@ -439,10 +423,10 @@
|
|
|
439
423
|
}
|
|
440
424
|
|
|
441
425
|
.ItemLanguage {
|
|
442
|
-
height:
|
|
443
|
-
width:
|
|
426
|
+
height: 44px;
|
|
427
|
+
width: 76px;
|
|
444
428
|
text-align: center;
|
|
445
|
-
line-height:
|
|
429
|
+
line-height: 44px;
|
|
446
430
|
background: transparent;
|
|
447
431
|
color: #fff;
|
|
448
432
|
border: none;
|
package/src/images/slider.png
DELETED
|
Binary file
|