Skip to content

Commit a251659

Browse files
committed
bump version
1 parent 61d646b commit a251659

File tree

8 files changed

+13
-19
lines changed

8 files changed

+13
-19
lines changed

ghcjs/currency-converter/overlays.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
self.callCabal2nix
146146
"singlethongs" "${functora}/pub/singlethongs" {};
147147
miso =
148-
pkgs.haskell.lib.enableCabalFlag
148+
pkgs.haskell.lib.disableCabalFlag
149149
(
150150
self.callCabal2nix
151151
"miso" "${functora}/pub/miso" {}

ghcjs/currency-converter/src/App/Types.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ data Model = Model
5353
modelState :: St Unique,
5454
modelMarket :: MVar Rates.Market,
5555
modelFavMap :: Map MisoString Fav,
56+
modelFavName :: Field MisoString Unique,
5657
modelCurrencies :: NonEmpty CurrencyInfo,
5758
modelSnackbarQueue :: Snackbar.Queue Action,
5859
modelProducerQueue :: TChan (ChanItem (Model -> Model)),
@@ -98,7 +99,6 @@ data StDoc f = StDoc
9899
{ stDocTopMoney :: Money f,
99100
stDocBottomMoney :: Money f,
100101
stDocTopOrBottom :: TopOrBottom,
101-
stDocPreFavName :: Field MisoString f,
102102
stDocFieldPairs :: [FieldPair DynamicField f],
103103
stDocOnlineOrOffline :: OnlineOrOffline,
104104
stDocCreatedAt :: UTCTime
@@ -124,13 +124,11 @@ newStDoc = do
124124
ct <- getCurrentTime
125125
topMoney <- newMoney 1 btc
126126
bottomMoney <- newMoney 0 usd
127-
preFavName <- newTextField mempty
128127
pure
129128
StDoc
130129
{ stDocTopMoney = topMoney,
131130
stDocBottomMoney = bottomMoney,
132131
stDocTopOrBottom = Top,
133-
stDocPreFavName = preFavName,
134132
stDocFieldPairs = mempty,
135133
stDocOnlineOrOffline = Online,
136134
stDocCreatedAt = ct

ghcjs/currency-converter/src/App/Widgets/Fav.hs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ fav st =
3434
<> [ Cell.mediumCell
3535
$ Field.textField
3636
st
37-
( #modelState
38-
. #stDoc
39-
. #stDocPreFavName
37+
( #modelFavName
4038
)
4139
( Field.defOpts
4240
& #optsPlaceholder
@@ -139,12 +137,7 @@ makeFavName st =
139137
$ fromMisoString preFavName
140138
where
141139
preFavName =
142-
st
143-
^. #modelState
144-
. #stDoc
145-
. #stDocPreFavName
146-
. #fieldInput
147-
. #uniqueValue
140+
st ^. #modelFavName . #fieldInput . #uniqueValue
148141

149142
favItems :: Model -> [View Action]
150143
favItems st =

ghcjs/currency-converter/src/App/Widgets/Menu.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ menu st =
6666
next
6767
& #modelFav
6868
.~ Opened
69-
& #modelState
70-
. #stDoc
71-
. #stDocPreFavName
69+
& #modelFavName
7270
. #fieldInput
7371
. #uniqueValue
7472
.~ defFavName next

ghcjs/currency-converter/src/App/Widgets/Templates.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ newModel webOpts mSt uri = do
5555
(mSt ^? _Just . #modelState . #stScreen)
5656
let defCpt =
5757
mSt ^? _Just . #modelState . #stCpt . _Just
58+
favName <- newTextField mempty
5859
mApp <- unShareUri uri
5960
st <-
6061
maybe
@@ -105,6 +106,7 @@ newModel webOpts mSt uri = do
105106
modelState = st,
106107
modelMarket = market,
107108
modelFavMap = mempty,
109+
modelFavName = favName,
108110
modelCurrencies =
109111
fromMaybe
110112
[btc, usd]

ghcjs/currency-converter/src/Main.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ syncInputs st = do
273273
void
274274
. Syb.everywhereM (Syb.mkM fun)
275275
$ modelState st
276+
void
277+
. Syb.everywhereM (Syb.mkM fun)
278+
$ modelFavName st
276279
where
277280
fun :: Unique MisoString -> JSM (Unique MisoString)
278281
fun txt = do

ghcjs/invoice-generator/app.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.2
22
name: app
3-
version: 0.1.0.8
3+
version: 0.1.0.9
44
synopsis: First miso app
55
category: Web
66
build-type: Simple

ghcjs/invoice-generator/trapeze.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
platforms:
22
android:
33
appName: Currency Converter
4-
versionCode: 8
5-
versionName: 0.1.0.8
4+
versionCode: 9
5+
versionName: 0.1.0.9
66
packageName: com.functora.currency_converter
77
manifest:
88
- file: AndroidManifest.xml

0 commit comments

Comments
 (0)