Commit Graph

50 Commits

Author SHA1 Message Date
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
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
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
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
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
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
aa6f6c9d46 Update examples. 2021-12-10 11:10:24 -08:00
Dillon Kearns
cc4debb947 Install virtual-dom dependency in projects. 2021-10-07 11:58:15 -07:00
Dillon Kearns
07111cfac6 Run npm i. 2021-08-25 11:09:06 -07:00
Dillon Kearns
bbe33d4b52 Update examples and tests. 2021-08-01 10:25:38 -07:00
Dillon Kearns
b78f8c008b Rename types in ApiRoute module. 2021-07-30 15:35:11 -07:00
Dillon Kearns
99ae3e5ab6 Add generated file for cypress test run to gitignore. 2021-07-29 12:32:46 -07:00
Dillon Kearns
545acf2cb6 Fix compiler error. 2021-07-28 09:01:49 -07:00
Dillon Kearns
0a77ab5f04 Read path from the right spot for initial ContentCache data. 2021-07-26 11:17:39 -07:00
Dillon Kearns
1651ec8d13 Add DataSource to end-to-end example index route. 2021-07-26 08:45:53 -07:00
Dillon Kearns
0ba1848d46 Fix error in example. 2021-07-26 08:45:27 -07:00
Dillon Kearns
d865c20ccb Add cypress example for data sources. 2021-07-21 13:33:05 -07:00
Dillon Kearns
d81c5ad0d3 Add an end-to-end test example folder. 2021-07-21 13:29:45 -07:00