Commit Graph

701 Commits

Author SHA1 Message Date
Dillon Kearns
7650ec4651 Remove {} arguments in empty route params in Route type. 2021-06-10 15:09:27 -07:00
Dillon Kearns
80974a8c38 Use empty list of routes for default generated page module. 2021-06-10 12:38:11 -07:00
Dillon Kearns
623db29656 Remove hardcoding in matched route params in 404 dev page. 2021-06-10 12:05:28 -07:00
Dillon Kearns
908e9a4243 Include more not found context. 2021-06-10 11:53:36 -07:00
Dillon Kearns
07bed53a79 Update NotFound view. 2021-06-09 10:52:54 -07:00
Dillon Kearns
e38c3bda3e Fix types for route params to string function. 2021-06-08 15:20:21 -07:00
Dillon Kearns
e719939c33 Generate Elm type representation of pre-rendered RouteParams. 2021-06-08 13:42:52 -07:00
Dillon Kearns
bf272c5768 Show list of pre-rendered route params for found routes but not pre-rendered. 2021-06-08 11:27:44 -07:00
Dillon Kearns
3668768919 Update not found page style. 2021-06-06 21:44:08 -07:00
Dillon Kearns
e9dd54c4b0 Update not found dev page. 2021-06-06 19:09:52 -07:00
Dillon Kearns
cffafc2171 Remove unnecessary destructuring in connector module that required View type to be a record with body and title. 2021-06-06 11:09:39 -07:00
Dillon Kearns
852a84d8bb Update not found page. 2021-06-06 11:04:06 -07:00
Dillon Kearns
498faf6b3a Add netlify.toml to init scaffolding. 2021-06-04 17:54:38 -07:00
Dillon Kearns
0840afbd5a Run elm-format on file. 2021-06-03 18:53:42 -07:00
Dillon Kearns
dcf3205092 Rename ServerRequest to be under DataSource namespace. 2021-06-03 17:27:28 -07:00
Dillon Kearns
f22abc904e Normalize splat field name correctly. 2021-06-03 16:01:54 -07:00
Dillon Kearns
2177d2bf1d Use lowerCamelCase for field names. 2021-06-03 11:58:35 -07:00
Dillon Kearns
9f93efd75c Generate route patterns JSON file for use with adapter js. 2021-06-02 11:02:35 -07:00
Dillon Kearns
0d9e62c09b Update pokedex render function to send 404 status. 2021-06-01 19:31:38 -07:00
Dillon Kearns
7de131ea82 Add extra data in Page module. 2021-06-01 14:21:19 -07:00
Dillon Kearns
cc316d5cd7 Add pokedex detail page. 2021-06-01 10:57:08 -07:00
Dillon Kearns
ac7dcaf5b2 Add a jsonFile data source. 2021-05-29 12:49:49 -07:00
Dillon Kearns
dcc5ad6458 Add elm-pages docs server to show local generated docs. 2021-05-28 11:37:03 -07:00
Dillon Kearns
034569475f Ensure that CLI errors propogate through to browser instead of infinitely reloading. 2021-05-25 11:06:10 -07:00
Dillon Kearns
badd971dbb Fix elm-pages add template code. 2021-05-24 19:09:55 -07:00
Dillon Kearns
8ccdf30399 Update template to refer to a path of a local git submodule. 2021-05-24 12:37:49 -07:00
Dillon Kearns
cf13fb21cf Update template project. 2021-05-24 12:33:13 -07:00
Dillon Kearns
86c3dac0fa Move generated browser-elm.js to an already ignored path. 2021-05-24 12:23:01 -07:00
Dillon Kearns
959487cda0 Wire up SharedModel and reconfigure some of the Page builder API. 2021-05-24 12:01:17 -07:00
Dillon Kearns
2ac7dd0b24 Wire up PageUrl. 2021-05-24 11:17:34 -07:00
Dillon Kearns
ab65e84eac Remove PagePath module. 2021-05-23 15:40:01 -07:00
Dillon Kearns
48dabe8673 Add Pages.Url and replace ImagePath with Pages.Url.Url type. 2021-05-23 15:11:46 -07:00
Dillon Kearns
a2bd42f617 Use Path instead of PagePath in Manifest API. 2021-05-23 10:53:01 -07:00
Dillon Kearns
dd70e0ae8c Replace some instances of PagePath with Path. 2021-05-23 10:43:53 -07:00
Dillon Kearns
366ca7ab80 Generate routeToPath without Maybe. 2021-05-23 10:20:09 -07:00
Dillon Kearns
d908d8d01c Rename Document -> View. 2021-05-23 09:00:20 -07:00
Dillon Kearns
e9d42d8a59 Add a basic JsPort DataSource wiring. Still not ready for production usage, but the basic wiring works. 2021-05-23 08:47:36 -07:00
Dillon Kearns
2d69c67dec Pass in DataSource with all routes to API Routes for use in generating files like Sitemap. 2021-05-22 18:56:16 -07:00
Dillon Kearns
92397dda44 Remove redundant closing tag and defer tag (module imports are deferred already without that tag). 2021-05-21 09:20:54 -07:00
Dillon Kearns
50c4c6d682 Vendor elm-html-in-elm in preparation for fixing text node HTML escaping. 2021-05-21 09:20:54 -07:00
Dillon Kearns
34c78d6bee Use new WHATWG URLs instead of deprecated url.parse. 2021-05-20 19:03:39 -07:00
Dillon Kearns
c389bce67f Don't try to do page navigation requests in dev server if there is a file extension. 2021-05-20 18:53:45 -07:00
Dillon Kearns
349108ad19 Update gitignored folder. 2021-05-19 07:53:59 -07:00
Dillon Kearns
fff155bc21 Generate files in .elm-pages instead of gen. Fixes #165. 2021-05-18 11:04:56 -07:00
Dillon Kearns
1aa737c431 Rename static/ -> public/. 2021-05-18 10:44:30 -07:00
Dillon Kearns
4b429bd945 Comment out garbage collection hint for now since it's causing error in dev server. Need to investigate. 2021-05-18 09:28:53 -07:00
Dillon Kearns
2a860a1936 Inline value. 2021-05-18 08:35:04 -07:00
Dillon Kearns
f3937241e4 Try making the compiled Elm garbage collectable by using the tip from https://gist.github.com/supermario/4c2615806c6c561a16edf5dd7208a759. 2021-05-18 06:53:04 -07:00
Dillon Kearns
246a9d8a06 Use the right logic for generating RouteParams in elm-pages add. 2021-05-18 06:52:23 -07:00
Dillon Kearns
62f1ac56f8 Remove Element import from elm-pages add template. 2021-05-18 06:31:16 -07:00