mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 01:12:50 +03:00
Use new .value helpers.
This commit is contained in:
parent
3708ec261d
commit
21e371c80c
@ -59,15 +59,15 @@ otherFile routes phaseString =
|
|||||||
config =
|
config =
|
||||||
{ init = Elm.apply (Elm.val "init") [ Elm.nothing ]
|
{ init = Elm.apply (Elm.val "init") [ Elm.nothing ]
|
||||||
, update = update.value []
|
, update = update.value []
|
||||||
, subscriptions = Elm.val "subscriptions"
|
, subscriptions = subscriptions.value []
|
||||||
, sharedData =
|
, sharedData =
|
||||||
Elm.value { name = "template", importFrom = [ "Shared" ], annotation = Nothing }
|
Elm.value { name = "template", importFrom = [ "Shared" ], annotation = Nothing }
|
||||||
|> Elm.get "data"
|
|> Elm.get "data"
|
||||||
, data = Elm.val "dataForRoute"
|
, data = dataForRoute.value []
|
||||||
, action = Elm.val "action"
|
, action = action.value []
|
||||||
, onActionData = Elm.val "onActionData"
|
, onActionData = onActionData.value []
|
||||||
, view = todo
|
, view = todo
|
||||||
, handleRoute = Elm.val "handleRoute"
|
, handleRoute = handleRoute.value []
|
||||||
, getStaticRoutes =
|
, getStaticRoutes =
|
||||||
case phase of
|
case phase of
|
||||||
Browser ->
|
Browser ->
|
||||||
@ -151,10 +151,10 @@ otherFile routes phaseString =
|
|||||||
, annotation = Nothing
|
, annotation = Nothing
|
||||||
}
|
}
|
||||||
, sendPageData = Elm.val "sendPageData"
|
, sendPageData = Elm.val "sendPageData"
|
||||||
, byteEncodePageData = Elm.val "byteEncodePageData"
|
, byteEncodePageData = byteEncodePageData.value []
|
||||||
, byteDecodePageData = Elm.val "byteDecodePageData"
|
, byteDecodePageData = byteDecodePageData.value []
|
||||||
, encodeResponse = encodeResponse.reference
|
, encodeResponse = encodeResponse.reference
|
||||||
, encodeAction = Elm.val "encodeActionData"
|
, encodeAction = encodeActionData.value []
|
||||||
, decodeResponse = decodeResponse.reference
|
, decodeResponse = decodeResponse.reference
|
||||||
, globalHeadTags =
|
, globalHeadTags =
|
||||||
case phase of
|
case phase of
|
||||||
|
Loading…
Reference in New Issue
Block a user