@everymatrix/general-player-login-form 0.0.186 → 0.0.190
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/general-player-login-form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.190",
|
|
4
4
|
"main": "dist/general-player-login-form.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": "44b4ddd09b030b74cbb8c6b1614bbe67fc010f66"
|
|
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/
|
|
21
|
+
file: 'dist/casino-lobby.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
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
let invalidPassword:boolean = false;
|
|
19
19
|
|
|
20
20
|
let errorMessage:string = '';
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
let isLoading:boolean = false;
|
|
23
23
|
let passwordVisibilityToggle:HTMLElement;
|
|
24
24
|
let isPasswordVisible:boolean = false;
|
|
25
25
|
let isFormDataInvalid:boolean = true;
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
const captchaKey = '6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn';
|
|
28
28
|
|
|
29
29
|
const regexValidators = {
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
$multiplicator: 16px;
|
|
199
199
|
@return $value * $multiplicator;
|
|
200
200
|
}
|
|
201
|
+
.grecaptcha-badge { opacity:0;}
|
|
201
202
|
.FormContainer {
|
|
202
203
|
display: inline-flex;
|
|
203
204
|
width: 100%;
|