Commit Graph

985 Commits

Author SHA1 Message Date
Dillon Kearns
c1febe27b6 Try temporarily moving code back into source directory for better elm-review fixes. 2022-02-04 09:12:19 -08:00
Dillon Kearns
55131aa828 Delete obsolete variant. 2022-02-04 09:09:12 -08:00
Dillon Kearns
ac687f398e Remove calls to distillBytes. 2022-02-04 09:01:08 -08:00
Dillon Kearns
18831846aa Remove distillBytes calls from generated entrypoint and make sure that DataSource's resolve without it. 2022-02-04 08:59:11 -08:00
Dillon Kearns
5f181ad1bc Update error formatter to handle being passed direct JSON values. 2022-02-04 08:56:40 -08:00
Dillon Kearns
194337c80d Delete log statement. 2022-02-03 20:44:18 -08:00
Dillon Kearns
38cd1c35c6 Review fixes. 2022-02-03 20:17:00 -08:00
Dillon Kearns
1ed1d8bb8a Remove some ContentCache references. 2022-02-03 20:11:22 -08:00
Dillon Kearns
69cdf963cf Remove some instances of content.json. 2022-02-03 20:08:45 -08:00
Dillon Kearns
550c66dacb Send shared data updates for dev server to make sure shared data hot reloads. 2022-02-03 18:30:49 -08:00
Dillon Kearns
6892ee8bc7 Inline value. 2022-02-03 17:45:57 -08:00
Dillon Kearns
d3e54fcff2 Inline value. 2022-02-03 16:56:48 -08:00
Dillon Kearns
1c9d6340f1 Simplify case expression. 2022-02-03 16:38:54 -08:00
Dillon Kearns
c9f78e7c5f Encode NotFound pages for dev server. 2022-02-03 14:59:54 -08:00
Dillon Kearns
062cbea918 Send wrapper type instead of individual page data for Bytes content.dat. 2022-02-03 14:01:45 -08:00
Dillon Kearns
163f611894 Prettier formatting. 2022-02-03 11:51:34 -08:00
Dillon Kearns
159c075324 Send content.dat updates for hot reloading. 2022-02-03 11:51:17 -08:00
Dillon Kearns
e435c994b5 Uncomment hot reload watcher. 2022-02-02 09:53:47 -08:00
Dillon Kearns
103433ade6 Use Lamdera Wire decoders to decode initial page data from flags. 2022-02-01 17:59:57 -08:00
Dillon Kearns
1ee6cef81e Render base64 string without btoa function to avoid error. 2022-02-01 11:07:24 -08:00
Dillon Kearns
934846b697 Use byte decoder fail instead of Debug.todo in generated code. 2022-02-01 11:01:50 -08:00
Dillon Kearns
502b2cf42b Delete log statements. 2022-02-01 11:01:40 -08:00
Dillon Kearns
8df1439025 Write content.dat files instead of content.json for build step, and include bytes format in pre-rendered HTML output. 2022-02-01 10:57:21 -08:00
Dillon Kearns
0418d98de3 Update package-lock. 2022-02-01 10:55:46 -08:00
Dillon Kearns
db4e2f289e Add missing variable. 2022-02-01 10:38:42 -08:00
Dillon Kearns
34db57235c Add TODO comment. 2022-02-01 10:11:56 -08:00
Dillon Kearns
fcdd39b910 Use byte encodings for content.dat in dev server. 2022-02-01 10:11:47 -08:00
Dillon Kearns
cfbbf71bf5 Check if port is defined before subscribing to avoid error if port is unused. 2022-01-29 09:15:19 -08:00
Dillon Kearns
8e3736d051 Use restoreColorSafe in more places. 2022-01-29 09:01:27 -08:00
Dillon Kearns
e638bd13fd Fix error with sending api responses from dev server. 2022-01-29 09:00:38 -08:00
Dillon Kearns
c3b8032683 Add missing report option to restore dev server compiler errors. 2022-01-28 18:01:04 -08:00
Dillon Kearns
2180ee09e1 Run elm-optimize-level-2 on lamdera output. 2022-01-28 12:03:47 -08:00
Dillon Kearns
b6135799fc Skip elm-optimize-level-2 for the lamdera build for now. 2022-01-28 11:26:30 -08:00
Dillon Kearns
a0462a647e Add safe error formatter function that prints raw error if it can't be JSON parsed, and improve error output for build. 2022-01-28 11:26:14 -08:00
Dillon Kearns
7ac4ceecde Add NoPrematureLetComputation review rule. 2022-01-28 08:27:04 -08:00
Dillon Kearns
59346721b5 Remove log. 2022-01-27 20:13:30 -08:00
Dillon Kearns
59fb87782a elm-review fixes. 2022-01-27 16:16:40 -08:00
Dillon Kearns
f82ae79e24 Remove obsolete SecretsDict usage. 2022-01-27 15:50:59 -08:00
Dillon Kearns
ed956ae341 Remove now obsolete Secrets API! 2022-01-27 15:45:51 -08:00
Dillon Kearns
d7dd124880 Show error output if it can't be parsed as JSON. 2022-01-26 15:03:44 -08:00
Dillon Kearns
7497934772 Merge branch 'lamdera-wire' into serverless-latest
# Conflicts:
#	examples/pokedex/netlify.toml
#	examples/pokedex/src/Api.elm
#	examples/pokedex/src/Page/Greet.elm
#	examples/pokedex/src/Page/Login.elm
#	src/Session.elm
2022-01-26 14:32:39 -08:00
Dillon Kearns
e2145a5844 Restore --report json option to make command. 2022-01-26 14:27:24 -08:00
Dillon Kearns
b979c5bc3c Run lamdera compiler instead of elm to make wire encoders available. 2022-01-26 14:27:15 -08:00
Dillon Kearns
d15a191d5a Distill shared data. 2022-01-26 10:45:05 -08:00
Dillon Kearns
9b4e4dab9b Log dev server errors in case they can't be decoded to JSON. 2022-01-26 08:36:48 -08:00
Dillon Kearns
3e9a93c636 Generate distillBytes with wire codecs for all page modules. 2022-01-25 21:56:02 -08:00
Dillon Kearns
21d9ae9e35 Add port to reload current page's data. 2022-01-25 11:20:18 -08:00
Dillon Kearns
e84232d67a Include form helper in build output elm file. 2022-01-24 20:54:53 -08:00
Dillon Kearns
f21b8b61b1 Add form data decoder and example. 2022-01-24 15:50:25 -08:00
Dillon Kearns
1becbff897 Wire through errors with session checksums. 2022-01-23 13:35:04 -08:00