ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
web_assets.h
Go to the documentation of this file.
1// ProtoCore v1.0.16 - Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2// SPDX-License-Identifier: AGPL-3.0-or-later
3//
4// GENERATED by src/web_assets/wizard/build_assets.py - DO NOT EDIT BY HAND.
5// Edit the source documents under src/web_assets/input/ and re-run the generator.
6
7/**
8 * @file web_assets.h
9 * @brief Layer 7 (Application) - embedded web assets generated from src/web_assets/input/.
10 *
11 * One declaration per source document under src/web_assets/input/ (its base name is the
12 * C symbol). On ESP32 these const arrays live in flash (DROM), read directly - no
13 * filesystem or heap. Edit src/web_assets/input/ and re-run src/web_assets/wizard/build_assets.py.
14 */
15
16#ifndef PROTOCORE_WEB_ASSETS_H
17#define PROTOCORE_WEB_ASSETS_H
18
19#include "protocore_config.h" // the entry point: the enable gate below, and the widths
20
21#if PROTOCORE_ENABLE_WEB_ASSETS
22
23// ---- html ----
24/** @brief Real-time SVG telemetry dashboard page (PROTOCORE_ENABLE_DASHBOARD). */
25extern const char PROTOCORE_DASHBOARD_PAGE[];
26
27/** @brief Captive-portal form for WiFi credential entry (provisioning service). */
28extern const char PROTOCORE_PROV_FORM[];
29
30/** @brief Success page shown after credentials are saved and the device reboots. */
31extern const char PROTOCORE_PROV_SAVED_HTML[];
32
33/** @brief Self-contained WebSocket terminal page (green-phosphor CRT theme; auto ws/wss). */
34extern const char PROTOCORE_TERMINAL_PAGE[];
35
36// ---- js ----
37/** @brief Service worker: precaches the app shell from the versioned manifest and serves it stale-while-revalidate. */
38extern const char PROTOCORE_SERVICE_WORKER[];
39
40// ---- json ----
41/** @brief Runtime stats JSON (rendered via send_template); add/rename fields to taste. */
42extern const char PROTOCORE_STATS_JSON[];
43
44// ---- text ----
45/** @brief All available Prometheus metrics; comment a value line out with a leading # to drop it. */
46extern const char PROTOCORE_METRICS_PROM[];
47
48#endif // PROTOCORE_ENABLE_WEB_ASSETS
49
50#endif // PROTOCORE_WEB_ASSETS_H