Commit Graph

848 Commits

Author SHA1 Message Date
Dillon Kearns
34ba54d5d1 Update doc sidebar style based on nextra. 2021-05-06 14:10:50 -07:00
Dillon Kearns
efddae6bba Use standalone Api.elm module for ApiRoutes. 2021-05-06 10:08:12 -07:00
Dillon Kearns
f5287d3419 Remove unused. 2021-05-06 10:07:08 -07:00
Dillon Kearns
6cac9fd556 Rename import alias. 2021-05-06 09:48:08 -07:00
Dillon Kearns
f00fff90d9 Rename constructor argument in example. 2021-05-06 07:52:37 -07:00
Dillon Kearns
881cc7ccbe Add integer matcher in api routes. 2021-05-06 07:34:51 -07:00
Dillon Kearns
6fab76ab96 Rename ApiHandler -> ApiRoute. 2021-05-06 07:26:21 -07:00
Dillon Kearns
b16f32c1fa Rename field. 2021-05-06 07:16:05 -07:00
Dillon Kearns
4d175558ce Remove obsolete generateFiles. 2021-05-06 07:14:49 -07:00
Dillon Kearns
8de8dd0c71 Wire in allRoutes to ApiRoutes at build-time. 2021-05-06 07:02:42 -07:00
Dillon Kearns
e9779cf9a6 Handle not found API response with a hardcoded not found body and 200 status code for now. 2021-05-05 17:04:21 -07:00
Dillon Kearns
6435b69421 Rename function. 2021-05-05 14:35:49 -07:00
Dillon Kearns
7c90a2eb9a Use DataSouce for ApiHandler responses. 2021-05-04 20:11:08 -07:00
Dillon Kearns
16b15bf4a4 Wire in initial handling for api requests. 2021-05-04 10:37:37 -07:00
Dillon Kearns
b733dd9dc5 Try absolute path on netlify. 2021-04-29 07:33:55 -07:00
Dillon Kearns
4ddf97bb91 Render time with a netlify function. 2021-04-29 07:27:19 -07:00
Dillon Kearns
17553550b4 Put Glob under DataSource namespace. 2021-04-28 14:05:08 -07:00
Dillon Kearns
5d8caf5d18 Update scaffold command. 2021-04-26 14:24:56 -07:00
Dillon Kearns
c7984cccfd Remove unused dependency. 2021-04-25 20:36:21 -07:00
Dillon Kearns
cf589a407b Run Regex matching in Elm for Glob module. 2021-04-25 19:39:54 -07:00
Dillon Kearns
735bdeb2af Fix error in slides project. 2021-04-24 16:10:10 -07:00
Dillon Kearns
38d6b65477 Add serverless request Page builder. 2021-04-24 16:01:31 -07:00
Dillon Kearns
2b78dd89bc Add new Page builder API functions. 2021-04-24 12:47:22 -07:00
Dillon Kearns
b16d012670 Unexpose Shared.Msg variants. 2021-04-23 16:52:35 -07:00
Dillon Kearns
1c96c1d99a Remove unused exports. 2021-04-23 16:26:24 -07:00
Dillon Kearns
521c3c0cc7 Rename StaticData -> Data. 2021-04-23 16:22:23 -07:00
Dillon Kearns
559c4b6337 Rename top-level functions from template -> page. 2021-04-23 15:54:07 -07:00
Dillon Kearns
ba6a3c6af4 Rename Template modules -> Page modules. 2021-04-23 15:46:37 -07:00
Dillon Kearns
7a30435888 Remove completed TODO. 2021-04-23 08:57:57 -07:00
Dillon Kearns
eb6ccbc1ef Add a builder API for manifest configs. 2021-04-23 08:45:05 -07:00
Dillon Kearns
dd7ad0d88b Add lang tag to manifest. 2021-04-23 08:22:29 -07:00
Dillon Kearns
938bbd1014 Add language tag dependency to docs example. 2021-04-23 07:12:00 -07:00
Dillon Kearns
11267b5f62 Serve hmr.js from framework assets (not user static folder). 2021-04-22 21:25:02 -07:00
Dillon Kearns
7e07a7ce2f Rearrange definitions. 2021-04-22 20:22:16 -07:00
Dillon Kearns
d3b1fbad4a Remove unused page. 2021-04-22 14:02:10 -07:00
Dillon Kearns
d08d0e7ff0 Wire in static payload to init and update. 2021-04-22 11:31:06 -07:00
Dillon Kearns
267246aa79 Update docs. 2021-04-21 21:46:16 -07:00
Dillon Kearns
78f7b8d21f Update example. 2021-04-21 19:53:28 -07:00
Dillon Kearns
1086618efd Fix overflow wrapping. 2021-04-21 19:52:43 -07:00
Dillon Kearns
93f2fdc6ff Update docs. 2021-04-21 19:02:34 -07:00
Dillon Kearns
f7fec11543 Update table of contents view. 2021-04-21 18:09:43 -07:00
Dillon Kearns
b9b65fe82b Update code span color. 2021-04-21 18:03:03 -07:00
Dillon Kearns
11f440b09f Add nested table of contents module. 2021-04-21 17:27:00 -07:00
Dillon Kearns
09aad643e1 Update docs. 2021-04-21 15:43:30 -07:00
Dillon Kearns
0e19e08f93 Remove comment. 2021-04-21 14:04:10 -07:00
Dillon Kearns
c1c95294d7 Render table of contents in docs page. 2021-04-21 13:57:53 -07:00
Dillon Kearns
97838472ae Bump block levels. 2021-04-21 13:38:45 -07:00
Dillon Kearns
e7c1c35c42 Add starting point for pulling in docs pages. 2021-04-21 13:34:59 -07:00
Dillon Kearns
f890a48653 Handle 404 response for content.json with page render. 2021-04-21 06:09:26 -07:00
Dillon Kearns
fd852d9b8b Update stream url. 2021-04-20 20:11:26 -07:00
Dillon Kearns
e1b4d90087 Rename function. 2021-04-20 14:57:28 -07:00
Dillon Kearns
93d8572ddf Rename Pages.StaticFile -> DataSource.File. 2021-04-20 14:27:36 -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
1d973ab495 Add CLI for elm-pages build. 2021-04-17 15:04:24 -07:00
Dillon Kearns
8d47b85908 Rename cli.js to build.js. 2021-04-17 14:40:02 -07:00
Dillon Kearns
938cf07c4a Try package-lock.json with no optionals. 2021-04-16 10:05:38 -07:00
Dillon Kearns
311f6f04a6 Update package.json. 2021-04-16 09:45:01 -07:00
Dillon Kearns
c60875f89f Wire in StaticData for update in elm-pages.com site. 2021-04-15 13:40:36 -07:00
Dillon Kearns
ed4cf2d2d4 Wire in navigation key. 2021-04-14 09:26:58 -07:00
Dillon Kearns
8de4fc7b12 Wire in sitemap using new SiteConfig. 2021-04-13 19:20:10 -07:00
Dillon Kearns
423e6de328 Wire in all Routes in SiteConfig. 2021-04-13 18:43:31 -07:00
Dillon Kearns
4744844dd1 Wire in manifest generator as just another file generator, but specified in the generated code. 2021-04-13 13:28:58 -07:00
Dillon Kearns
4e5c80ab91 Move definition. 2021-04-13 13:05:33 -07:00
Dillon Kearns
384f9043dc Fix type. 2021-04-12 20:29:27 -07:00
Dillon Kearns
3af6666671 Use generated Route type in SharedTemplate type. 2021-04-12 17:36:18 -07:00
Dillon Kearns
06a9883c15 Remove references to Shared.PageView. 2021-04-12 16:54:08 -07:00
Dillon Kearns
0434c7ebec Use map function from Document. 2021-04-12 16:50:23 -07:00
Dillon Kearns
f375c97679 Extract SharedTemplate type in preparation for including it as generated code. 2021-04-12 16:46:08 -07:00
Dillon Kearns
e65556f265 Refactor a template. 2021-04-12 15:33:00 -07:00
Dillon Kearns
0939d02ce7 Update package-lock. 2021-04-12 15:32:49 -07:00
Dillon Kearns
e83dd9d2c3 Handle showing content JSON errors. 2021-04-11 19:50:48 -07:00
Dillon Kearns
7375e55d34 Handle showing errors with new await syntax. 2021-04-11 19:42:26 -07:00
Dillon Kearns
c7c0e78912 Fix showCompiling id name inconsistencies and show at correct time. 2021-04-11 16:26:22 -07:00
Dillon Kearns
83933495fa Wait for content json request to come back before applying HMR update. 2021-04-11 15:40:32 -07:00
Dillon Kearns
7a019036ec Use module.hot.apply API to update content json when the new app is ready to receive ports. 2021-04-11 15:35:02 -07:00
Dillon Kearns
d951d59afc Remove obsolete markdown stuff. 2021-04-10 14:13:44 -07:00
Dillon Kearns
edbadddf7f Remove obsolete images folder in favor of just static folder. 2021-04-10 14:06:48 -07:00
Dillon Kearns
3c952f2be5 Remove more references to pathkey. 2021-04-10 13:55:46 -07:00
Dillon Kearns
cf1d03a2bb Remove more instances of pathkey. 2021-04-10 13:51:39 -07:00
Dillon Kearns
81c523bad6 Remove more references to NoMetadata. 2021-04-10 13:26:19 -07:00
Dillon Kearns
da14d2e88f Goodbye PathKey! 👋 2021-04-10 13:00:26 -07:00
Dillon Kearns
f47d2b1ed6 Remove dependency on Pages module in more places. 2021-04-10 12:57:58 -07:00
Dillon Kearns
31a5f2d8f6 Remove more references to Pages module. 2021-04-10 12:37:06 -07:00
Dillon Kearns
e71c073d95 Remove some references to Pages.pages and Pages.images. 2021-04-10 12:32:37 -07:00
Dillon Kearns
12b36d964f No more PathKey for PagePath! 2021-04-10 10:33:26 -07:00
Dillon Kearns
b1b339010c Wait to apply HMR update so that Elm can receive port with updated contentJson. 2021-04-10 09:07:35 -07:00
Dillon Kearns
66e43cb71b Turn off syntax highlighthing for now to test out performance. 2021-04-10 08:00:07 -07:00
Dillon Kearns
a0622db69d Move hmr loading indicator code into hmr.js and out of Elm code. 2021-04-09 16:36:18 -07:00
Dillon Kearns
a6514b844f Serve assets with npm package that does streaming and mime type handling. Serve up some files from the file system for simlicity. 2021-04-09 12:00:24 -07:00
Dillon Kearns
d9391cee53 Only apply HMR updates when content.json is free of errors. 2021-04-08 18:42:05 -07:00
Dillon Kearns
332be32410 Simplify and reuse article data source helpers. 2021-04-08 13:54:55 -07:00
Dillon Kearns
29c61434f2 Wire in elm-pages data source errors to error overlay. 2021-04-08 06:38:29 -07:00
Dillon Kearns
4c641d69ee Add wrapping to error overlay. 2021-04-08 06:04:56 -07:00
Dillon Kearns
7cbcfedaf9 Show error overlays. 2021-04-07 19:48:52 -07:00
Dillon Kearns
3e2b699c1f Send elm compiler errors as JSON. 2021-04-07 17:37:49 -07:00
Dillon Kearns
685b65435b Run prettier on markdown file. 2021-04-07 12:17:23 -07:00
Dillon Kearns
3fd9c06674 Ignore file temporarily. 2021-04-07 08:23:13 -07:00
Dillon Kearns
978305765e Hot reloads for content.json. 2021-04-07 08:22:46 -07:00
Dillon Kearns
2695be218e Remove commented code. 2021-04-07 08:16:06 -07:00
Dillon Kearns
80a2ea26b6 Wire in initial HMR for elm.js code. 2021-04-06 18:26:24 -07:00
Dillon Kearns
c7d26520cd Temporarily use a hardcoded data source for the time API since the API is flaky and slow. 2021-04-06 13:03:04 -07:00
Dillon Kearns
745d714a44 Add render function to StaticResponses module. 2021-04-05 20:58:28 -07:00
Dillon Kearns
89650a4eb1 Merge branch 'serverless' into static-files
# Conflicts:
#	examples/docs/package-lock.json
#	examples/docs/src/Template/BlogIndex.elm
#	examples/docs/src/Template/Page.elm
#	generator/src/cli.js
#	netlify.toml
#	package-lock.json
#	package.json
#	src/Pages/Internal/Platform/Cli.elm
#	tests/BetaStaticHttpRequestsTests.elm
#	tests/StaticHttpRequestsTests.elm
2021-04-05 19:49:08 -07:00
Dillon Kearns
a481b0fdf0 Remove comment. 2021-04-05 17:15:27 -07:00
Dillon Kearns
e6d15a133d Render landing page view. 2021-04-05 17:03:10 -07:00
Dillon Kearns
1332bca27b Remove unused frontmatter. 2021-04-05 17:03:01 -07:00
Dillon Kearns
b7f204330c Move page. 2021-04-05 16:50:29 -07:00
Dillon Kearns
5e8a07aad6 Remove hardcoding. 2021-04-05 16:50:22 -07:00
Dillon Kearns
0ab2b9921b Unvendor elm-ui. 2021-04-05 16:18:08 -07:00
Dillon Kearns
c4cba9fcf0 Use node version 15. 2021-04-05 15:23:21 -07:00
Dillon Kearns
45b51ceb89 Remove obsolete build command from CLI. 2021-04-05 15:11:16 -07:00
Dillon Kearns
ca9765b62a Remove more webpack-related files. 2021-04-05 15:09:34 -07:00
Dillon Kearns
f79612fedf Update dependencies. 2021-04-05 14:44:56 -07:00
Dillon Kearns
c9c63b8a3b Remove webpack dependencies! 🎉 2021-04-05 14:44:43 -07:00
Dillon Kearns
6bc4c8aab0 Remove unused code. 2021-04-05 14:25:37 -07:00
Dillon Kearns
3ccca84c0c Remove empty files. 2021-04-05 14:11:38 -07:00
Dillon Kearns
6333457501 Remove unused module. 2021-04-05 14:00:15 -07:00
Dillon Kearns
5d496c3834 Run entrypoint directly with generated code instead of wiring it in with a Main.elm. 2021-04-05 13:59:21 -07:00
Dillon Kearns
80e0f8db66 Wire through static http request for initial site config. 2021-04-05 10:51:06 -07:00
Dillon Kearns
d104f26ac0 Wire in new site config record. 2021-04-05 10:03:11 -07:00
Dillon Kearns
565c62bccb Wire in RouteParams to static payload. 2021-04-05 07:48:26 -07:00
Dillon Kearns
5532a7c29c Generalize generated routes with route params. 2021-04-05 07:20:12 -07:00
Dillon Kearns
1f7bb61452 Remove some hardcoding in the generated code. 2021-04-05 06:35:51 -07:00
Dillon Kearns
a74254773f Wire in route to staticData. 2021-04-04 20:47:25 -07:00
Dillon Kearns
90d39610d3 Handle a nested Page Template route with some hardcoding. 2021-04-04 18:23:48 -07:00
Dillon Kearns
1ded1ccab4 Add type alias. 2021-04-03 21:21:33 -07:00
Dillon Kearns
3c433d75d9 Wire in generate files request. 2021-04-03 19:25:21 -07:00
Dillon Kearns
eaf85e14bc Delete comment. 2021-04-02 16:20:02 -07:00
Dillon Kearns
bbbe9c4281 Remove obsolete code. 2021-04-02 16:19:48 -07:00
Dillon Kearns
4c94fb317d Uncomment global head tags. 2021-04-02 16:19:30 -07:00
Dillon Kearns
9749dacb11 Remove obsolete type. 2021-04-02 15:49:48 -07:00
Dillon Kearns
5e2f8e3720 Restore showcase view. 2021-04-02 15:47:07 -07:00
Dillon Kearns
a7cdddb41a Remove siteMetadata arguments for generateFiles. 2021-04-02 15:42:15 -07:00
Dillon Kearns
3372c04e0d Remove TemplateType. 2021-04-02 15:29:59 -07:00
Dillon Kearns
3ee8e5b165 Remove RenderedBody definition. 2021-04-02 15:21:52 -07:00
Dillon Kearns
1bc22f10b3 Remove RenderedBody references. 2021-04-02 15:21:17 -07:00
Dillon Kearns
c13fa23e12 Wire in urlToRoute. 2021-04-02 13:36:11 -07:00
Dillon Kearns
b244a70e44 Wire through route type. 2021-04-01 21:23:55 -07:00
Dillon Kearns
abcae65b36 Remove all references to Metadata. 2021-04-01 12:56:33 -07:00
Dillon Kearns
1e5d6b8a0e Add file path and glob handlers. 2021-03-31 19:55:28 -07:00
Dillon Kearns
11835f155f Handle incoming content.json requests in render serverless function. 2021-03-29 08:59:53 -07:00
Dillon Kearns
0c564bc5fe Clean up serverless render adapter code and return HTML error code. 2021-03-28 19:30:55 -07:00
Dillon Kearns
fd975ea45d Add a module for getting data from the incoming server request. 2021-03-28 19:27:03 -07:00
Dillon Kearns
75c894f897 Update package-lock. 2021-03-25 09:47:59 -07:00
Dillon Kearns
ec7ba930b9 Run renderer for the specific page being requested only, not all pages. 2021-03-25 08:04:59 -07:00
Dillon Kearns
d63ce72018 Use __dirname to resolve path. 2021-03-23 22:28:00 -07:00
Dillon Kearns
cf78609367 Copy elm-pages CLI compiled Elm code to functions folder for renderer. 2021-03-23 22:19:58 -07:00
Dillon Kearns
d685e0365e Change directory context for renderer. 2021-03-23 22:03:12 -07:00
Dillon Kearns
05e220b51d Update directory context in renderer function. 2021-03-23 21:03:10 -07:00
Dillon Kearns
03e6f963ad Get current time in landing page. 2021-03-23 20:12:37 -07:00
Dillon Kearns
71b32795e5 Add initial hardcoded serverless render prototype. 2021-03-23 19:34:12 -07:00
Dillon Kearns
be8d145d9d Update arguments in blog index module. 2021-03-23 16:26:31 -07:00
Dillon Kearns
f7e1e8d3cb Run elm-review fixes. 2020-12-07 08:41:10 -08:00
Dillon Kearns
27715ea9f3 Fix anchor links in docs site. 2020-10-28 07:44:14 -07:00
Dillon Kearns
dfa71340a2 Hide counter views and fix current path highlighting in docs page. 2020-10-26 11:09:26 -07:00
Dillon Kearns
b26d05b88c Generate Template.elm module. 2020-10-26 11:03:43 -07:00
Dillon Kearns
3aa978578b Update template modules file name. 2020-10-26 10:50:11 -07:00
Dillon Kearns
7478642190 Wire in OnPageChange to shared. 2020-10-25 12:06:08 -07:00
Dillon Kearns
3964dc43b6 Use Maybe instead of NoOp for SharedMsg's. 2020-10-25 11:24:52 -07:00
Dillon Kearns
b2926149ff Update docs. 2020-10-25 09:06:21 -07:00
Dillon Kearns
68a25f24c7 Rename template aliases. 2020-10-25 08:35:30 -07:00
Dillon Kearns
7fbcfb60d8 Add setup for local docs for generated module. 2020-10-25 08:22:50 -07:00
Dillon Kearns
28692cf003 Use new decoder in template module decoder. 2020-10-24 15:55:45 -07:00
Dillon Kearns
12d9decf04 Fix type variables in template modules. 2020-10-24 15:46:01 -07:00
Dillon Kearns
3442cf02a8 Merge branch 'master' into template-modules
# Conflicts:
#	.gitignore
#	examples/docs/src/Main.elm
2020-10-24 13:02:17 -07:00
Dillon Kearns
489de6cfbc Fix source-directories in examples. 2020-10-22 13:16:39 -07:00
Dillon Kearns
e59aebf6dc Move example plugin to different directory. 2020-10-21 20:00:59 -07:00
Dillon Kearns
0caa91db56 Add maskable icon. 2020-10-21 12:08:01 -07:00
Dillon Kearns
5c37a84054 Use cloudinary social icon in head tags. 2020-10-21 11:49:12 -07:00
Dillon Kearns
0a5569b5e7 Use cloudinary images for article covers. 2020-10-21 11:31:47 -07:00
Dillon Kearns
d00f326f5c Use cloudinary image for author image. 2020-10-21 11:17:10 -07:00
Dillon Kearns
68b80728fd Add PWA and favicon icons. 2020-10-21 10:36:31 -07:00
Dillon Kearns
291378bd85 Generate docs site using beta build. 2020-10-21 10:23:07 -07:00
Dillon Kearns
48c31bcca2 Get docs site compiling with elm-pages build/develop. 2020-10-20 19:30:52 -07:00
Dillon Kearns
61a46aef91 Add icons to manifest config. 2020-10-20 16:41:00 -07:00
Dillon Kearns
707e4837e1 Extract shared template function to collect functions in a single entrypoint. 2020-10-04 13:35:33 -07:00
Dillon Kearns
a9dc8c53e2 Remove unused constructor functions. 2020-10-01 12:01:54 -07:00
Dillon Kearns
3f0d3320c6 Add starting point for shared template. 2020-10-01 12:00:03 -07:00
Dillon Kearns
6b5b21e709 Update Template types. 2020-09-30 13:05:35 -07:00
Dillon Kearns
8182563f12 Narrow withLocalState signature. 2020-09-24 09:24:14 -07:00
Dillon Kearns
9bdfee82f6 Remove unused. 2020-09-24 09:12:14 -07:00
Dillon Kearns
222cd34f88 Remove obsolete type variables. 2020-09-24 09:10:56 -07:00
Dillon Kearns
9423b62a0c Add builder-style Template API. 2020-09-24 09:04:15 -07:00
Dillon Kearns
dd3f824e4e Remove DynamicPayload type and update TemplateType wiring. 2020-09-16 21:08:12 -07:00
Dillon Kearns
fce79cdaf6 Rename GlobalMetadata to TemplateType. 2020-09-16 19:18:25 -07:00
Dillon Kearns
e71e90172a Wire in subscriptions for templates. 2020-09-14 22:05:36 -07:00
Dillon Kearns
86da9973bd Use Template.sandbox for blog post template. 2020-09-13 21:31:49 -07:00
Dillon Kearns
a8ab464507 Remove unused template helper. 2020-09-13 21:31:32 -07:00
Dillon Kearns
2996470c17 Use sandbox for Template.Page. 2020-09-13 21:16:21 -07:00
Dillon Kearns
9497438f8c Rename Template.template to application. 2020-09-13 21:06:47 -07:00
Dillon Kearns
59a7402809 Add sandbox template constructor. 2020-09-13 21:05:32 -07:00
Dillon Kearns
55f2a4bcd4 Wire in DynamicPayload for Template modules' update. 2020-09-13 16:38:57 -07:00
Dillon Kearns
819993f74b Add placeholder for static data in Site module. 2020-09-13 08:02:35 -07:00
Dillon Kearns
785d6ae85a Use site config module. 2020-09-13 07:19:09 -07:00
Dillon Kearns
a9db326fa4 Rename some global things to shared. 2020-09-12 09:16:56 -07:00
Dillon Kearns
6214964257 Rename global to shared. 2020-09-12 09:15:24 -07:00
Dillon Kearns
e033c3796e Remove unused code. 2020-09-06 13:41:24 -07:00
Dillon Kearns
b762c655a4 Rename module. 2020-09-06 13:37:24 -07:00
Dillon Kearns
417849bb09 Remove unused. 2020-09-06 13:32:29 -07:00
Dillon Kearns
8c2fc23112 Remove unused, restore some file generators. 2020-09-06 13:29:19 -07:00
Dillon Kearns
384d80798a Remove unused. 2020-09-06 13:12:30 -07:00
Dillon Kearns
d5b2a9df09 Clean up some type annotations. 2020-09-06 13:03:46 -07:00
Dillon Kearns
e4c8c0a578 Remove a type variable. 2020-09-06 13:00:35 -07:00
Dillon Kearns
d6790c479c Use static payload for head function. 2020-09-06 12:42:05 -07:00
Dillon Kearns
40614be38f Pass in global static in static bundle. 2020-09-06 12:29:46 -07:00
Dillon Kearns
651de61146 Change Template signatures and use Template alias instead of TemplateDocument module. 2020-09-06 08:41:24 -07:00
Dillon Kearns
eb8c0ffabc Remove save hook. 2020-09-05 22:17:28 -07:00
Dillon Kearns
57310bacd8 Wire in global model to view. 2020-09-05 21:31:14 -07:00
Dillon Kearns
87eb2408cc Stop generating save function. 2020-09-05 21:13:38 -07:00
Dillon Kearns
b66b0ba45c Wire up new shared update msg. 2020-09-05 21:02:05 -07:00
Dillon Kearns
dc9e34207a Init local model with load from global model. 2020-09-01 23:49:23 -07:00
Dillon Kearns
6bebe4f32c Persist global state. 2020-09-01 23:03:50 -07:00
Dillon Kearns
9e8659b305 Remove toMsg and toGlobalMsg and change msg type for rendered document. 2020-09-01 22:38:57 -07:00
Dillon Kearns
bddcd02141 Add example of global state. 2020-09-01 17:50:40 -07:00
Dillon Kearns
40b86aba83 Rename function. 2020-09-01 17:44:00 -07:00
Dillon Kearns
94f018e2ae Add save and load functions. 2020-09-01 17:11:54 -07:00
Dillon Kearns
7a6e9b77f2 Rename function. 2020-08-26 22:05:12 -07:00
Dillon Kearns
e2c5919466 Introduce new template constructor. 2020-08-26 21:14:52 -07:00
Dillon Kearns
0308587581 Make a simpler constructor function. 2020-08-26 20:31:49 -07:00
Dillon Kearns
50ba51864e Use type alias and rename variable. 2020-08-26 20:07:50 -07:00
Dillon Kearns
307f1bdf25 Wire in toMsg and toGlobalMsg. 2020-08-24 22:13:14 -07:00
Dillon Kearns
98bd2d56fc Rename type. 2020-08-24 21:14:19 -07:00
Dillon Kearns
1e3bfe373a Remove unused code. 2020-08-23 21:32:32 -07:00
Dillon Kearns
c3dadba35d Update docs. 2020-08-23 21:10:31 -07:00
Dillon Kearns
534d204323 Wire in site metadata to docs sidebar. 2020-08-23 20:56:25 -07:00
Dillon Kearns
d98d94747a Remove coupling to elm-ui and elm-markdown packages in generated template connector. 2020-08-23 13:15:31 -07:00
Dillon Kearns
959130aae0 Pass in subscriptions explicitly to template builder, and let caller pipe through toProgram. 2020-08-23 10:44:00 -07:00
Dillon Kearns
375006e342 Escape literal backslashes and wire in code generation. 2020-08-23 08:00:49 -07:00
Dillon Kearns
0ce57d2750 Use wildcard for update function for now. 2020-08-23 07:34:09 -07:00
Dillon Kearns
c6a3eac95b Remove unused. 2020-08-22 21:09:36 -07:00
Dillon Kearns
15797e52ea Remove unsued. 2020-08-22 20:51:18 -07:00
Dillon Kearns
9de74530ad Wire in global metadata. 2020-08-22 17:37:00 -07:00
Dillon Kearns
f9275a9ec3 Merge branch 'master' into template-modules 2020-08-22 17:16:49 -07:00
Dillon Kearns
6c06f06c1b Add documentation page template. 2020-06-06 16:20:24 -07:00
Dillon Kearns
0e0446c397 Use template builder for Showcase template module. 2020-06-06 16:10:18 -07:00
Dillon Kearns
feeef824c7 Remove extra exports. 2020-06-06 16:07:26 -07:00
Dillon Kearns
033fb21f7b Remove extra exports. 2020-06-06 16:06:10 -07:00
Dillon Kearns
f1aaa85b92 Remove extra exports. 2020-06-06 16:04:25 -07:00
Dillon Kearns
67620a5124 Update docs site dependencies. 2020-06-06 15:21:33 -07:00
Dillon Kearns
f4c7058d14 Wire in Msgs to templates. 2020-06-01 19:57:07 -07:00
Dillon Kearns
923120d2f1 Use exposed template value for another template. 2020-05-30 18:56:53 -07:00
Dillon Kearns
4bb89478df Add template builder function. 2020-05-30 18:51:22 -07:00
Dillon Kearns
fab5c09844 Move user-defined metadata to its own module. 2020-05-27 12:58:11 -07:00
Dillon Kearns
ec513fd0b8 Move some metadata to an external module to prevent circular dependencies. 2020-05-26 20:51:38 -07:00
Dillon Kearns
de49f37dee Remove some unused code. 2020-05-24 12:36:01 -07:00
Dillon Kearns
2ff13c00e3 Wire in blog index with an empty list of posts for now. 2020-05-24 12:33:17 -07:00