Commit Graph

3259 Commits

Author SHA1 Message Date
Dillon Kearns
077809768a Extract eagerLoad helper in ContentCache. 2022-01-24 19:38:53 -08:00
Dillon Kearns
0cd9a56675 Add quotes around field name in error message. 2022-01-24 19:09:46 -08:00
Dillon Kearns
f21b8b61b1 Add form data decoder and example. 2022-01-24 15:50:25 -08:00
Dillon Kearns
2d22f73aa8 Fix tests. 2022-01-24 15:43:37 -08:00
Dillon Kearns
d477687f18 Add test case. 2022-01-24 15:43:05 -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
ff44e2757b Allow formData in request tests. 2022-01-23 20:05:05 -08:00
Dillon Kearns
49134ef818 Allow initial String values for hidden fields. 2022-01-23 20:03:09 -08:00
Dillon Kearns
1675b1bebb Fix check for validation errors in Form API. 2022-01-23 20:02:16 -08:00
Dillon Kearns
78cc936272 Fix tests. 2022-01-23 19:30:48 -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
574f6711df Extract function. 2022-01-23 12:53:22 -08:00
Dillon Kearns
dd47359bee Inline variable. 2022-01-23 12:51:03 -08:00
Dillon Kearns
791e1c5622 Rename param. 2022-01-23 12:50:36 -08:00
Dillon Kearns
4d9d5cd786 Extract function. 2022-01-23 12:50:15 -08:00
Dillon Kearns
9262e82938 Remove unused data source lookups. 2022-01-23 12:24:45 -08:00
Dillon Kearns
aff8b1f850 Update Session API to pass through existing Session. 2022-01-23 10:43:06 -08:00
Dillon Kearns
c42075fad9 Add Session.get. 2022-01-23 10:19:10 -08:00
Dillon Kearns
faefaf5a1f Add Session type. 2022-01-23 10:17:36 -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
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
ea5be72234 Update generator. 2022-01-17 20:59:17 -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
de3a740165 Add float input type, and handle validation errors for int and float inputs. 2022-01-17 10:32:08 -08:00
Dillon Kearns
df1c537f70 Rename number -> int in preparation for adding a separate float helper. 2022-01-17 10:05:00 -08:00
Dillon Kearns
80c85a1abe Run min/max validations against range input in pure Elm to ensure that UI isn't bypassed. 2022-01-17 09:56:20 -08:00
Dillon Kearns
cd6d65a12a Update docs. 2022-01-16 15:38:51 -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
43a227d22c Add Form.Value module. 2022-01-16 14:31:19 -08:00
Dillon Kearns
d5478db009 Add time input. 2022-01-16 14:31:08 -08:00
Dillon Kearns
a769a3e569 Fix tests. 2022-01-15 19:29:30 -08:00
Dillon Kearns
6de253d91e Add constraints to only allow formatting input options to be applied to text inputs. 2022-01-15 19:03:13 -08:00
Dillon Kearns
4e78fceaef Regenerate docs.json. 2022-01-15 18:45:15 -08:00