Commit Graph

5143 Commits

Author SHA1 Message Date
Dillon Kearns
5a2545329e Use Scaffold namespace for generator modules. 2023-02-06 22:04:11 -08:00
Dillon Kearns
2fa6c41d72 Add more type information to Form.Context record in generator. 2023-02-06 20:54:19 -08:00
Dillon Kearns
bcaabe81d8 Extract some code in generator. 2023-02-06 20:36:32 -08:00
Dillon Kearns
11ea217b06 Remove import alias to avoid bug in elm-codegen generated code. 2023-02-06 19:29:43 -08:00
Dillon Kearns
e5e007741a Inline more helpers. 2023-02-06 18:23:56 -08:00
Dillon Kearns
3de46b4a99 Inline more helpers. 2023-02-06 18:15:09 -08:00
Dillon Kearns
e85a148da6 Inline helpers. 2023-02-06 15:13:46 -08:00
Dillon Kearns
915b21a501 Change options to better match Field API. 2023-02-06 14:49:03 -08:00
Dillon Kearns
8887770ecb Simplify scaffolding script. 2023-02-06 14:23:04 -08:00
Dillon Kearns
57a3ecf13f Parse module name into List in CLI options parser helper. 2023-02-06 14:17:28 -08:00
Dillon Kearns
17ed841d4b Extract the form rendering line from generator since it's a small amount of code and has customization opportunities. 2023-02-06 14:13:30 -08:00
Dillon Kearns
de0a9d9ac9 Use some import alias in script. 2023-02-06 14:01:29 -08:00
Dillon Kearns
21e38074c5 Rename AddForm to AddRoute now that they handle both cases. 2023-02-06 13:55:17 -08:00
Dillon Kearns
df7f275566 Move some helpers outside of form helper to make it more customizable. 2023-02-06 13:53:24 -08:00
Dillon Kearns
5aeade0daf Extract helper for module name CLI options parsing. 2023-02-06 12:07:41 -08:00
Dillon Kearns
da132b13f3 Extract more helpers from form generator helper. 2023-02-06 12:00:48 -08:00
Dillon Kearns
2977c467b1 Extract CLI parsing helper for form fields. 2023-02-06 11:19:14 -08:00
Dillon Kearns
b3689478d3 Extract some helpers for generating forms. 2023-02-06 10:53:20 -08:00
Dillon Kearns
ad3d68cc9b Use local artificial error API to avoid rate limit. 2023-02-06 09:52:59 -08:00
Dillon Kearns
c24d93d705 Review fix. 2023-02-06 09:07:04 -08:00
Dillon Kearns
65387dd21a Perform redirects from action responses in fetchers, and don't rerun data function on redirect from action. 2023-02-06 09:05:25 -08:00
Dillon Kearns
a3d9a26f4f Better exception handling for custom backend task error messages. 2023-02-06 08:28:37 -08:00
Dillon Kearns
b9a0aa2c6a Add basic auth helper module. 2023-02-06 08:27:55 -08:00
Dillon Kearns
d74e4360f4 Reuse type. 2023-02-05 17:45:57 -08:00
Dillon Kearns
8ee0c73ab5 Add deletePost definition. 2023-02-05 17:12:02 -08:00
Dillon Kearns
7f6f2c19e5 Change sort order. 2023-02-05 17:11:43 -08:00
Dillon Kearns
087a73e97f Update blog db seed file. 2023-02-05 17:08:38 -08:00
Dillon Kearns
202a8bf666 Remove unused imports. 2023-02-05 09:21:50 -08:00
Dillon Kearns
d140be0f73 Replace New route with Admin/Slug. 2023-02-04 17:21:03 -08:00
Dillon Kearns
b0d5a3c2e1 Render 404 page. 2023-02-04 13:08:54 -08:00
Dillon Kearns
4482820641 Update blog example. 2023-02-04 12:38:42 -08:00
Dillon Kearns
285f3022b2 Handle decoder failure case for custom backend tasks, and add decoders for JS Date type. 2023-02-04 12:38:22 -08:00
Dillon Kearns
ae28135a6c Update blog example scripts to use Html instead of Styled Html. 2023-02-04 08:22:31 -08:00
Dillon Kearns
48b92722e5 Update blog example. 2023-02-04 08:19:06 -08:00
Dillon Kearns
219e4b3a12 Add publish date. 2023-02-04 08:06:42 -08:00
Dillon Kearns
0cc4ffe0d3 Transform dates and undefined values in objects from custom backend task definitions to make them decodeable in Elm. 2023-02-04 08:06:35 -08:00
Dillon Kearns
2777b429a5 Add helper for optional initial values. 2023-02-04 08:02:54 -08:00
Dillon Kearns
4e9900779f Include AddRoute script in blog engine project. 2023-02-04 07:57:20 -08:00
Dillon Kearns
8c45376a22 Add post preview. 2023-02-03 10:49:03 -08:00
Dillon Kearns
2b409c6849 Add prisma setup for example. 2023-02-03 10:19:48 -08:00
Dillon Kearns
f08b0c3564 Render post titles in example 2023-02-03 10:19:38 -08:00
Dillon Kearns
49f6e14042 Use transitioning state in form route generator. 2023-02-03 10:19:15 -08:00
Dillon Kearns
a0cdc6858d Remove obsolete exposed value in demo. 2023-02-03 10:18:48 -08:00
Dillon Kearns
51f7a8dbd7 Update posts/new example. 2023-02-03 10:18:37 -08:00
Dillon Kearns
39db416e89 Add row and col options to textarea fields. 2023-02-03 10:18:02 -08:00
Dillon Kearns
18e2e43da3 Add initial setup for blog-engine example. 2023-02-02 11:07:57 -08:00
Dillon Kearns
433dc50429 Fix code generation for site with single route. 2023-02-02 10:20:50 -08:00
Dillon Kearns
fdd9a223dc Update starter scaffolding. 2023-02-01 12:07:04 -08:00
Dillon Kearns
98495df07e Use bool attribute server-side rendering fix (see https://github.com/elm-explorations/test/pull/212). 2023-02-01 08:28:44 -08:00
Dillon Kearns
737cb66903 Delete unused import. 2023-01-31 10:57:42 -08:00