Skip to content

Commit 41e20eb

Browse files
committed
Webapp: Load tasks_ready instead of tasks_head, regenerate GraphQL API
1 parent 442cec2 commit 41e20eb

59 files changed

Lines changed: 12827 additions & 219 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ docker-docs: book.toml docs-source
6363
# Continuously rebuild and serve at localhost:3000
6464
.PHONY: serve-docs
6565
serve-docs:
66-
mdbook serve
66+
mdbook serve --port 4882
6767

6868

6969
# Continuously rebuild and serve at localhost:3000 with Docker

tasklite-webapp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
/build
12
/elm-stuff
23
/node_modules
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql
2+
-- https://github.com/dillonkearns/elm-graphql
3+
module Api.Enum.Closed_tasks_histogram_column exposing (..)
4+
5+
import Json.Decode as Decode exposing (Decoder)
6+
7+
8+
{-| This enum contains a variant for each column in the table
9+
-}
10+
type Closed_tasks_histogram_column
11+
= Date_short
12+
| Num_of_closed_tasks
13+
list : List Closed_tasks_histogram_column
14+
list =
15+
[Date_short, Num_of_closed_tasks]
16+
decoder : Decoder Closed_tasks_histogram_column
17+
decoder =
18+
Decode.string
19+
|> Decode.andThen
20+
(\string ->
21+
case string of
22+
"date_short" ->
23+
Decode.succeed Date_short
24+
25+
"num_of_closed_tasks" ->
26+
Decode.succeed Num_of_closed_tasks
27+
28+
_ ->
29+
Decode.fail ("Invalid Closed_tasks_histogram_column type, " ++ string ++ " try re-running the @dillonkearns/elm-graphql CLI ")
30+
)
31+
32+
33+
{-| Convert from the union type representing the Enum to a string that the GraphQL server will recognize.
34+
-}
35+
toString : Closed_tasks_histogram_column -> String
36+
toString enum____ =
37+
case enum____ of
38+
Date_short ->
39+
"date_short"
40+
41+
42+
Num_of_closed_tasks ->
43+
"num_of_closed_tasks"
44+
45+
46+
{-| Convert from a String representation to an elm representation enum.
47+
This is the inverse of the Enum `toString` function. So you can call `toString` and then convert back `fromString` safely.
48+
49+
Swapi.Enum.Episode.NewHope
50+
|> Swapi.Enum.Episode.toString
51+
|> Swapi.Enum.Episode.fromString
52+
== Just NewHope
53+
54+
This can be useful for generating Strings to use for <select> menus to check which item was selected.
55+
56+
-}
57+
fromString : String -> Maybe Closed_tasks_histogram_column
58+
fromString enumString____ =
59+
case enumString____ of
60+
"date_short" ->
61+
Just Date_short
62+
63+
64+
"num_of_closed_tasks" ->
65+
Just Num_of_closed_tasks
66+
67+
_ ->
68+
Nothing
Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql
22
-- https://github.com/dillonkearns/elm-graphql
3-
4-
53
module Api.Enum.OrderingTerm exposing (..)
64

7-
import Graphql.Internal.Encode as Encode exposing (Value)
85
import Json.Decode as Decode exposing (Decoder)
96

107

@@ -17,13 +14,9 @@ import Json.Decode as Decode exposing (Decoder)
1714
type OrderingTerm
1815
= Asc
1916
| Desc
20-
21-
2217
list : List OrderingTerm
2318
list =
24-
[ Asc, Desc ]
25-
26-
19+
[Asc, Desc]
2720
decoder : Decoder OrderingTerm
2821
decoder =
2922
Decode.string
@@ -33,24 +26,18 @@ decoder =
3326
"ASC" ->
3427
Decode.succeed Asc
3528

29+
"asc" ->
30+
Decode.succeed Asc
31+
3632
"DESC" ->
3733
Decode.succeed Desc
3834

35+
"desc" ->
36+
Decode.succeed Desc
37+
3938
_ ->
4039
Decode.fail ("Invalid OrderingTerm type, " ++ string ++ " try re-running the @dillonkearns/elm-graphql CLI ")
41-
)
42-
43-
44-
encodeOrderingTerm : OrderingTerm -> Value
45-
encodeOrderingTerm =
46-
Encode.enum <|
47-
\val ->
48-
case val of
49-
Asc ->
50-
"ASC"
51-
52-
Desc ->
53-
"DESC"
40+
)
5441

5542

