Commit b1ee9858 authored by Cédric F.'s avatar Cédric F.

Update dependencies

parent a5a34159
Pipeline #24844880 passed with stage
in 1 minute and 24 seconds
......@@ -12,9 +12,9 @@
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-lang/html": "2.0.0 <= v < 3.0.0",
"elm-lang/navigation": "2.0.1 <= v < 3.0.0",
"eskimoblood/elm-color-extra": "3.2.3 <= v < 4.0.0",
"eskimoblood/elm-color-extra": "5.1.0 <= v < 6.0.0",
"evancz/elm-graphics": "1.0.1 <= v < 2.0.0",
"truqu/elm-base64": "1.0.5 <= v < 2.0.0"
"truqu/elm-base64": "2.0.3 <= v < 3.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -33,4 +33,4 @@ base64 =
}
"""
in
Base64.encode json |> Result.toMaybe |> Maybe.withDefault ""
Base64.encode json
......@@ -97,9 +97,9 @@ initialEventForm : Model -> EventForm
initialEventForm model =
{ from = DateExtra.toISOString <| Date.fromTime model.now
, to = DateExtra.toISOString <| Date.fromTime model.now
, color = Color.Convert.colorToHex fallbackColor
, label = ""
, overlay = False
, color = Color.Convert.colorToHex fallbackColor
}
......@@ -107,9 +107,12 @@ createEvent : EventForm -> Event
createEvent form =
{ from = DateExtra.fromStringWithFallback form.from (Date.fromTime 0)
, to = DateExtra.fromStringWithFallback form.to (Date.fromTime 0)
, color = Color.Convert.hexToColor form.color |> Maybe.withDefault fallbackColor
, label = form.label
, overlay = form.overlay
, color =
Color.Convert.hexToColor form.color
|> Result.toMaybe
|> Maybe.withDefault fallbackColor
}
......
......@@ -18,12 +18,7 @@ import Lifechart.Model exposing (..)
serialize : Model -> String
serialize model =
case Base64.encode (serializeJson model) of
Err _ ->
""
Ok string ->
string
Base64.encode <| serializeJson model
deserialize : String -> Result String Model
......@@ -123,6 +118,7 @@ colorDecoder =
|> Decode.andThen
(\hex ->
Color.Convert.hexToColor hex
|> Result.toMaybe
|> Maybe.withDefault fallbackColor
|> Decode.succeed
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment