Commit Graph

113 Commits

Author SHA1 Message Date
Dillon Kearns
bda07df399 Don't use unexposed function in generated Main.elm module. 2023-03-05 11:07:29 -08:00
Dillon Kearns
ecf2dc897c Remove QueryParams parser in favor of a plain Dict String (List String). 2023-03-03 10:02:51 -08:00
Dillon Kearns
e19b547808 Remove PageUrl argument and rename RouteBuilder.StaticPayload -> RouteBuilder.App. 2023-03-02 11:36:34 -08:00
Dillon Kearns
db2b9ccb9a Fix glitch in generated code from Sub import. 2023-02-28 16:54:11 -08:00
Dillon Kearns
c53c09aa31 Move Pages.Msg -> PagesMsg and Pages.Msg.Msg -> PagesMsg.PagesMsg. 2023-02-28 15:45:59 -08:00
Dillon Kearns
c418b536c0 Move Pages.Msg.Msg variants to internals, expose more high-level public API. 2023-02-28 15:33:48 -08:00
Dillon Kearns
433dc50429 Fix code generation for site with single route. 2023-02-02 10:20:50 -08:00
Dillon Kearns
9600de126b Convert to ESM. 2023-01-22 09:33:32 -08:00
Dillon Kearns
60afaee624 Rename Exception -> RecoverableError. 2023-01-16 17:48:46 -08:00
Dillon Kearns
7f23779816 Rename DataSource -> BackendTask. 2023-01-01 14:45:54 -08:00
Dillon Kearns
c982947c7d Make Throwable/Catchable exceptions. 2022-12-28 18:45:49 -07:00
Dillon Kearns
d78a3ca91d Add initial prototype for error type variable in DataSources. 2022-12-26 10:53:06 -07:00
Dillon Kearns
6bfd23ff02 Pass in reference to request payload directly instead of going through Http DataSource. 2022-12-16 19:41:57 -08:00
Dillon Kearns
6a06767120 Include optional parameter for htmlToString configuration. 2022-10-29 19:38:19 +05:30
Dillon Kearns
5f8367478d Add some additional types in generated code. 2022-10-17 14:48:01 -07:00
Dillon Kearns
b52fa21c3f Update type annotations in generated code. 2022-10-15 11:56:30 -07:00
Dillon Kearns
8ff1f21754 Change document's body to List of Html instead of a single element. 2022-10-05 12:40:06 -07:00
Dillon Kearns
630e458b0e Build elm-pages-codegen.js compiled code for generator in bundle. 2022-10-04 14:28:00 -07:00
Dillon Kearns
34e856b404 Fix type signature in generated code. 2022-10-03 14:48:50 -07:00
Dillon Kearns
381b5844f5 Move some code back to package instead of copied code. 2022-10-03 14:38:54 -07:00
Dillon Kearns
0d0edd7030 Fix casing in dev server error message. 2022-09-26 16:11:04 -07:00
Dillon Kearns
bfd5ed49c8 Use some helpers. 2022-09-23 15:20:19 -07:00
Dillon Kearns
77f6568e4a Use helper. 2022-09-23 14:51:15 -07:00
Dillon Kearns
762102e74f Merge two branches into one with Elm.Pattern. 2022-09-23 14:49:14 -07:00
Dillon Kearns
10e4e7e191 Use and extract more helper functions. 2022-09-23 14:24:45 -07:00
Dillon Kearns
4bb9b5d327 Use more helper functions. 2022-09-23 14:19:19 -07:00
Dillon Kearns
57b2e3116c Use helper function. 2022-09-23 14:14:41 -07:00
Dillon Kearns
f4a1417425 Remove final todos from elm-codegen migration. 2022-09-23 13:46:02 -07:00
Dillon Kearns
72f1da671a Add workaround for missing import. 2022-09-23 10:39:43 -07:00
Dillon Kearns
57bfade238 Update codegen branch. 2022-09-23 10:39:32 -07:00
Dillon Kearns
2164ece531 Migrate more code generation. 2022-09-22 16:50:39 -07:00
Dillon Kearns
d7001dbc9f Migrate more view code. 2022-09-22 13:00:22 -07:00
Dillon Kearns
73d7dbb359 Migrate more view generation code. 2022-09-22 12:26:57 -07:00
Dillon Kearns
7dfa06ceb0 Rename function. 2022-09-22 08:37:46 -07:00
Dillon Kearns
79a4782a2f Migrate more view generation code. 2022-09-22 08:34:44 -07:00
Dillon Kearns
f26986851a Add view function generation starting point. 2022-09-22 07:14:32 -07:00
Dillon Kearns
e895377c4a Migrate more codegen. 2022-09-21 17:05:03 -07:00
Dillon Kearns
ae566b3b9f Migrate more code. 2022-09-21 16:59:28 -07:00
Dillon Kearns
fd1247a063 Fill in a todo in codegen. 2022-09-21 10:53:13 -07:00
Dillon Kearns
08d3195db3 Migrate another branch to elm-codegen. 2022-09-21 10:42:33 -07:00
Dillon Kearns
8b28efa6bc Add another branch of codegen. 2022-09-21 09:46:17 -07:00
Dillon Kearns
3b0c1952a1 Implement codegen for another branch. 2022-09-21 09:36:53 -07:00
Dillon Kearns
21e371c80c Use new .value helpers. 2022-09-21 09:14:53 -07:00
Dillon Kearns
3708ec261d Update codegen branch and add more code for generating update function. 2022-09-21 09:11:36 -07:00
Dillon Kearns
e01c437eb3 Wire in vendored elm-codegen package. 2022-09-20 13:22:28 -07:00
Dillon Kearns
1488dabca6 Add git submodule for vendoring elm-codegen. 2022-09-20 13:18:02 -07:00
Dillon Kearns
61d79b354b Add initial wiring for update. 2022-09-20 13:17:06 -07:00
Dillon Kearns
2f6650d904 Wire up elm-codegen init function. 2022-09-19 18:58:47 -07:00
Dillon Kearns
abdd4e7d37 Generate onActionData. 2022-09-19 18:24:47 -07:00
Dillon Kearns
fc1582e24b Migrate codegen for action function. 2022-09-17 19:50:55 -07:00