Embed gzipped web assets at build time and type LED edit commands.
Generate the web UI headers from c/web/ via scripts/embed_file.py (minify + gzip) and serve them with Content-Encoding, replacing the checked-in web_*.h blobs. Move the LED driver/presets into lib/leds, and parse preset edits into a typed cmd_preset_t on core0 instead of passing raw JSON to core1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3e9fc9663
commit
bf0429c505
19 files changed
+395
-2205
No files matched your search
@@ -31,9 +31,11 @@ bool httpserver_listen(httpserver_t *s, uint16_t port);
|
||||
void httpserver_send(httpserver_conn_t *conn, int status, const char *content_type,
|
||||
const void *body, size_t body_len);
|
||||
|
||||
/* Stream a large const body (no copy of entire file into conn buffer). */
|
||||
/* Stream a large const body (no copy of entire file into conn buffer).
|
||||
* content_encoding may be NULL, or e.g. "gzip". */
|
||||
void httpserver_send_static(httpserver_conn_t *conn, int status, const char *content_type,
|
||||
const uint8_t *body, size_t body_len);
|
||||
const uint8_t *body, size_t body_len,
|
||||
const char *content_encoding);
|
||||
|
||||
void httpserver_send_html(httpserver_conn_t *conn, const char *html);
|
||||
|
||||
|
||||
Reference in new issue
Block a user