Dillon Kearns
|
f33e5bac25
|
Use action for todos example.
|
2022-05-04 16:48:10 -07:00 |
|
Dillon Kearns
|
344ef2919a
|
Use action data in stateless form example.
|
2022-05-04 11:06:23 -07:00 |
|
Dillon Kearns
|
62c6e62922
|
Wire up initial action data to init and view.
|
2022-05-04 09:59:18 -07:00 |
|
Dillon Kearns
|
fa10ce7eaf
|
Generate fetcher modules
|
2022-05-03 14:36:08 -07:00 |
|
Dillon Kearns
|
ad8e7b9456
|
Expose ActionData types.
|
2022-05-03 11:51:32 -07:00 |
|
Dillon Kearns
|
5a664782cd
|
Initial prototype of ActionData.
|
2022-05-03 11:30:52 -07:00 |
|
Dillon Kearns
|
0dac6a0916
|
Check for errors in initial flash message in tailwind page.
|
2022-04-28 11:37:23 -07:00 |
|
Dillon Kearns
|
2456c00b3d
|
Remove unused argument.
|
2022-04-28 10:47:11 -07:00 |
|
Dillon Kearns
|
2af25473df
|
Remove unused imports.
|
2022-04-28 09:40:16 -07:00 |
|
Dillon Kearns
|
5ca486c69c
|
Rename function.
|
2022-04-28 09:30:52 -07:00 |
|
Dillon Kearns
|
eae27223a3
|
Rename function.
|
2022-04-28 09:28:25 -07:00 |
|
Dillon Kearns
|
32b536f78a
|
Use two separate functions for stateless and stateful form rendering.
|
2022-04-28 09:07:32 -07:00 |
|
Dillon Kearns
|
e29926e2c3
|
Pass in submit Effect to form API.
|
2022-04-27 10:11:33 -07:00 |
|
Dillon Kearns
|
cfd78682fa
|
Add submit Cmd in Effect.perform.
|
2022-04-27 09:05:48 -07:00 |
|
Dillon Kearns
|
298faed45c
|
Remove redundant form function for toHtml.
|
2022-04-25 14:44:51 -07:00 |
|
Dillon Kearns
|
e04310b603
|
Pass in optional Form.Msg to userMsg function, and don't register event handlers if not present.
|
2022-04-25 14:42:38 -07:00 |
|
Dillon Kearns
|
4111d4e677
|
Rename function.
|
2022-04-25 09:54:08 -07:00 |
|
Dillon Kearns
|
0adfa12bc8
|
Remove repetitive function from Form API.
|
2022-04-25 09:53:18 -07:00 |
|
Dillon Kearns
|
e6c65bbdf2
|
Try require from elm-pages package from serverless functions.
|
2022-04-12 11:52:12 -07:00 |
|
Dillon Kearns
|
8ad0118c4e
|
Show in-progress style for delete todo item in example.
|
2022-04-09 21:23:21 -07:00 |
|
Dillon Kearns
|
52c8a73485
|
Add redirectTo helper.
|
2022-04-06 16:38:32 -07:00 |
|
Dillon Kearns
|
911270bb40
|
Pass in htmlTemplate to adapter to avoid having to read the file manually.
|
2022-04-06 08:54:23 -07:00 |
|
Dillon Kearns
|
af2e2e10f7
|
Force build.
|
2022-04-05 15:53:12 -07:00 |
|
Dillon Kearns
|
4aac1a64d1
|
Force build.
|
2022-04-05 09:05:26 -07:00 |
|
Dillon Kearns
|
8112e477e8
|
Extract functions into record.
|
2022-04-05 08:26:26 -07:00 |
|
Dillon Kearns
|
de6174e435
|
Optimize imports.
|
2022-04-04 16:07:51 -07:00 |
|
Dillon Kearns
|
4ab29c6b0f
|
Rename.
|
2022-04-04 14:45:14 -07:00 |
|
Dillon Kearns
|
fc62058f63
|
Pass in fetchRouteData to perform.
|
2022-04-04 09:40:37 -07:00 |
|
Dillon Kearns
|
5c7833966d
|
Try new 404 generator setup.
|
2022-03-31 16:30:57 -07:00 |
|
Dillon Kearns
|
5536591ea0
|
Add a navbar.
|
2022-03-31 11:04:05 -07:00 |
|
Dillon Kearns
|
5eafcb8998
|
Use correct ErrorPage type in init, and update the pokedex error pages.
|
2022-03-31 11:01:47 -07:00 |
|
Dillon Kearns
|
175417a7cc
|
Wire up hardcoded error page state.
|
2022-03-31 10:46:39 -07:00 |
|
Dillon Kearns
|
1718c051e4
|
Update package-lock.
|
2022-03-31 09:52:00 -07:00 |
|
Dillon Kearns
|
c8ff9e0ca1
|
Try optimized build.
|
2022-03-31 09:51:12 -07:00 |
|
Dillon Kearns
|
ab8a8a4f3c
|
Remove Debug statements.
|
2022-03-31 09:50:45 -07:00 |
|
Dillon Kearns
|
807266701a
|
Force build.
|
2022-03-31 09:27:18 -07:00 |
|
Dillon Kearns
|
07fd572c46
|
Wire up head in ErrorPage.
|
2022-03-31 09:18:02 -07:00 |
|
Dillon Kearns
|
40ffea6ce9
|
Render error pages with Shared.view.
|
2022-03-31 09:04:11 -07:00 |
|
Dillon Kearns
|
f739f70706
|
Change argument order for Route.link helper.
|
2022-03-31 08:25:43 -07:00 |
|
Dillon Kearns
|
34f428f1df
|
Add proof of concept for error pages.
|
2022-03-29 11:48:04 -07:00 |
|
Dillon Kearns
|
9c3c477ec4
|
Update pokedex example.
|
2022-03-28 15:11:07 -07:00 |
|
Dillon Kearns
|
06decb5d28
|
Update package-lock.
|
2022-03-11 11:12:15 -08:00 |
|
Dillon Kearns
|
ddcea02130
|
Remove resolved todo comment.
|
2022-03-11 11:11:50 -08:00 |
|
Dillon Kearns
|
25972e5724
|
Run adapter script from build step (if configured).
|
2022-03-10 11:49:07 -08:00 |
|
Dillon Kearns
|
661c84467b
|
Remove unnecessary Request Parser helper.
|
2022-03-08 16:04:46 -08:00 |
|
Dillon Kearns
|
8911ef9bb3
|
Rename Server.Request.Request -> Server.Request.Parser.
|
2022-03-08 08:57:46 -08:00 |
|
Dillon Kearns
|
8acabc3281
|
Simplify Response API to use builder pattern for different ways to construct a body and remove redundant permutations.
|
2022-03-07 08:33:03 -08:00 |
|
Dillon Kearns
|
b7495d73bb
|
Change exported value from page -> route from Route Modules.
|
2022-03-05 10:35:17 -08:00 |
|
Dillon Kearns
|
f16a30320d
|
Rename Page.elm -> RouteBuilder.elm.
|
2022-03-05 09:50:01 -08:00 |
|
Dillon Kearns
|
0310152df4
|
Change Page.* modules to be Route.* modules.
|
2022-03-05 09:05:12 -08:00 |
|
Dillon Kearns
|
020e870883
|
Simplify basic auth example.
|
2022-03-05 08:48:46 -08:00 |
|
Dillon Kearns
|
2ed0ab08bc
|
Add basic auth example to pokedex deployment.
|
2022-03-05 08:44:45 -08:00 |
|
Dillon Kearns
|
b1af39c851
|
Remove unused NPM package.
|
2022-03-04 10:47:31 -08:00 |
|
Dillon Kearns
|
027945ddc6
|
Remove obsolete parsed cookies in adapter (cookie parsing is now handled in pure Elm).
|
2022-03-04 10:45:06 -08:00 |
|
Dillon Kearns
|
ac8f57b145
|
Rename function.
|
2022-03-04 09:43:48 -08:00 |
|
Dillon Kearns
|
12c0013ea3
|
Remove obsolete values from Session API experiments.
|
2022-03-04 09:42:52 -08:00 |
|
Dillon Kearns
|
5c983e5334
|
Include port-data-source file in serverless function output, and include example in netlify project.
|
2022-03-03 09:29:50 -08:00 |
|
Dillon Kearns
|
6197b9a634
|
Update adapter script.
|
2022-03-03 08:52:33 -08:00 |
|
Dillon Kearns
|
2a90fc62ba
|
Trigger build.
|
2022-03-03 08:06:32 -08:00 |
|
Dillon Kearns
|
a1609f5752
|
Add elm-review as dev dependency for pokedex example.
|
2022-02-25 09:05:22 -08:00 |
|
Dillon Kearns
|
2edb61cb74
|
Reinstall dependencies and remove npm i -f flag to try on cloudflare pages.
|
2022-02-23 17:25:01 -08:00 |
|
Dillon Kearns
|
e6a81a56e9
|
Change argument order in helper function.
|
2022-02-23 10:41:04 -08:00 |
|
Dillon Kearns
|
c617baa3d3
|
Use vite config from elm-pages.config.mjs.
|
2022-02-23 10:06:15 -08:00 |
|
Dillon Kearns
|
1ae88f181a
|
Use node-fetch instead of undici for Node 14 compatability.
|
2022-02-22 11:37:09 -08:00 |
|
Dillon Kearns
|
846ddad4f9
|
Add missing return.
|
2022-02-22 10:55:20 -08:00 |
|
Dillon Kearns
|
93a44b6c78
|
Add error logging to debug netlify issue.
|
2022-02-21 18:16:16 -08:00 |
|
Dillon Kearns
|
797d3edb84
|
Update package-lock file in pokedex example.
|
2022-02-21 17:38:25 -08:00 |
|
Dillon Kearns
|
12c00b7565
|
Update adapter script error message and template file location.
|
2022-02-21 17:01:01 -08:00 |
|
Dillon Kearns
|
ff71b62321
|
Try using vite-generated HTML template in adapter-generated scripts.
|
2022-02-21 16:54:51 -08:00 |
|
Dillon Kearns
|
64c983c3ec
|
Move entrypoint files to top-level in pokedex project.
|
2022-02-21 15:51:16 -08:00 |
|
Dillon Kearns
|
e793a8fe89
|
Ensure that fixes don't infinitely apply for Request.oneOf [] case.
|
2022-02-21 15:50:17 -08:00 |
|
Dillon Kearns
|
fbcbfa3c27
|
Add optional body parameter to reload page data port in order to avoid an extra round trip for form POST.
|
2022-02-17 11:52:21 -08:00 |
|
Dillon Kearns
|
094e905dd5
|
Update pokedex example for latest file structure with app/ folder.
|
2022-02-16 16:54:52 -08:00 |
|
Dillon Kearns
|
de2650e357
|
Remove old invocation of port://env.
|
2022-02-10 10:10:26 -08:00 |
|
Dillon Kearns
|
08540c52a0
|
Update pokedex example.
|
2022-02-10 09:55:20 -08:00 |
|
Dillon Kearns
|
094f46d5f7
|
Try base64 encoding responses in Netlify functions.
|
2022-02-04 11:17:44 -08:00 |
|
Dillon Kearns
|
51bc07f2c5
|
Formatting.
|
2022-02-04 11:08:21 -08:00 |
|
Dillon Kearns
|
26bf9e3171
|
Update adapter script to return bytes responses for content.dat.
|
2022-02-04 11:07:24 -08:00 |
|
Dillon Kearns
|
69cdf963cf
|
Remove some instances of content.json.
|
2022-02-03 20:08:45 -08:00 |
|
Dillon Kearns
|
82dea47a89
|
Update package-lock.
|
2022-02-03 11:20:56 -08:00 |
|
Dillon Kearns
|
91c87dd235
|
Add favicon to example.
|
2022-01-29 09:14:38 -08:00 |
|
Dillon Kearns
|
a7f2fa7eda
|
Remove obsolete unoptimizedRequest function.
|
2022-01-28 09:42:52 -08:00 |
|
Dillon Kearns
|
406c0cafd8
|
Rename function.
|
2022-01-28 09:34:11 -08:00 |
|
Dillon Kearns
|
6f7894fd3f
|
Rename module.
|
2022-01-28 09:27:43 -08:00 |
|
Dillon Kearns
|
f9c85dec80
|
Remove more obsolete secrets code.
|
2022-01-27 15:52:42 -08:00 |
|
Dillon Kearns
|
ed956ae341
|
Remove now obsolete Secrets API!
|
2022-01-27 15:45:51 -08:00 |
|
Dillon Kearns
|
fdf14a70dc
|
Try hardcoding path for now.
|
2022-01-26 14:59:16 -08:00 |
|
Dillon Kearns
|
11ff7e1afb
|
Try downloading lamdera in current dir.
|
2022-01-26 14:56:08 -08:00 |
|
Dillon Kearns
|
19a5426d90
|
Try different download path.
|
2022-01-26 14:51:06 -08:00 |
|
Dillon Kearns
|
e76dbfd700
|
Try different file path for lamdera download.
|
2022-01-26 14:48:06 -08:00 |
|
Dillon Kearns
|
6b4f505832
|
Try another command to install lamdera on netlify build.
|
2022-01-26 14:45:26 -08:00 |
|
Dillon Kearns
|
7497934772
|
Merge branch 'lamdera-wire' into serverless-latest
# Conflicts:
# examples/pokedex/netlify.toml
# examples/pokedex/src/Api.elm
# examples/pokedex/src/Page/Greet.elm
# examples/pokedex/src/Page/Login.elm
# src/Session.elm
|
2022-01-26 14:32:39 -08:00 |
|
Dillon Kearns
|
119f989d93
|
Add commands to install lamdera to netlify build command.
|
2022-01-26 14:28:12 -08:00 |
|
Dillon Kearns
|
8229547cb7
|
Only use Bytes encoded responses, and delete StripResponse logic which is now obsolete.
|
2022-01-26 09:01:05 -08:00 |
|
Dillon Kearns
|
3e9a93c636
|
Generate distillBytes with wire codecs for all page modules.
|
2022-01-25 21:56:02 -08:00 |
|
Dillon Kearns
|
afb7470cb1
|
Extract functions.
|
2022-01-25 18:26:46 -08:00 |
|
Dillon Kearns
|
d779ed15d2
|
Add missing lamdera dependencies.
|
2022-01-25 18:22:16 -08:00 |
|
Dillon Kearns
|
5342859ecd
|
Use page reload port to reload data without refresh in todo example.
|
2022-01-25 11:20:34 -08:00 |
|
Dillon Kearns
|
359b3e92c5
|
Add todos example.
|
2022-01-24 20:55:07 -08:00 |
|
Dillon Kearns
|
d4eb37f8ac
|
Add Fauna request helper module.
|
2022-01-24 20:45:32 -08:00 |
|
Dillon Kearns
|
f21b8b61b1
|
Add form data decoder and example.
|
2022-01-24 15:50:25 -08:00 |
|
Dillon Kearns
|
83945541d7
|
Add fauna todo list GraphQL schema.
|
2022-01-24 15:38:14 -08:00 |
|
Dillon Kearns
|
c207626a14
|
Install elm-graphql.
|
2022-01-24 15:37:53 -08:00 |
|
Dillon Kearns
|
b0cab3cc7d
|
Use cookie session for logout route.
|
2022-01-23 13:42:50 -08:00 |
|
Dillon Kearns
|
1becbff897
|
Wire through errors with session checksums.
|
2022-01-23 13:35:04 -08:00 |
|
Dillon Kearns
|
7d1f675a90
|
Add some session helpers.
|
2022-01-23 13:01:04 -08:00 |
|
Dillon Kearns
|
aff8b1f850
|
Update Session API to pass through existing Session.
|
2022-01-23 10:43:06 -08:00 |
|
Dillon Kearns
|
d0bfc03d16
|
Return Nothing if there is no session.
|
2022-01-22 17:56:20 -08:00 |
|
Dillon Kearns
|
9bcba71c3a
|
Extract session helper.
|
2022-01-22 14:40:04 -08:00 |
|
Dillon Kearns
|
d7eca2ee4b
|
Use String instead of Json.Decode.Value for session values. Add flash helpers.
|
2022-01-22 13:47:51 -08:00 |
|
Dillon Kearns
|
05457709ae
|
Update session decoders in example.
|
2022-01-21 11:13:36 -08:00 |
|
Dillon Kearns
|
69feca1c42
|
Add distillBytes with some lamdera wire encoder/decoders.
|
2022-01-21 09:31:18 -08:00 |
|
Dillon Kearns
|
e29c4204a5
|
Use withSession helper for managing login.
|
2022-01-20 21:34:33 -08:00 |
|
Dillon Kearns
|
aa4086837f
|
Change argument type for withSession to remove extra wrapper layer.
|
2022-01-20 20:01:07 -08:00 |
|
Dillon Kearns
|
c900b8662b
|
Extract function.
|
2022-01-20 19:52:18 -08:00 |
|
Dillon Kearns
|
9b1f486a1b
|
Don't use secret in example for now.
|
2022-01-20 19:24:55 -08:00 |
|
Dillon Kearns
|
a353a79e49
|
Use newer node version.
|
2022-01-20 19:20:15 -08:00 |
|
Dillon Kearns
|
08e635cbeb
|
Try all secrets in list for decoding signed cookies.
|
2022-01-20 19:09:37 -08:00 |
|
Dillon Kearns
|
b7185adc39
|
Add example page.
|
2022-01-20 18:01:07 -08:00 |
|
Dillon Kearns
|
30ab850c90
|
Add prototype for withSession helper.
|
2022-01-20 18:00:38 -08:00 |
|
Dillon Kearns
|
d062546d0c
|
Add withSetCookieHeader.
|
2022-01-18 18:45:03 -08:00 |
|
Dillon Kearns
|
d44da4ee85
|
Remove example.
|
2022-01-18 18:44:54 -08:00 |
|
Dillon Kearns
|
51aea3b539
|
Simplify Server.Response API by combining render repsonses and server responses into the same API.
|
2022-01-17 20:56:37 -08:00 |
|
Dillon Kearns
|
03dd16a86f
|
Wire through custom headers and status codes for RenderPage server responses.
|
2022-01-17 16:56:40 -08:00 |
|
Dillon Kearns
|
c27377c8f7
|
Use dynamic route segments with different names by appending index.
|
2022-01-17 11:46:40 -08:00 |
|
Dillon Kearns
|
22b3b54799
|
Use phantom types to reduce the number of cominations of functions for setting values with different types.
|
2022-01-16 15:29:06 -08:00 |
|
Dillon Kearns
|
a769a3e569
|
Fix tests.
|
2022-01-15 19:29:30 -08:00 |
|
Dillon Kearns
|
5b06fe51a4
|
Replace requiredRadio with radio that can apply required option.
|
2022-01-15 18:44:06 -08:00 |
|
Dillon Kearns
|
69e8fc92f4
|
Use phantom builder for required checks.
|
2022-01-15 18:28:47 -08:00 |
|
Dillon Kearns
|
00c62a9e96
|
Include form-level errors in server-rendered response.
|
2022-01-15 15:02:32 -08:00 |
|
Dillon Kearns
|
6b7c4586c9
|
Run field-level errors and form-level errors independently to avoid duplicates but get them in real-time.
|
2022-01-15 09:06:19 -08:00 |
|
Dillon Kearns
|
9c922c8f40
|
Run field-level validations on field change. Preparing for change to store dependent validation results separately so they can be updated independently.
|
2022-01-14 15:28:17 -08:00 |
|
Dillon Kearns
|
ff79f79d8f
|
Make field required.
|
2022-01-14 15:25:42 -08:00 |
|
Dillon Kearns
|
84e7d9d157
|
Use user-defined errors instead of a set list of validation errors.
|
2022-01-14 08:46:35 -08:00 |
|
Dillon Kearns
|
1ac1c9d73e
|
Abstract helper for submitHandlers.
|
2022-01-13 17:17:52 -08:00 |
|
Dillon Kearns
|
b8e7a47e34
|
Give multiple errors for non-fatal validation errors.
|
2022-01-13 14:18:53 -08:00 |
|
Dillon Kearns
|
90d6bc821d
|
Add ability to do dependent validations looking at entire form value.
|
2022-01-13 09:06:58 -08:00 |
|
Dillon Kearns
|
fe7b1c5209
|
Add input type to form style.
|
2022-01-12 17:07:21 -08:00 |
|
Dillon Kearns
|
92098ac972
|
Set field state on blur, focus, and input.
|
2022-01-11 09:00:58 -08:00 |
|
Dillon Kearns
|
c2b53e513a
|
Scroll to top on success, and change debug info styling.
|
2022-01-10 19:34:26 -08:00 |
|
Dillon Kearns
|
9438e50add
|
Handle required fields for checkboxes.
|
2022-01-10 19:01:47 -08:00 |
|
Dillon Kearns
|
95eff70f02
|
Run validations on init. Make Int and Float ranges.
|
2022-01-10 18:35:46 -08:00 |
|
Dillon Kearns
|
1e72283296
|
Don't submit form when there are validation errors. Include submitStatus for renderers.
|
2022-01-10 16:33:29 -08:00 |
|
Dillon Kearns
|
647a18cf28
|
Show errors for radio inputs, and add required radio builder.
|
2022-01-10 12:38:49 -08:00 |
|
Dillon Kearns
|
e8a8de56f6
|
Handle required vs. optional dates.
|
2022-01-10 12:25:35 -08:00 |
|
Dillon Kearns
|
34df6c16c3
|
Use custom type for form errors.
|
2022-01-10 12:02:56 -08:00 |
|
Dillon Kearns
|
b82aa41416
|
Handle elm/http submit from Form API.
|
2022-01-10 11:38:25 -08:00 |
|
Dillon Kearns
|
9be4926d34
|
Use record for Form model in preparation for adding more state.
|
2022-01-10 10:34:20 -08:00 |
|
Dillon Kearns
|
80171b84f8
|
Set default values in form dict on init.
|
2022-01-10 10:14:02 -08:00 |
|
Dillon Kearns
|
fd905da1da
|
Add function to submit form with elm/http request.
|
2022-01-07 15:08:43 -08:00 |
|