Commit Graph

1535 Commits

Author SHA1 Message Date
Dillon Kearns
723f0b22a1 Change brand color. 2022-04-13 09:33:37 -07:00
Dillon Kearns
9ecd7c5d5f Fix canonical URL. 2022-04-13 09:09:05 -07:00
Dillon Kearns
48d2f8bfb7 Update readme. 2022-04-13 09:03:50 -07:00
Dillon Kearns
4f0a604d7f Update hacker news SEO tags. 2022-04-13 08:55:28 -07:00
Dillon Kearns
e6c65bbdf2 Try require from elm-pages package from serverless functions. 2022-04-12 11:52:12 -07:00
Dillon Kearns
8787fefdde Add styles and fix markup for comments. 2022-04-11 21:36:09 -07:00
Dillon Kearns
488b0db305 Set display on nested comments. 2022-04-11 21:03:56 -07:00
Dillon Kearns
435ccc362b Add comments view. 2022-04-11 20:52:03 -07:00
Dillon Kearns
cc7c7c3b06 Update escaping test output. 2022-04-11 14:40:13 -07:00
Dillon Kearns
21059e19be Render pagination view. 2022-04-11 12:25:19 -07:00
Dillon Kearns
49078902ff Decode into nicer custom type. 2022-04-11 11:50:18 -07:00
Dillon Kearns
d05bb257e2 Handle some additional nullable values. 2022-04-11 11:25:23 -07:00
Dillon Kearns
8a3c787906 Clean up domain view. 2022-04-11 11:04:55 -07:00
Dillon Kearns
34db38420c Update build command. 2022-04-11 10:57:43 -07:00
Dillon Kearns
bddef2a417 Delete commented code. 2022-04-11 10:30:12 -07:00
Dillon Kearns
b4e1e36e9f Update source-directories. 2022-04-11 08:46:36 -07:00
Dillon Kearns
7613efce4c Install elm-review in hackernews project. 2022-04-11 08:41:02 -07:00
Dillon Kearns
dd4588bf51 Update netlify config for hackernews. 2022-04-11 08:40:14 -07:00
Dillon Kearns
4b30211c05 Add stories/:id route to hackernews example. 2022-04-10 21:18:02 -07:00
Dillon Kearns
afcfdb72dc Add hacker news example. 2022-04-10 16:37:00 -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
2d9695f551 Use logout effect from greet page. 2022-04-09 08:11:45 -07:00
Dillon Kearns
042dddf764 Add Logout Effect. 2022-04-09 08:10:45 -07:00
Dillon Kearns
8cbe96e6b8 Update package-lock. 2022-04-09 08:05:33 -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
0b125c3b11 Update docs example. 2022-04-05 09:13:55 -07:00
Dillon Kearns
4aac1a64d1 Force build. 2022-04-05 09:05:26 -07:00
Dillon Kearns
089db1378e Update examples. 2022-04-05 08:28:56 -07:00
Dillon Kearns
8112e477e8 Extract functions into record. 2022-04-05 08:26:26 -07:00
Dillon Kearns
706ead2dc1 Update some test examples. 2022-04-04 16:22:45 -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
f8c130fe68 Fix end-to-end example compilation error. 2022-04-01 20:48:50 -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
339d54a9e9 Update examples to use ErrorPage, and add to NoContractViolations. 2022-03-29 15:32: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
535d6d4932 Fix base-path example. 2022-03-25 10:13:12 -07:00
Dillon Kearns
4f58d763f4 Generate preload directive for hashed entrypoint JS file. 2022-03-25 09:50:50 -07:00
Dillon Kearns
9e498ca93b Update examples. 2022-03-25 09:03:22 -07:00
Dillon Kearns
e6fb1047ec Add Effect module to docs site. 2022-03-21 13:12:36 -07:00
Dillon Kearns
979be6f3e4 Simulate user effects in tests. 2022-03-21 12:59:51 -07:00
Dillon Kearns
4ae34b9bf0 Remove unnecessary attribute. 2022-03-21 12:10:39 -07:00
Dillon Kearns
2d0f0f2651 Wire up Effect type. 2022-03-21 09:45:11 -07:00
Dillon Kearns
ef6f80ff01 Run vanilla web form submission simulation when there is no onsubmit handler and a form submit button is clicked. 2022-03-20 13:19:18 -07:00
Dillon Kearns
a437459865 Merge remote-tracking branch 'origin/master' into serverless-latest 2022-03-20 07:31:15 -07:00
Dillon Kearns
b3f0ebba9d Extract test helper module. 2022-03-19 15:57:03 -07:00
Dillon Kearns
3d24e970e0 Add another test case. 2022-03-19 14:57:22 -07:00
Dillon Kearns
26f9f02697 Remove obsolete code. 2022-03-19 13:32:32 -07:00
Dillon Kearns
8e242b5a57 Remove obsolete hardcoded value. 2022-03-19 13:30:09 -07:00
Dillon Kearns
339b3c3387 Extract value. 2022-03-19 13:22:40 -07:00
Dillon Kearns
c72dfc8010 Extract value. 2022-03-19 13:21:26 -07:00
Dillon Kearns
d3c1d45342 Extract variable. 2022-03-19 13:17:55 -07:00
Dillon Kearns
d6b2aec595 Remove hardcoded initial url in Request.Parser mocking. 2022-03-19 13:15:21 -07:00
Dillon Kearns
5fc8173781 Remove hardcoded name in form submit body. 2022-03-19 12:01:45 -07:00
Dillon Kearns
0937207468 Maintain cookie jar state. 2022-03-19 11:50:47 -07:00
Dillon Kearns
88f2a1dc14 Get test prototype working with redirects and form POST simulation with no event handlers. 2022-03-18 10:50:23 -07:00
Dillon Kearns
6eb29865e0 Handle initial page redirects in test harness. 2022-03-17 09:33:21 -07:00
Dillon Kearns
15d824c675 Try vendoring entire elm-program-test package. 2022-03-16 14:09:15 -07:00
Dillon Kearns
f541e5576b Copy vendored elm-program-test as starting point for custom elm-pages state. 2022-03-16 14:00:14 -07:00
Dillon Kearns
0b7e6053c9 Add program-test prototype that runs server-rendered routes. 2022-03-16 13:55:31 -07:00
Dillon Kearns
ac1e0de39b Refactor test code. 2022-03-16 10:29:53 -07:00
Dillon Kearns
b8b4729821 Resolve mock data in test prototype for initial route and on route change. 2022-03-15 21:10:52 -07:00
Dillon Kearns
7ff9b555f3 Add DataSource request mocking prototype. 2022-03-14 19:17:19 -07:00
Dillon Kearns
2a80161392 Try new wiring for elm-program-test prototype. 2022-03-14 16:13:01 -07:00
Dillon Kearns
ec33b62323 Add prototype of elm-program-test setup. 2022-03-14 14:02:37 -07:00
Dillon Kearns
55ac3da02d Update starter template. 2022-03-14 11:39:41 -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
asteroidb612
df8bfebc43
Update 07-data-sources.md 2022-03-10 17:12:25 -07:00
asteroidb612
2b80fbbfd1
Reflect new DataSource.File API in example 2022-03-10 17:10:53 -07:00
Dillon Kearns
25972e5724 Run adapter script from build step (if configured). 2022-03-10 11:49:07 -08:00
Dillon Kearns
3e12b48112 Update template project. 2022-03-09 15:06:49 -08:00
Dillon Kearns
aaca1b0a12 Try a new cypress start command for ci. 2022-03-09 14:00:24 -08:00
Dillon Kearns
c6a5096357 Remove extra complexity of markdown parsing in routing test. 2022-03-09 11:18:23 -08:00
Dillon Kearns
3c4bcac4f4 Remove unused dependencies. 2022-03-09 11:10:00 -08:00
Dillon Kearns
41fd2bf645 Update dependencies. 2022-03-09 10:57:47 -08:00
Dillon Kearns
ef89edf54b Update esbuild. 2022-03-09 10:55:16 -08:00
Dillon Kearns
e35b8b6516 Update cypress. 2022-03-09 10:54:36 -08:00
Dillon Kearns
38c31745d6 Update commander. 2022-03-09 10:53:58 -08:00
Dillon Kearns
b3d0d8667a Update vite. 2022-03-09 10:53:32 -08:00
Dillon Kearns
1309fbe329 Update test snapshot. 2022-03-09 10:46:24 -08:00
Dillon Kearns
0e1ccd8e3b Update base-path example. 2022-03-09 10:43:30 -08:00
Dillon Kearns
84fe59f9c7 Update escaping test snapshot. 2022-03-09 10:35:40 -08:00
Dillon Kearns
aa98e1b914 Update test projects. 2022-03-09 10:33:33 -08:00
Dillon Kearns
6e53ce5f74 Add test case for handling multiple content types. 2022-03-09 09:19:46 -08:00
Dillon Kearns
ad5f092d06 Improve expectContentType. 2022-03-09 08:49:46 -08:00
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