5643
{-| Convert from the union type representing the Enum to a string that the GraphQL server will recognize.
@@ -59,10 +46,11 @@ toString : OrderingTerm -> String
5946
toString enum____ =
6047
case enum____ of
6148
Asc ->
62-
"ASC"
49+
"ASC"
50+
6351

6452
Desc ->
65-
"DESC"
53+
"DESC"
6654

6755

6856
{-| Convert from a String representation to an elm representation enum.
@@ -80,10 +68,19 @@ fromString : String -> Maybe OrderingTerm
8068
fromString enumString____ =
8169
case enumString____ of
8270
"ASC" ->
83-
Just Asc
71+
Just Asc
72+
73+
74+
"asc" ->
75+
Just Asc
76+
8477

8578
"DESC" ->
86-
Just Desc
79+
Just Desc
80+
81+
82+
"desc" ->
83+
Just Desc
8784

8885
_ ->
89-
Nothing
86+
Nothing
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql
2+
-- https://github.com/dillonkearns/elm-graphql
3+
module Api.Enum.Tags_column exposing (..)
4+
5+
import Json.Decode as Decode exposing (Decoder)
6+
7+
8+
{-| This enum contains a variant for each column in the table
9+
-}
10+
type Tags_column
11+
= Tag
12+
| Open
13+
| Closed
14+
| Progress
15+
list : List Tags_column
16+
list =
17+
[Tag, Open, Closed, Progress]
18+
decoder : Decoder Tags_column
19+
decoder =
20+
Decode.string
21+
|> Decode.andThen
22+
(\string ->
23+
case string of
24+
"tag" ->
25+
Decode.succeed Tag
26+
27+
"open" ->
28+
Decode.succeed Open
29+
30+
"closed" ->
31+
Decode.succeed Closed
32+
33+
"progress" ->
34+
Decode.succeed Progress
35+
36+
_ ->
37+
Decode.fail ("Invalid Tags_column type, " ++ string ++ " try re-running the @dillonkearns/elm-graphql CLI ")
38+
)
39+
40+
41+
{-| Convert from the union type representing the Enum to a string that the GraphQL server will recognize.
42+
-}
43+
toString : Tags_column -> String
44+
toString enum____ =
45+
case enum____ of
46+
Tag ->
47+
"tag"
48+
49+
50+
Open ->
51+
"open"
52+
53+
54+
Closed ->
55+
"closed"
56+
57+
58+
Progress ->
59+
"progress"
60+
61+
62+
{-| Convert from a String representation to an elm representation enum.
63+
This is the inverse of the Enum `toString` function. So you can call `toString` and then convert back `fromString` safely.
64+
65+
Swapi.Enum.Episode.NewHope
66+
|> Swapi.Enum.Episode.toString
67+
|> Swapi.Enum.Episode.fromString
68+
== Just NewHope
69+
70+
This can be useful for generating Strings to use for <select> menus to check which item was selected.
71+
72+
-}
73+
fromString : String -> Maybe Tags_column
74+
fromString enumString____ =
75+
case enumString____ of
76+
"tag" ->
77+
Just Tag
78+
79+
80+
"open" ->
81+
Just Open
82+
83+
84+
"closed" ->
85+
Just Closed
86+
87+
88+
"progress" ->
89+
Just Progress
90+
91+
_ ->
92+
Nothing
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql
2+
-- https://github.com/dillonkearns/elm-graphql
3+
module Api.Enum.Task_to_note_column exposing (..)
4+
5+
import Json.Decode as Decode exposing (Decoder)
6+
7+
8+
{-| This enum contains a variant for each column in the table
9+
-}
10+
type Task_to_note_column
11+
= Rowid
12+
| Ulid
13+
| Task_ulid
14+
| Note
15+
list : List Task_to_note_column
16+
list =
17+
[Rowid, Ulid, Task_ulid, Note]
18+
decoder : Decoder Task_to_note_column
19+
decoder =
20+
Decode.string
21+
|> Decode.andThen
22+
(\string ->
23+
case string of
24+
"rowid" ->
25+
Decode.succeed Rowid
26+
27+
"ulid" ->
28+
Decode.succeed Ulid
29+
30+
"task_ulid" ->
31+
Decode.succeed Task_ulid
32+
33+
"note" ->
34+
Decode.succeed Note
35+
36+
_ ->
37+
Decode.fail ("Invalid Task_to_note_column type, " ++ string ++ " try re-running the @dillonkearns/elm-graphql CLI ")
38+
)
39+
40+
41+
{-| Convert from the union type representing the Enum to a string that the GraphQL server will recognize.
42+
-}
43+
toString : Task_to_note_column -> String
44+
toString enum____ =
45+
case enum____ of
46+
Rowid ->
47+
"rowid"
48+
49+
50+
Ulid ->
51+
"ulid"
52+
53+
54+
Task_ulid ->
55+
"task_ulid"
56+
57+
58+
Note ->
59+
"note"
60+
61+
62+
{-| Convert from a String representation to an elm representation enum.
63+
This is the inverse of the Enum `toString` function. So you can call `toString` and then convert back `fromString` safely.
64+
65+
Swapi.Enum.Episode.NewHope
66+
|> Swapi.Enum.Episode.toString
67+
|> Swapi.Enum.Episode.fromString
68+
== Just NewHope
69+
70+
This can be useful for generating Strings to use for <select> menus to check which item was selected.
71+
72+
-}
73+
fromString : String -> Maybe Task_to_note_column
74+
fromString enumString____ =
75+
case enumString____ of
76+
"rowid" ->
77+
Just Rowid
78+
79+
80+
"ulid" ->
81+
Just Ulid
82+
83+
84+
"task_ulid" ->
85+
Just Task_ulid
86+
87+
88+
"note" ->
89+
Just Note
90+
91+
_ ->
92+
Nothing

0 commit comments

Comments
 (0)