@everymatrix/casino-game-page 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/dist/casino-game-page.js +1 -13037
- package/dist/casino-game-page.js.map +1 -1
- package/package.json +3 -3
- package/rollup.config.js +13 -5
- package/src/CasinoGamePage.svelte +4 -3
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-game-page",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.193",
|
4
4
|
"main": "dist/casino-game-page.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"
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "0960983a499b8cd9494500f0f36058fdc61fbead"
|
40
40
|
}
|
package/rollup.config.js
CHANGED
@@ -6,8 +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
|
-
|
10
|
-
|
9
|
+
import uglify from 'rollup-plugin-uglify';
|
10
|
+
import image from '@rollup/plugin-image';
|
11
|
+
|
12
|
+
const production = process.env.NODE_ENV == 'production';
|
13
|
+
const dev = process.env.NODE_ENV == 'development';
|
11
14
|
|
12
15
|
export default {
|
13
16
|
input: 'src/index.ts',
|
@@ -15,17 +18,21 @@ export default {
|
|
15
18
|
sourcemap: true,
|
16
19
|
format: 'umd',
|
17
20
|
name: 'app',
|
18
|
-
file: 'dist/casino-game-page.js'
|
21
|
+
file: 'dist/casino-game-page.js',
|
19
22
|
},
|
20
23
|
plugins: [
|
21
24
|
svelte({
|
22
25
|
preprocess: sveltePreprocess(),
|
23
26
|
compilerOptions: {
|
27
|
+
// @TODO check generate and hydratable
|
28
|
+
// generate: 'ssr',
|
29
|
+
// hydratable: true,
|
24
30
|
// enable run-time checks when not in production
|
25
31
|
customElement: true,
|
26
32
|
dev: !production
|
27
33
|
}
|
28
34
|
}),
|
35
|
+
image(),
|
29
36
|
commonjs(),
|
30
37
|
resolve({
|
31
38
|
browser: true,
|
@@ -46,12 +53,13 @@ export default {
|
|
46
53
|
}),
|
47
54
|
// If we're building for production (npm run build
|
48
55
|
// instead of npm run dev), minify
|
49
|
-
production &&
|
56
|
+
production &&
|
50
57
|
terser({
|
51
58
|
output: {
|
52
59
|
comments: "all"
|
53
60
|
},
|
54
|
-
})
|
61
|
+
}),
|
62
|
+
production && uglify.uglify()
|
55
63
|
],
|
56
64
|
watch: {
|
57
65
|
clearScreen: false
|
@@ -487,7 +487,7 @@
|
|
487
487
|
<div class="PanicSection">
|
488
488
|
<svg class="w-1 h-1" fill="none" stroke="white" width="34px" height="34px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
|
489
489
|
<p>{$_('gamePage.break')}</p>
|
490
|
-
<button class="Button">{$_('gamePage.breakButton')}</button>
|
490
|
+
<button class="Button" on:click={() => PanicAction()}>{$_('gamePage.breakButton')}</button>
|
491
491
|
</div>
|
492
492
|
{/if}
|
493
493
|
{#if isFullscreen}
|
@@ -570,6 +570,7 @@
|
|
570
570
|
background-color: #28A745;
|
571
571
|
color: white;
|
572
572
|
border-radius: 2px;
|
573
|
+
cursor: pointer;
|
573
574
|
}
|
574
575
|
.PlayNowButton {
|
575
576
|
background-color: #D0046C;
|
@@ -676,7 +677,7 @@
|
|
676
677
|
}
|
677
678
|
.PanicSectionMobile {
|
678
679
|
flex-direction: column;
|
679
|
-
margin
|
680
|
+
margin: 20px 0;
|
680
681
|
}
|
681
682
|
.PanicText {
|
682
683
|
display: flex;
|
@@ -686,7 +687,7 @@
|
|
686
687
|
display: flex;
|
687
688
|
align-items: center;
|
688
689
|
gap: 10px;
|
689
|
-
margin
|
690
|
+
margin: 20px 0;
|
690
691
|
|
691
692
|
svg {
|
692
693
|
fill: none;
|