Commit Graph

943 Commits

Author SHA1 Message Date
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
594888776b Add missing dependency to slides project. 2021-04-23 10:16:40 -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
a493dd280f Change import alias. 2021-04-22 14:14:18 -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
f4197dd840 Fix off-by-one error in slides last page. 2021-04-21 06:05:04 -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
982d63ef86 Update start script. 2021-04-20 13:57:09 -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
5b17b96883 Remove unused module. 2021-04-17 13:48:18 -07:00
Dillon Kearns
c93176ec54 Fix slide count. 2021-04-16 16:19:49 -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
9453b5fb41 Wire in staticData to update with some hardcoding and Debug.todos. 2021-04-15 10:23:01 -07:00
Dillon Kearns
d3a41a812e Delete temporary comments. 2021-04-15 08:14:44 -07:00
Dillon Kearns
0744a4f7e6 Update slides project. 2021-04-14 17:17:22 -07:00
Dillon Kearns
ac1535f5b9 Wire in navigation key from template connector module. 2021-04-14 15:57:12 -07:00
Dillon Kearns
36cf57d937 Fix error in slides index.js. 2021-04-14 15:56:36 -07:00
Dillon Kearns
c3a9299f27 Remove unused files. 2021-04-14 14:55:27 -07:00
Dillon Kearns
63fd3be299 Wire in syntax highlighting in slides example. 2021-04-14 09:58:35 -07:00
Dillon Kearns
ed4cf2d2d4 Wire in navigation key. 2021-04-14 09:26:58 -07:00
Dillon Kearns
e72bcd83b7 Add key press subscription in slide page. 2021-04-14 08:56:36 -07:00
Dillon Kearns
881e380a30 Wire in local state to slides template. 2021-04-14 08:40:40 -07:00
Dillon Kearns
8ae7b6689c Underline links in tailwind renderer. 2021-04-14 08:40:32 -07:00
Dillon Kearns
55711852ea Use a tailwind renderer. 2021-04-14 08:32:46 -07:00
Dillon Kearns
c6d09e3bdf Remove generated files. 2021-04-14 07:47:36 -07:00
Dillon Kearns
5df19c76a8 Remove more unused. 2021-04-14 07:47:00 -07:00
Dillon Kearns
60cb4da2f2 Remove unused. 2021-04-14 07:36:16 -07:00
Dillon Kearns
166563ae16 Add a slides example project. 2021-04-14 07:33:51 -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
1a1ba2e4a3 Remove outdated examples. 2021-04-05 16:17:04 -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
938692b518 Rename some files in dist and add some preload tags. 2020-10-23 15:56:39 -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
1d71e5433d Copy style entrypoint from beta-style.css. 2020-10-20 20:55:30 -07:00
Dillon Kearns
2dad51714f Rename entry point to beta-index. 2020-10-20 20:52:36 -07:00
Dillon Kearns
5ad85cad0d Use ImagePath for manifest icons. 2020-10-20 20:48:21 -07:00
Dillon Kearns
48c31bcca2 Get docs site compiling with elm-pages build/develop. 2020-10-20 19:30:52 -07:00
Dillon Kearns
7376288e88 Pass through title to cli, add icon meta tags, fix external image url to not prepend canonical url. 2020-10-20 19:11:58 -07:00
Dillon Kearns
61a46aef91 Add icons to manifest config. 2020-10-20 16:41:00 -07:00
Dillon Kearns
b8a7b95698 Generate files. 2020-10-16 15:33:51 -07:00
Dillon Kearns
29aac16a33 Include ports in example. 2020-10-16 10:36:52 -07:00
Dillon Kearns
4137773928 Import user-index in example. 2020-10-16 10:36:12 -07:00
Dillon Kearns
094f108890 Remove unused variable. 2020-10-15 20:59:52 -07:00
Dillon Kearns
4b30a4b4bb Update beta index code. 2020-10-15 20:53:12 -07:00
Dillon Kearns
adf16677d2 Add links to example. 2020-10-15 20:41:14 -07:00
Dillon Kearns
3785838fd9 Copy stylesheet and include it. 2020-10-14 12:59:31 -07:00
Dillon Kearns
5b5b2b4cda Add script for testing lots of files in content folder. 2020-10-14 10:09:13 -07:00
Dillon Kearns
fbef4d6c15 Add gitignore for simple/gen. 2020-10-13 21:46:44 -07:00
Dillon Kearns
4587e235d8 Process one page at a time. 2020-10-13 21:02:12 -07:00
Dillon Kearns
2f256c800c Remove generated file. 2020-10-13 15:00:37 -07:00
Dillon Kearns
802f43cfb5 Import elm code as an es6 module. 2020-10-11 22:18:33 -07:00
Dillon Kearns
86ea65a3ba Generate multiple pages, and show error messages. 2020-10-11 21:21:34 -07:00
Dillon Kearns
7beaf5ddaf Set up proof of concept for webpack-free build. 2020-10-10 18:07:36 -07:00
Dillon Kearns
daa128796d Split off beta build process and add snapshot test. 2020-10-09 17:08:02 -07:00
Dillon Kearns
e327d7a25d Add simple example code. 2020-10-08 19:49:05 -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
Dillon Kearns
8a9cc44a2b Remove unused metadata type. 2020-05-24 10:34:57 -07:00
Dillon Kearns
eee1d7de71 Wire in update function to call template inits. 2020-05-24 09:24:48 -07:00
Dillon Kearns
c42be6b803 Wire in showcase template. 2020-05-24 08:52:09 -07:00
Dillon Kearns
3f946bdc46 Wire in the main Page template. 2020-05-24 08:36:40 -07:00
Dillon Kearns
a26a84e4b6 Remove some debug todos. 2020-05-23 18:59:07 -07:00
Dillon Kearns
48fd7a5fb5 Wire up init function. 2020-05-23 17:03:28 -07:00
Dillon Kearns
e9ff0faafb Add BlogPost template prototype. 2020-05-23 15:31:56 -07:00
Dillon Kearns
7aeec0f72e Add starting point for template modules file structure. 2020-05-20 06:42:52 -07:00
Dillon Kearns
784ddca3e0 Remove unnecessary CSS style. 2020-05-19 08:18:52 -07:00
Dillon Kearns
acb7ac3655 Wrap some paragraphs to prevent overflow. 2020-05-19 07:11:01 -07:00
Dillon Kearns
2e2ead57d8 Fix list item overflow by using Element.paragraph. 2020-05-19 06:54:02 -07:00
Dillon Kearns
154c3c9c5c Upgrade to latest elm-markdown. 2020-05-19 06:51:51 -07:00
Dillon Kearns
6d6cfe222e Fix some elm-ui vendor compiler errors. 2020-05-19 06:51:29 -07:00
Dillon Kearns
29deee3dc5 Vendor elm-ui. 2020-05-19 06:33:33 -07:00
Dillon Kearns
53ba6d8416 Rename function. 2020-05-11 11:40:27 -07:00
Dillon Kearns
0e00a72b67 Remove unnecessary diff noise. 2020-05-11 11:40:20 -07:00
Dillon Kearns
3a61933d81 Merge branch 'master' into phantom-builder 2020-05-11 10:40:58 -07:00
Dillon Kearns
4cf6ad9d92 Merge branch 'master' into generate-files-static-http 2020-05-11 09:27:30 -07:00
Dillon Kearns
d184e7f723
Merge pull request #91 from dillonkearns/cms/docs/core-concepts
Create Docs “core-concepts”
2020-05-10 17:54:00 -07:00
Dillon Kearns
91c3fb2dea Merge branch 'master' into structured-data 2020-05-10 15:08:39 -07:00
Dillon Kearns
87d810790f Move more of loading indicator style into Elm. 2020-05-08 07:13:16 -07:00
Dillon Kearns
3a1b7aea1d Move some styles inline in loading spinner. 2020-05-08 06:46:09 -07:00
Dillon Kearns
ee16b43404 Remove commented code. 2020-05-05 07:14:49 -07:00
Dillon Kearns
feb0572f6b Add shadow. 2020-05-05 06:55:27 -07:00
Dillon Kearns
ba7d7fdc9c Wire in a custom message for StaticHttp.fail. 2020-05-04 16:10:32 -07:00
Dillon Kearns
b49fe854d8 Formatting. 2020-05-04 14:01:00 -07:00
Dillon Kearns
03315da320 Change error message string. 2020-05-04 14:00:33 -07:00