Skip to content

Commit

Permalink
Update webapp to use new AirGQL endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed May 3, 2024
1 parent c1e7664 commit f70740e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ extra-deps:
- github: Airsequel/simple-sql-parser
commit: 680f2b77c53fcc086dc7d5f498f764ad2235b828

- github: ad-si/iso8601-duration
commit: 15822155a51831fbcd75a3bb5cb608a731a0461b
- github: meteogrid/iso8601-duration
commit: 9524d1f02775be1d6c73165c4b4d62a19c8b7698

allow-newer: true

Expand Down
12 changes: 6 additions & 6 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ packages:
- completed:
name: iso8601-duration
pantry-tree:
sha256: dd24cbdc13e4aa8ae25125ad3fece2ea910ecb5fd0af4c31fce39d26aaa7930e
size: 724
sha256: 2645e7337c863d1dc7aa68ca79be6ca8efc79b508ad575336335d2d7cb7d5fca
size: 7309
url: https://github.com/ad-si/iso8601-duration/archive/15822155a51831fbcd75a3bb5cb608a731a0461b.tar.gz
sha256: 7aec9c9ad262d3354d5eef475cdaff22fa60eba1303c480e67b33e84c31fad2c
size: 722
sha256: 883399c89b887becc644c045431f336009927ab950cc8b5d0ea7016473ac3dda
size: 6507
url: https://github.com/meteogrid/iso8601-duration/archive/9524d1f02775be1d6c73165c4b4d62a19c8b7698.tar.gz
version: 0.1.2.0
original:
url: https://github.com/ad-si/iso8601-duration/archive/15822155a51831fbcd75a3bb5cb608a731a0461b.tar.gz
url: https://github.com/meteogrid/iso8601-duration/archive/9524d1f02775be1d6c73165c4b4d62a19c8b7698.tar.gz
snapshots:
- completed:
sha256: e5cac927cf7ccbd52aa41476baa68b88c564ee6ddc3bc573dbf4210069287fe7
Expand Down
2 changes: 1 addition & 1 deletion tasklite-airsequel-app/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ written in [Elm](elm-lang.org).
1. Build GraphQL connector code:
```sh
npx elm-graphql --skip-elm-format \
http://localhost:4185/dbs/tasklite/graphql
http://localhost:7458/graphql
```
1. Start the development server by running:
```sh
Expand Down
14 changes: 6 additions & 8 deletions tasklite-airsequel-app/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ import Html.Styled.Attributes
, css
, disabled
, href
, placeholder
, title
, type_
, value
)
import Html.Styled.Events exposing (onCheck, onClick, onInput, onSubmit)
import Iso8601
import Json.Decode
import List exposing (map)
import List
import Random
import RemoteData exposing (RemoteData(..))
import Tailwind.Theme exposing (..)
Expand All @@ -59,17 +60,12 @@ import Task
import Time exposing (Posix)
import Ulid exposing (Ulid, ulidGenerator)
import Url exposing (Url)
import Url.Parser exposing ((</>), Parser, map, oneOf, parse, s, string)


dbId : String
dbId =
"tasklite"
import Url.Parser exposing ((</>), Parser, oneOf, parse, s, string)


graphqlApiUrl : String
graphqlApiUrl =
"http://localhost:4185/dbs/" ++ dbId ++ "/graphql"
"http://localhost:7458/graphql"


dark : List Css.Style -> Css.Style
Expand Down Expand Up @@ -418,6 +414,7 @@ viewBody model =
form [ onSubmit AddTaskNow, css [ flex, mb_3 ] ]
[ input
[ type_ "text"
, placeholder "Add a new task …"
, onInput NewTask
, value model.newTask
, css
Expand All @@ -429,6 +426,7 @@ viewBody model =
, border
, border_solid
, border_color gray_400
, placeholder_color gray_400
, dark
[ bg_color neutral_800
, border_color neutral_500
Expand Down

0 comments on commit f70740e

Please sign in to comment.