File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -459,13 +459,17 @@ getQuoteMoneyOptic = \case
459
459
460
460
viewModel :: Model -> View Action
461
461
viewModel st =
462
+ #ifndef __GHCJS__
462
463
div_
463
464
mempty
464
465
[ link_ [rel_ " stylesheet" , href_ " static/material-components-web.min.css" ],
465
466
link_ [rel_ " stylesheet" , href_ " static/material-icons.css" ],
466
467
link_ [rel_ " stylesheet" , href_ " static/app.css" ],
467
468
mainWidget st
468
469
]
470
+ #else
471
+ mainWidget st
472
+ #endif
469
473
470
474
mainWidget :: Model -> View Action
471
475
mainWidget st =
@@ -514,9 +518,7 @@ amountWidget st loc =
514
518
[ TextField. outlined
515
519
$ TextField. config
516
520
& TextField. setType (Just " number" )
517
- & TextField. setValid valid
518
521
& TextField. setOnInput onInputAction
519
- & TextField. setRequired True
520
522
& TextField. setLeadingIcon
521
523
( Just
522
524
$ TextField. icon
Original file line number Diff line number Diff line change @@ -66,20 +66,26 @@ in rec {
66
66
installPhase = ''
67
67
mkdir -p $out/static
68
68
cp ${ ./static } /*.png $out/static/
69
- cp ${ ./static } /*.css $out/static/
70
69
cp ${ ./static } /*.woff2 $out/static/
71
70
cp ${ ./static } /*.ico $out/
72
71
cp ${ ./static } /*.webmanifest $out/
73
72
cp ${ readmeDer } /readme.html $out/
74
73
cp ${ licenseDer } /license.html $out/
75
74
cp ${ privacyDer } /privacy.html $out/
76
- echo '<!doctype html><html><head><script language="javascript" src="all.js"></script></head><body></body></html>' > $out/index.html
75
+ echo '<!doctype html><html><head><script language="javascript" src="all.js"></script><link rel="stylesheet" href="static/all.css"/></head><body></body></html>' > $out/index.html
76
+ ${ functora-pkgs . clean-css-cli } /bin/cleancss \
77
+ -O2 \
78
+ --source-map \
79
+ -o $out/static/all.css \
80
+ ${ ./static } /material-components-web.min.css \
81
+ ${ ./static } /material-icons.css \
82
+ ${ ./static } /app.css
77
83
${ functora-pkgs . closurecompiler } /bin/closure-compiler \
78
84
--jscomp_off=checkVars \
79
85
--compilation_level ADVANCED_OPTIMIZATIONS \
80
86
--externs ${ app } /bin/app.jsexe/all.js.externs \
81
87
--externs ${ ./static } /material-components-web.min.js \
82
- --externs ${ ./static } /material-components-web-elm.min.js \
88
+ --create_source_map $out/all.js.map \
83
89
--js ${ app } /bin/app.jsexe/all.js \
84
90
--js_output_file $out/all.js
85
91
'' ;
Original file line number Diff line number Diff line change 30
30
app-release-license
31
31
functora-pkgs . cabal-install
32
32
functora-pkgs . closurecompiler
33
+ functora-pkgs . clean-css-cli
33
34
]
34
35
++ prev . buildInputs
35
36
++ functora-tools ;
You can’t perform that action at this time.
0 commit comments