Commit Graph

1535 Commits

Author SHA1 Message Date
Dillon Kearns
661c84467b Remove unnecessary Request Parser helper. 2022-03-08 16:04:46 -08:00
Dillon Kearns
a93a530439 Rename Request.cookies -> allCookies. Add map5. 2022-03-08 15:34:59 -08:00
Dillon Kearns
cfd91b7b6d Update Request API, docs, and add a test suite. 2022-03-08 11:02:19 -08:00
Dillon Kearns
8911ef9bb3 Rename Server.Request.Request -> Server.Request.Parser. 2022-03-08 08:57:46 -08:00
Dillon Kearns
9f788d8aba Fix naming in end-to-end to use new route exposed top-level value. 2022-03-07 08:34:22 -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
b7f6c6cff8 Add page with route params to skeleton example. 2022-03-05 08:56:07 -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
0c469c225b Return headers for content.dat responses. 2022-03-04 20:45:03 -08:00
Dillon Kearns
e6488024a3 Add basic auth example. 2022-03-04 20:24:50 -08:00
Dillon Kearns
4b0316b396 Remove unused. 2022-03-04 12:41:45 -08:00
Dillon Kearns
6324eca506 Remove unused dependencies. 2022-03-04 12:41:33 -08:00
Dillon Kearns
29341dd90e Add elm-review unused config for skeleton project. 2022-03-04 12:40:18 -08:00
Dillon Kearns
1c0e2b9cbc Move files out of public for skeleton project. 2022-03-04 12:34:45 -08:00
Dillon Kearns
fb65fbbad9 Save skeleton app example. 2022-03-04 12:32:52 -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
8df43bcd71 Use pure Elm for parsing cookies header. 2022-03-04 10:43:32 -08:00
Dillon Kearns
5c77acc96c Add test case for Server.Request cookie API. 2022-03-04 10:07:35 -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
a0c378a1df Move final test cases to glob end-to-end test suite. 2022-03-04 09:37:00 -08:00
Dillon Kearns
bb81c49d0e Move test case to end-to-end suite. 2022-03-04 09:32:21 -08:00
Dillon Kearns
088dc59ec3 Move another test case to end-to-end suite. 2022-03-04 09:30:00 -08:00
Dillon Kearns
a937049993 Move test case to end-to-end suite. 2022-03-04 09:27:32 -08:00
Dillon Kearns
bfffe9e43b Move test case to end-to-end suite. 2022-03-04 09:12:06 -08:00
Dillon Kearns
2639d1333d Move test case. 2022-03-04 09:09:43 -08:00
Dillon Kearns
509535304e Remove duplicate test case. 2022-03-04 09:07:31 -08:00
Dillon Kearns
be20a6c9ee Remove duplicate test case. 2022-03-04 09:06:58 -08:00
Dillon Kearns
fb7f5fa1e9 Remove duplicate test case. 2022-03-04 09:06:10 -08:00
Dillon Kearns
8adac30f30 Move test case. 2022-03-04 09:05:35 -08:00
Dillon Kearns
0688e579dd Move test case. 2022-03-04 09:03:59 -08:00
Dillon Kearns
c6ddc0872c Move some test cases from old glob unit tests to new end-to-end tests. 2022-03-04 09:01:34 -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
f572ee7218 Run esbuild to compile ports file from build command. 2022-03-02 14:35:48 -08:00
Dillon Kearns
6a006cd9bc Add missing file for end-to-end test build. 2022-03-02 14:26:11 -08:00
Dillon Kearns
514a82b596 Move entrypoint files for build. 2022-03-02 10:51:18 -08:00
Dillon Kearns
8489f44a3d Use esbuild to transpile port-data-source file, and watch for changes. 2022-03-02 10:14:55 -08:00
Dillon Kearns
8a0eae997b Remove unused package. 2022-03-01 19:07:31 -08:00
Dillon Kearns
288dc1c266 Add Glob.toDataSourceWithOptions. 2022-03-01 15:46:10 -08:00
Dillon Kearns
121556f2ef Use html test runner for glob tests. 2022-02-28 17:45:16 -08:00
Dillon Kearns
ddff730b26 Add Glob.listDirectories. 2022-02-28 16:52:41 -08:00
Dillon Kearns
068f73c811 Extract glob test cases into a module. 2022-02-28 14:47:22 -08:00
Dillon Kearns
ace71d09ce Run glob test code directly through elm-pages so the test assertions can be against Elm data instead of JSON. 2022-02-28 14:43:57 -08:00
Dillon Kearns
81ab07897f Use micromatch to get glob captures to ensure that they match with the globby matching logic. 2022-02-27 11:27:49 -08:00
Dillon Kearns
ff9141d7ec Add some end-to-end glob specs. 2022-02-27 09:47:50 -08:00
Dillon Kearns
9ced0ccd2b Formatting. 2022-02-25 11:22:39 -08:00
Dillon Kearns
1c7ff8aa7c Fix 404 page message for non-matching routes. 2022-02-25 10:40:08 -08:00
Dillon Kearns
e082281b88 Update end-to-end example. 2022-02-25 10:04:19 -08:00
Dillon Kearns
a1609f5752 Add elm-review as dev dependency for pokedex example. 2022-02-25 09:05:22 -08:00
Dillon Kearns
0ca946421f Remove no-optional flag to fix cloudflare pages deploy issue with esbuild install. 2022-02-23 18:01:42 -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
a6a50b8300 See if vercel-build command works on vercel deployment. 2022-02-23 16:21:30 -08:00
Dillon Kearns
13caf7c8cb Extract out two stylesheets in docs site. 2022-02-23 13:43:29 -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
939635eec4 Remove hardcoded index.html project file. 2022-02-21 15:37:24 -08:00
Dillon Kearns
cd18fb7567 Update dependencies. 2022-02-21 14:25:10 -08:00
Dillon Kearns
e2e98405ec Update dependencies. 2022-02-21 14:23:17 -08:00
Dillon Kearns
8287623f23 Pass through root tag to HTML template replacement. 2022-02-21 09:57:23 -08:00
Dillon Kearns
8ee5b2a649 Add missing. (+2 squashed commits)
Squashed commits:
[ea4646e3] Fix two errors.
[31faf674] Add initial Vite SSR setup.
2022-02-21 09:30:31 -08:00
Dillon Kearns
79c7f6a75e Update intellij config file. 2022-02-21 09:30:08 -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
83dcf70b0e Support global head tags from API Routes so plugins can add head tags like sitemap and RSS links. 2022-02-14 11:05:42 -08:00
Dillon Kearns
a9e853e79e Install latest elm-optimize-level-2. 2022-02-13 14:59:41 -08:00
Dillon Kearns
64b2fbf20d Remove unused. 2022-02-13 12:42:50 -08:00
Dillon Kearns
b91f978d24 Move Page Modules and special elm-pages modules into app folder. 2022-02-10 16:27:56 -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
fedda39a4f Remove manifest from Site.elm and move it into user-space. 2022-02-09 10:47:59 -08:00
Dillon Kearns
e3883e669f Use fnv1a hashing instead of murmur3. 2022-02-06 13:36:17 -08:00
Dillon Kearns
a63eab2dd7 Update .idea config. 2022-02-06 09:57:31 -08:00
Dillon Kearns
df45d0af0b Keep cache for build step in docs. 2022-02-06 09:57:23 -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
364182e6ab Remove some unused dependencies. 2022-02-03 20:19:13 -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
0418d98de3 Update package-lock. 2022-02-01 10:55:46 -08:00
Dillon Kearns
91c87dd235 Add favicon to example. 2022-01-29 09:14:38 -08:00
Dillon Kearns
7339a980c2 Delete misplaced comment. 2022-01-28 16:15:56 -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
0ae2caaad8 Extract updated MarkdownCodec helper, and use the new HTML-free helper for Docs to fix Lamdera Wire encoding error. 2022-01-26 10:57:19 -08:00
Dillon Kearns
fe60b7c812 Don't encode HTML. 2022-01-26 10:53:29 -08:00
Dillon Kearns
cc81a4f2f3 Remove unused. 2022-01-26 10:45:43 -08:00
Dillon Kearns
b9c9b262fd Remove unused. 2022-01-26 10:45:32 -08:00
Dillon Kearns
2dd7394f07 Update docs app to use vanilla decoders. 2022-01-26 09:47:18 -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
Dillon Kearns
b6e45b7a14 Disable submit button when there are form errors. 2022-01-06 11:42:49 -08:00
Dillon Kearns
3522ed2b66 Apply capitalized validation to first and last names. 2022-01-06 11:01:53 -08:00
Dillon Kearns
6102412523 Apply input styling to email fields. 2022-01-06 11:01:38 -08:00
Dillon Kearns
edd678e403 Show client-validation errors coming back from server. 2022-01-06 09:48:06 -08:00
Dillon Kearns
e042393830 Add function to include client-side validation. 2022-01-06 09:44:46 -08:00
Dillon Kearns
e22d688920 Wire up Err for client-side validations. 2022-01-06 08:25:14 -08:00
Dillon Kearns
b855a20794 Update model state through FormMsg's. 2022-01-05 16:11:15 -08:00
Dillon Kearns
8887bbf97d Change Msg type, and wire up FormMsg. 2022-01-05 15:12:58 -08:00
Dillon Kearns
08138e7a26 Use () instead of Never for Msg's in stateless pages. That way, you can map Msg's (unlike never). 2022-01-05 14:09:37 -08:00
Dillon Kearns
ed814e54ee Replace min/max record fields with properties under the hood. 2022-01-05 11:48:33 -08:00
Dillon Kearns
a6508282d7 Add rating range field. 2022-01-05 11:40:35 -08:00
Dillon Kearns
1dd04db688 Delete commented reference code. 2022-01-05 11:36:16 -08:00
Dillon Kearns
7fe9168d10 Rename function. 2022-01-05 11:23:39 -08:00
Dillon Kearns
ae854e5742 Replace requiredText with more general required function. 2022-01-05 11:23:08 -08:00
Dillon Kearns
a018c48f5a Rename function. 2022-01-05 11:21:43 -08:00
Dillon Kearns
0f70795908 Add number input, required, and tel, url, email. 2022-01-05 09:27:18 -08:00
Dillon Kearns
2f4785d098 Delete commented code. 2022-01-05 08:08:55 -08:00
Dillon Kearns
d653c1ea49 Use enum mapping for radio. 2022-01-04 18:14:29 -08:00
Dillon Kearns
802d9ac538 Add radio button. 2022-01-04 17:55:37 -08:00
Dillon Kearns
af9ba5d099 Add push notifications section. 2022-01-04 16:20:44 -08:00
Dillon Kearns
0914f91bc7 Add checkbox input to tailwind form example. 2022-01-04 15:28:16 -08:00
Dillon Kearns
4d7203ad40 Add argument for default checked state on checkbox, and preserve checkbox state when repopulating form data. 2022-01-04 12:01:11 -08:00
Dillon Kearns
77778dcdf5 Add checkbox fields. 2022-01-04 11:47:57 -08:00
Dillon Kearns
d8ec3d735b Decode inputs into types. 2022-01-03 21:17:07 -08:00
Dillon Kearns
4a5d0814a9 Update form styling. 2022-01-03 19:26:41 -08:00
Dillon Kearns
1fde8588b0 Extract functions. 2022-01-03 14:26:04 -08:00
Dillon Kearns
1ae8d6096a Delete unused. 2022-01-03 14:12:53 -08:00
Dillon Kearns
0bfdc655ab Add wrap functions so sections of forms can be wrapped with views. 2022-01-03 14:07:36 -08:00
Dillon Kearns
98040342f7 Build tailwind modules in netlify. 2022-01-03 12:15:26 -08:00
Dillon Kearns
9968d796fb Add section heading. 2022-01-03 11:55:45 -08:00
Dillon Kearns
f2023a1b40 Update tailwind form example. 2022-01-03 11:14:39 -08:00
Dillon Kearns
0075c7eae8 Update tailwind setup and copy over raw form for reference. 2022-01-03 10:47:12 -08:00
Dillon Kearns
dda2f89cce Use plain HTML for vanilla form page. 2022-01-03 10:07:06 -08:00
Dillon Kearns
07bd8902d6 Make view type extensible, and add tailwind form example. 2022-01-03 10:04:42 -08:00
Dillon Kearns
5ab5881fc8 Update form API to include errors. 2022-01-03 08:43:00 -08:00
Dillon Kearns
580f845ded Make form views customizable. 2022-01-03 07:40:45 -08:00
Dillon Kearns
4ba0e99612 Preserve original values when there are validation errors. 2022-01-02 10:23:36 -08:00
Dillon Kearns
558cb98ff9 Add form server validations prototype. 2022-01-02 09:52:04 -08:00
Dillon Kearns
1165b73b61 Update form example. 2022-01-01 20:55:52 -08:00
Dillon Kearns
e4b1ba1b39 Update default user. 2022-01-01 18:35:36 -08:00
Dillon Kearns
8e2bdc68ed Add form API experiment. 2022-01-01 12:50:03 -08:00
Dillon Kearns
7b743cf72d Rename module. 2021-12-31 16:15:41 -08:00
Dillon Kearns
86142cb6d8 Remove obsolete server request code from initial prototype. 2021-12-31 11:52:37 -08:00
Dillon Kearns
78ee8d0117 Fix jsonError api route. 2021-12-31 11:17:12 -08:00
Dillon Kearns
3aae8c1adf Remove Handler type in favor of a type variable for ServerRequest type. 2021-12-31 11:14:23 -08:00
Dillon Kearns
bfbb5866f2 Capture multiple matching errors for server requests. 2021-12-30 19:55:45 -08:00
Dillon Kearns
68a4fc42c4 Add ServerRequest tests and remove obsolete expectFormField in favor of expectFormPost. 2021-12-30 11:43:10 -08:00
Dillon Kearns
8851ab402d Try reading relative to root of repo for netlify function. 2021-12-30 09:45:27 -08:00
Dillon Kearns
e9926979d3 Change included_files syntax. 2021-12-30 09:40:42 -08:00
Dillon Kearns
972c0ea9ce Move secret file to content/ folder. 2021-12-30 09:38:03 -08:00
Dillon Kearns
9e9eb26a02 Try different lamda file read root. 2021-12-30 09:31:24 -08:00
Dillon Kearns
d0d205bee4 Try new filename resolution for netlify function. 2021-12-30 09:27:20 -08:00
Dillon Kearns
2a90dc9d51 Try adding path.resolve for netlify file paths. 2021-12-29 21:57:35 -08:00
Dillon Kearns
cd86a91fe5 Try different included files syntax. 2021-12-29 21:52:09 -08:00
Dillon Kearns
5e10f199d2 Force build. 2021-12-29 21:47:40 -08:00
Dillon Kearns
9691832aa5 Try include files setup for serverless function file reads. 2021-12-29 21:43:40 -08:00
Dillon Kearns
a53dfb406e Remove local config from netlify config. 2021-12-29 21:42:42 -08:00
Dillon Kearns
8d26233d28 Force build. 2021-12-29 21:35:25 -08:00
Dillon Kearns
0ae28f004c Copy secret-note to server-render functions folder so it's available from serverless. 2021-12-29 21:22:56 -08:00
Dillon Kearns
5904902c47 Try adding secret-note file in functions folder. 2021-12-29 21:18:31 -08:00
Dillon Kearns
7b62788240 Force build. 2021-12-29 17:47:22 -08:00
Dillon Kearns
d13a397507 Use in-memory fs or real fs for http cache depending on whether context is serverless. 2021-12-29 17:18:37 -08:00
Dillon Kearns
7b85ef3a0b Add file upload page. 2021-12-29 15:57:04 -08:00
Dillon Kearns
f12b11ddb0 Check for base64 encoding in netlify adapter. 2021-12-29 14:25:46 -08:00
Dillon Kearns
4444ef6fc0 Update render result types and adapter script. 2021-12-29 13:58:21 -08:00
Dillon Kearns
243d4d9f0c Update adapter script and add some logging. 2021-12-29 13:37:47 -08:00
Dillon Kearns
f2ee856534 Add logs in adapter. 2021-12-29 13:28:20 -08:00
Dillon Kearns
13dca344c9 Fix adapter typo. 2021-12-29 13:28:14 -08:00
Dillon Kearns
c7ce19d14b Add missing await. 2021-12-29 13:21:49 -08:00
Dillon Kearns
ae690e4a58 Fix adapter script. 2021-12-29 13:19:08 -08:00
Dillon Kearns
0c8e4cc9d2 Delete incorrectly copy-pasted code from adapter script. 2021-12-29 13:15:13 -08:00
Dillon Kearns
2612159cde Recreate package-lock and remove obsolete npm i step in netlify. 2021-12-29 13:10:26 -08:00
Dillon Kearns
1f313d0cb8 Update package.json deps for netlify function (couldn't find cookie). 2021-12-29 13:07:55 -08:00
Dillon Kearns
b2c1a31c68 Handle multipart forms in dev server and adapter script. 2021-12-29 13:02:45 -08:00
Dillon Kearns
6534b10534 Add API for form posts, clean up Server.Request API and docs. 2021-12-29 07:58:40 -08:00
Dillon Kearns
bf98a76aed Add missing function in adapter. 2021-12-28 15:38:07 -08:00
Dillon Kearns
e4e20646c5 Fix cookie import. 2021-12-28 15:35:56 -08:00
Dillon Kearns
207518d6b8 Add cookie npm package to functions. 2021-12-28 12:03:41 -08:00
Dillon Kearns
b59bdf16c9 Install cookie dependency in pokedex project so it's available in netlify function. 2021-12-28 11:56:18 -08:00