Commit Graph

1142 Commits

Author SHA1 Message Date
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
Dillon Kearns
0ac78944ce Update adapter. 2021-12-28 11:53:43 -08:00
Dillon Kearns
572f6f2336 Add greet api function. 2021-12-28 11:53:33 -08:00
Dillon Kearns
5136dd50a6 Use Server.Request for ApiRoutes. 2021-12-28 08:32:25 -08:00
Dillon Kearns
d30dda3684 Add netlify every color example routes. 2021-12-27 14:22:59 -08:00
Dillon Kearns
10bbeb491d Use more declarative interface for Server Requests. 2021-12-26 21:56:33 -08:00
Dillon Kearns
99b35546cf Add starting point for SetCookie API. 2021-12-23 19:25:51 -08:00
Dillon Kearns
6dddcf96d0 Update ApiRoute naming for consistency with Page.elm. 2021-12-23 15:01:38 -08:00
Dillon Kearns
a3746229a7 Remove obsolete body fields for docs project ApiRoutes. 2021-12-23 13:48:06 -08:00
Dillon Kearns
1142b896b5 Add missing dependency in example. 2021-12-23 13:47:40 -08:00
Dillon Kearns
165ec1a200 Fix typo. 2021-12-23 13:47:25 -08:00
Dillon Kearns
6f82aa59f8 Add ServerRequest.withRequestTime, and make body nullable. 2021-12-23 13:34:54 -08:00
Dillon Kearns
4fedf9ee19 Rename prerender -> preRender. 2021-12-23 13:34:19 -08:00
Dillon Kearns
afb81f7224 Replace handleFallback with PageServerResponse for prerenderWithFallback. 2021-12-23 11:14:46 -08:00
Dillon Kearns
362477d6a0 Use new netlify URL to access latest builders (see https://www.netlify.com/blog/2021/10/25/faster-more-reliable-page-loads-with-update-to-on-demand-builders/). 2021-12-23 10:53:43 -08:00
Dillon Kearns
42f38cbe39 Use new ServerRequest helpers in login page. 2021-12-22 21:29:57 -08:00
Dillon Kearns
a8f801d2ca Add logout button on greet page. 2021-12-22 21:29:26 -08:00
Dillon Kearns
146240c3dd Add logout endpoint. 2021-12-22 21:29:10 -08:00
Dillon Kearns
eae2fb2065 Add greet page and login page. 2021-12-22 15:28:51 -08:00
Dillon Kearns
71d3688dfb Use temporary redirect in example redirect route. 2021-12-22 15:28:39 -08:00
Dillon Kearns
f43e57e265 Add withBody. 2021-12-22 15:28:19 -08:00
Dillon Kearns
6df0ce9987 Add cookie parser. 2021-12-22 14:42:35 -08:00
Dillon Kearns
c43d7f474b Wire through key for accessing DataSource.ServerRequest. 2021-12-22 11:29:16 -08:00
Dillon Kearns
42126f0d4a Send multiValueHeaders in netlify adapter. 2021-12-21 17:33:41 -08:00
Dillon Kearns
7c3de6c149 Remove hardcoded query params in adapter. 2021-12-21 16:11:51 -08:00
Dillon Kearns
f6c13c0404 Handle API responses from serverless Page Modules. 2021-12-21 12:01:08 -08:00
Dillon Kearns
0d3b918048 Turn on invalid netlify route error handling, and handle errors with correct process.exit handling instead of unhandled exception. 2021-12-21 10:01:42 -08:00
Dillon Kearns
796f5d809f Include isBase64Encoded option in ServerResponse. 2021-12-21 09:45:25 -08:00
Dillon Kearns
3703916aaa Add ApiRoute.prerenderWithFallback. 2021-12-21 09:08:17 -08:00
Dillon Kearns
7f2d47c6de Add serverless ApiRoute builder and some examples in pokedex app. 2021-12-21 07:47:47 -08:00
Dillon Kearns
bc6a055e7b Gitignore folders generated from adapter. 2021-12-21 07:32:16 -08:00
Dillon Kearns
7acd5355dd Add example with server request daata source. 2021-12-20 15:47:56 -08:00
Dillon Kearns
b858556167 Update index page with links and SEO data. 2021-12-20 15:02:12 -08:00
Dillon Kearns
843ca0bacd Wire through headers, statusCode, and body from ServerResponse. Add redirect example. 2021-12-20 14:45:18 -08:00
Dillon Kearns
84096ec8dc Update adapter script to handle api-response's, but with some hardcoding for now. 2021-12-20 13:55:24 -08:00
Dillon Kearns
c79d76f473 Include kind in API routes to tell the rendering mode. Generate redirects for serverless API routes. 2021-12-20 13:35:34 -08:00
Dillon Kearns
b00882a53b Do cached build with npm run build. 2021-12-20 13:33:53 -08:00
Dillon Kearns
7eaa94a9e4 Include Pattern information for ApiRoutes. 2021-12-20 11:26:12 -08:00
Dillon Kearns
fe4f1f4d65 Use ensureDir in adapter script to prevent errors for existing dir. 2021-12-18 11:23:12 -08:00
Dillon Kearns
06ace7822e Update elm-verify-examples package. 2021-12-18 11:22:55 -08:00
Dillon Kearns
78ed00637f Fix typo. 2021-12-17 11:18:22 -08:00
Dillon Kearns
9436cf0b6d Generate different renderer function for serverless and odb. 2021-12-17 11:14:29 -08:00
Dillon Kearns
b9f3ded983 Create server-render folder from adapter. 2021-12-16 20:37:32 -08:00
Dillon Kearns
07b5bfbe61 Change values in request to JSON. 2021-12-16 19:00:40 -08:00
Dillon Kearns
99fbfda6c0 Use --debug flag in build for now. 2021-12-16 12:09:22 -08:00
Dillon Kearns
35c5be1ee0 Transform AWS event payload into event for DataSource.ServerRequest JSON. 2021-12-16 12:05:59 -08:00
Dillon Kearns
a9ebd8559a Include redirects for content.json. 2021-12-16 12:05:18 -08:00
Dillon Kearns
9769e7a95c Pass through request from NodeJS and update the ServerRequest API. 2021-12-15 20:10:54 -08:00
Dillon Kearns
3960da425c Fix typo. 2021-12-15 15:48:16 -08:00
Dillon Kearns
a0f34bfa19 Fix typo. 2021-12-15 15:44:48 -08:00
Dillon Kearns
7a57c331bc Use route-patterns.json to generate _redirects file. 2021-12-15 15:39:35 -08:00
Dillon Kearns
df321d429d Fix typo. 2021-12-15 12:41:53 -08:00
Dillon Kearns
bff850fcc4 Update SEO data. 2021-12-15 12:35:50 -08:00
Dillon Kearns
dca81657ee Try in-memory fs. 2021-12-15 12:22:25 -08:00
Dillon Kearns
6b7cd1419f Use relative dir. 2021-12-15 10:42:50 -08:00
Dillon Kearns
cd026a8a67 Create http cache directory in serverless function. 2021-12-15 10:02:32 -08:00
Dillon Kearns
bc4b32d259 Update package-lock. 2021-12-15 09:52:56 -08:00
Dillon Kearns
df5817626b Update render script. 2021-12-15 09:47:48 -08:00
Dillon Kearns
dacba7358e Update pokedex example. 2021-12-15 09:26:23 -08:00
Dillon Kearns
d5de1137e5 Fix typo in docs. 2021-12-10 16:11:56 -08:00
Dillon Kearns
010cfb9c2a Rename routes to pages. Routes are the category of page, pages are the specific things to pre-render for a given route, so this terminology is more consistent and clear. 2021-12-10 16:03:07 -08:00
Dillon Kearns
aa6f6c9d46 Update examples. 2021-12-10 11:10:24 -08:00
Dillon Kearns
7c69449164 Update example. 2021-12-10 10:57:25 -08:00
Dillon Kearns
d675b2c13f Change syntax for constructor function to avoid constructor error. 2021-12-10 10:50:27 -08:00
Dillon Kearns
d752866d4e Use empty records instead of empty tuples for stateless Page Module's Model. Tweak Page builder API. Add option for local and shared state in generators. 2021-12-10 09:52:12 -08:00
Dillon Kearns
43a6399827 Update test output. 2021-12-02 11:56:57 -08:00
Dillon Kearns
226c1202cf Update test output. 2021-12-01 14:35:46 -08:00
Dillon Kearns
41672ad574 Update test output. 2021-12-01 14:32:22 -08:00
Dillon Kearns
479dfb14ee Linkify showcase images, and add noopener a few places. 2021-11-24 12:54:00 -08:00
Shea Kelly
ce6fb34b1b adding https support using devcert 2021-11-06 12:13:26 +11:00
Dillon Kearns
840cb83d36 Add meta tag that needs escaping to end-to-end escaping test, and fix escaping issue in SEO attributes. 2021-10-26 10:40:04 -07:00
Dillon Kearns
875eb452d9 Remove newline in input file for now. 2021-10-16 11:07:18 -07:00
Dillon Kearns
055a0353c4 Revert "Try using ignore-space-change flag for git diff."
This reverts commit 6b1c015db7.
2021-10-16 10:56:43 -07:00
Dillon Kearns
6b1c015db7 Try using ignore-space-change flag for git diff. 2021-10-16 10:49:37 -07:00
Dillon Kearns
3ece0dddc5
Merge pull request #237 from j-maas/fix-manifest-missing-base
Fix manifest URL missing base
2021-10-16 09:19:33 -07:00
Dillon Kearns
267a94d1cd Add virtual-dom dependency in example project. 2021-10-16 09:13:50 -07:00
Dillon Kearns
26caa69929 Run snapshot tests from top-level npm test command. 2021-10-16 09:10:20 -07:00
Dillon Kearns
505d326783 Update snapshot test output from a Mac machine (doesn't have incorrect backslash characters). 2021-10-16 09:06:58 -07:00
Dillon Kearns
8bca5e3555
Merge pull request #239 from zeshhaan/patch-1
Add clarity on installing dependencies
2021-10-16 08:52:46 -07:00
Dillon Kearns
6e7fb1e583
Update 02-getting-started.md 2021-10-16 08:51:52 -07:00
Dillon Kearns
9cf98f1177 Update references to Template Modules in docs to new term Page Module. 2021-10-13 11:08:56 -07:00
Dillon Kearns
3884e86c37
Update 06-page-modules.md 2021-10-10 09:01:43 -07:00
Dillon Kearns
f1a564da03
Update slides.md 2021-10-10 08:58:28 -07:00
Dillon Kearns
b876f06139 Test escaping examples both with and without --debug flag. Fix output without debug flag. 2021-10-07 12:05:13 -07:00
Dillon Kearns
17f1c6460f Update test output. 2021-10-07 12:00:38 -07:00
Dillon Kearns
cc4debb947 Install virtual-dom dependency in projects. 2021-10-07 11:58:15 -07:00
Dillon Kearns
36e8a1f8cd Show lazy and non-lazy in example. 2021-10-07 11:54:40 -07:00
Dillon Kearns
5e25ccbd01 Comment out lazy example for now. 2021-10-07 11:53:25 -07:00
Dillon Kearns
c91b01d5a4 Port over HTML to string helpers from elm-explorations/test. TODO - still need to port the escaping fixes I did to the elm-explorations/test implementation. 2021-10-07 11:34:08 -07:00
Mohammed Zeeshan
40bf70e856
Add clarity on installing dependencies
As a newcomer to Elm, i couldn't start elm-pages to work after following the steps. I later figured out that many had the same starting issue (like https://discourse.nixos.org/t/installing-elm-pages-and-other-packages-that-depend-on-elm/8525/3 and https://issueexplorer.com/issue/dillonkearns/elm-pages-starter/29) and i though it would have been of great benefit if this missing piece is included.
2021-10-05 22:50:52 +05:30
Johannes Maas
6a38275faf Commit .html output for test 2021-10-03 11:32:21 +02:00
Johannes Maas
6bbfed04f8 Create base-path example for test 2021-10-03 11:17:50 +02:00
Dillon Kearns
81fbbb6518 Add missing closing quote. 2021-10-02 16:54:32 -07:00
Dillon Kearns
5e5962ab25 Update escaping test output. 2021-10-02 16:52:21 -07:00