Add lamassu-admin-elm to this repo (#185)
This commit is contained in:
parent
5ee7e40872
commit
f4fc9d6328
134 changed files with 28171 additions and 83 deletions
16
lamassu-admin-elm/src/AccountsDecoder.elm
Normal file
16
lamassu-admin-elm/src/AccountsDecoder.elm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
module AccountsDecoder exposing (..)
|
||||
|
||||
import Json.Decode exposing (..)
|
||||
|
||||
|
||||
accountDecoder : Decoder ( String, String )
|
||||
accountDecoder =
|
||||
map2 (,)
|
||||
(field "code" string)
|
||||
(field "display" string)
|
||||
|
||||
|
||||
accountsDecoder : Decoder (List ( String, String ))
|
||||
accountsDecoder =
|
||||
map identity
|
||||
(field "accounts" (list accountDecoder))
|
||||
Loading…
Add table
Add a link
Reference in a new issue