@everymatrix/casino-header-controller 0.0.189 → 0.0.193
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.193",
|
|
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": "0960983a499b8cd9494500f0f36058fdc61fbead"
|
|
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
|
|
@@ -17,12 +17,6 @@
|
|
|
17
17
|
export let lang:string = '';
|
|
18
18
|
export let identity:string = '';
|
|
19
19
|
|
|
20
|
-
//BannerMatrix
|
|
21
|
-
export let bannermatrix:string = '';
|
|
22
|
-
export let operatorid:string = '';
|
|
23
|
-
export let pagetag:string = '';
|
|
24
|
-
export let positiontag:string = '';
|
|
25
|
-
|
|
26
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"
|
|
27
21
|
viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;" xml:space="preserve">
|
|
28
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
|
|
@@ -192,13 +186,6 @@
|
|
|
192
186
|
$: cmsendpoint && lang && initialLoad();
|
|
193
187
|
</script>
|
|
194
188
|
|
|
195
|
-
<svelte:head>
|
|
196
|
-
{#if bannermatrix}
|
|
197
|
-
<link rel="import" href="{bannermatrix}/assets/widgets/0.11.3/index.html">
|
|
198
|
-
<script src="{bannermatrix}/assets/widgets/0.11.3/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
|
|
199
|
-
{/if}
|
|
200
|
-
</svelte:head>
|
|
201
|
-
|
|
202
189
|
{#if isLoggedIn}
|
|
203
190
|
{#if mobileView}
|
|
204
191
|
<header class="HeaderWrapper HeaderMobileWrapper">
|
|
@@ -325,8 +312,6 @@
|
|
|
325
312
|
{/if}
|
|
326
313
|
{/if}
|
|
327
314
|
|
|
328
|
-
<bannermatrix-banner operator-id={operatorid} page-tag={pagetag} position-tag={positiontag}></bannermatrix-banner>
|
|
329
|
-
|
|
330
315
|
<casino-hamburger-menu menuitemsurl={hamburgerURL} {language}></casino-hamburger-menu>
|
|
331
316
|
|
|
332
317
|
<style lang="scss">
|
|
@@ -438,10 +423,10 @@
|
|
|
438
423
|
}
|
|
439
424
|
|
|
440
425
|
.ItemLanguage {
|
|
441
|
-
height:
|
|
442
|
-
width:
|
|
426
|
+
height: 44px;
|
|
427
|
+
width: 76px;
|
|
443
428
|
text-align: center;
|
|
444
|
-
line-height:
|
|
429
|
+
line-height: 44px;
|
|
445
430
|
background: transparent;
|
|
446
431
|
color: #fff;
|
|
447
432
|
border: none;
|