ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
web_assets.h
Go to the documentation of this file.
1// Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2// SPDX-License-Identifier: AGPL-3.0-or-later
3//
4// GENERATED by web_assets/wizard/build_assets.py - DO NOT EDIT BY HAND.
5// Edit the source documents under 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 web_assets/input/.
10 *
11 * One declaration per source document under 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 web_assets/input/ and re-run web_assets/wizard/build_assets.py.
14 */
15
16#ifndef PROTOCORE_WEB_ASSETS_H
17#define PROTOCORE_WEB_ASSETS_H
18
19// ---- html ----
20/** @brief Real-time SVG telemetry dashboard page (PC_ENABLE_DASHBOARD). */
21extern const char PC_DASHBOARD_PAGE[];
22
23/** @brief Captive-portal form for WiFi credential entry (provisioning service). */
24extern const char PC_PROV_FORM[];
25
26/** @brief Success page shown after credentials are saved and the device reboots. */
27extern const char PC_PROV_SAVED_HTML[];
28
29/** @brief Self-contained WebSocket terminal page (green-phosphor CRT theme; auto ws/wss). */
30extern const char PC_TERMINAL_PAGE[];
31
32// ---- js ----
33/** @brief Service worker: precaches the app shell from the versioned manifest and serves it stale-while-revalidate. */
34extern const char PC_SERVICE_WORKER[];
35
36// ---- json ----
37/** @brief Runtime stats JSON (rendered via send_template); add/rename fields to taste. */
38extern const char PC_STATS_JSON[];
39
40// ---- text ----
41/** @brief All available Prometheus metrics; comment a value line out with a leading # to drop it. */
42extern const char PC_METRICS_PROM[];
43
44#endif // PROTOCORE_WEB_ASSETS_H
const char PC_STATS_JSON[]
Runtime stats JSON (rendered via send_template); add/rename fields to taste.
const char PC_PROV_FORM[]
Captive-portal form for WiFi credential entry (provisioning service).
const char PC_METRICS_PROM[]
All available Prometheus metrics; comment a value line out with a leading # to drop it.
const char PC_DASHBOARD_PAGE[]
Real-time SVG telemetry dashboard page (PC_ENABLE_DASHBOARD).
const char PC_SERVICE_WORKER[]
Service worker: precaches the app shell from the versioned manifest and serves it stale-while-revalid...
const char PC_PROV_SAVED_HTML[]
Success page shown after credentials are saved and the device reboots.
const char PC_TERMINAL_PAGE[]
Self-contained WebSocket terminal page (green-phosphor CRT theme; auto ws/wss).