Commit Graph

234 Commits

Author SHA1 Message Date
Dillon Kearns
16b15bf4a4 Wire in initial handling for api requests. 2021-05-04 10:37:37 -07:00
Dillon Kearns
2c695ce165 Rename functions. 2021-04-30 20:19:39 -07:00
Dillon Kearns
ccbab4f685 Inline two values in test. 2021-04-30 17:04:34 -07:00
Dillon Kearns
3973f982b2 Use list for test examples. 2021-04-30 17:03:57 -07:00
Dillon Kearns
429a8ae4c1 List of routes, not single route, for Api routes. 2021-04-30 17:02:15 -07:00
Dillon Kearns
6e6f09cabc Restore matcher tests. 2021-04-30 16:03:47 -07:00
Dillon Kearns
d95ccebc60 Handle variabl length params for api route codec. 2021-04-30 16:01:18 -07:00
Dillon Kearns
357e49548b New experiment for Api routes prototype. 2021-04-30 13:54:03 -07:00
Dillon Kearns
f6963d3087 Move API handler into a module. 2021-04-30 08:42:07 -07:00
Dillon Kearns
b97df0b6cc Inline value. 2021-04-29 20:25:01 -07:00
Dillon Kearns
f0d64e59f0 Restore route matching tests. 2021-04-29 16:42:13 -07:00
Dillon Kearns
e936ebc71d Change to list of api routes. 2021-04-29 16:40:58 -07:00
Dillon Kearns
ff03bbf075 Remove hardcoded value. 2021-04-29 16:36:05 -07:00
Dillon Kearns
bc1ac1fecd Got prototype working with reversible route. 2021-04-29 15:31:13 -07:00
Dillon Kearns
68af88cfeb Update prototype. 2021-04-29 14:21:38 -07:00
Dillon Kearns
4e258bc983 Prototype for two-way api route codec. 2021-04-29 13:31:40 -07:00
Dillon Kearns
f790eee0fe Add slash handler. 2021-04-29 11:19:43 -07:00
Dillon Kearns
e6050aec5c Add test case for api route with extension. 2021-04-29 11:15:28 -07:00
Dillon Kearns
76093b6d26 Add a starting prototype for an API router. 2021-04-29 11:00:25 -07:00
Dillon Kearns
17553550b4 Put Glob under DataSource namespace. 2021-04-28 14:05:08 -07:00
Dillon Kearns
ab87bc049a Handle precedence in routing example. 2021-04-27 10:14:03 -07:00
Dillon Kearns
9e1f3b7b73 Add test case for new router prototype. 2021-04-27 08:35:07 -07:00
Dillon Kearns
b245d7dc98 Remove obsolete captures list (now derived from running regex). 2021-04-25 20:38:48 -07:00
Dillon Kearns
954ebdec63 Remove experimental test. 2021-04-25 20:35:09 -07:00
Dillon Kearns
664cb77c78 Remove not functions from Glob API for now. 2021-04-25 20:34:56 -07:00
Dillon Kearns
cf589a407b Run Regex matching in Elm for Glob module. 2021-04-25 19:39:54 -07:00
Dillon Kearns
810010bd1a Parser-based implementation doesn't work because it's greedy (not possible to do lazy matching like regex). 2021-04-25 15:17:52 -07:00
Dillon Kearns
8791747ad7 Add starting point for new glob experiment. 2021-04-25 09:08:27 -07:00
Dillon Kearns
7f59d64151 Remove unused import. 2021-04-23 16:25:12 -07:00
Dillon Kearns
9c09b18812 Fix test failure. 2021-04-23 16:24:26 -07:00
Dillon Kearns
521c3c0cc7 Rename StaticData -> Data. 2021-04-23 16:22:23 -07:00
Dillon Kearns
20f37a4069 Remove obsolete sourceIcon. 2021-04-23 08:47:11 -07:00
Dillon Kearns
af55887d72 Fix test. 2021-04-22 11:33:06 -07:00
Dillon Kearns
f707815679 Fix test. 2021-04-21 07:52:56 -07:00
Dillon Kearns
1e1f16e23d Add missing field in test setup. 2021-04-20 20:54:18 -07:00
Dillon Kearns
7f14f6171a Apply review fixes. 2021-04-20 14:35:55 -07:00
Dillon Kearns
65e6ef52dd Rename glob functions with ignore/capture instead of drop/keep to make it more intuitive. 2021-04-20 13:53:53 -07:00
Dillon Kearns
a082d9e291 Move HTTP-related DataSource API under DataSource.Http. 2021-04-20 13:52:54 -07:00
Dillon Kearns
84abfb4b2b DataSource.Request -> DataSource.DataSource. 2021-04-20 07:45:35 -07:00
Dillon Kearns
47fccf2cca Rename StaticHttp to DataSource. 2021-04-20 07:33:12 -07:00
Dillon Kearns
03fc86e577 Remove access to static data for canonicalSiteUrl for now. 2021-04-17 21:43:22 -07:00
Dillon Kearns
3b5d790bdc Remove extra argument. 2021-04-17 12:35:00 -07:00
Dillon Kearns
632e1961f0 Review fixes. 2021-04-17 08:18:26 -07:00
Dillon Kearns
e11d359222 Make sure send page progress events get kicked off when there are no initial requests from getStaticRoutes or generateFiles. 2021-04-17 07:44:22 -07:00
Dillon Kearns
9bb173baab Run elm-review. 2021-04-16 09:32:09 -07:00
Dillon Kearns
21ecb7e746 Remove debug log statements. 2021-04-16 09:28:59 -07:00
Dillon Kearns
51f2eb2a20 Remove obsolete test case. 2021-04-16 09:28:43 -07:00
Dillon Kearns
bdd4ace0fd Normalize error message test assertions. 2021-04-16 09:27:20 -07:00
Dillon Kearns
fbc161c77b Add a toString in the build error decoder for the test assertions. 2021-04-16 09:20:28 -07:00
Dillon Kearns
d04d670669 Fix getStaticRoutes wiring for tests. 2021-04-16 08:27:12 -07:00