Some more Svelte implementation

This commit is contained in:
Gunnar Skjold
2022-11-01 20:59:38 +01:00
parent 65a09dcecf
commit b6f630b134
12 changed files with 396 additions and 76 deletions

View File

@@ -2,6 +2,7 @@ static const char HEADER_CACHE_CONTROL[] PROGMEM = "Cache-Control";
static const char HEADER_PRAGMA[] PROGMEM = "Pragma";
static const char HEADER_EXPIRES[] PROGMEM = "Expires";
static const char HEADER_AUTHENTICATE[] PROGMEM = "WWW-Authenticate";
static const char HEADER_LOCATION[] PROGMEM = "Location";
static const char CACHE_CONTROL_NO_CACHE[] PROGMEM = "no-cache, no-store, must-revalidate";
static const char CACHE_1HR[] PROGMEM = "public, max-age=3600";
@@ -11,6 +12,6 @@ static const char AUTHENTICATE_BASIC[] PROGMEM = "Basic realm=\"Secure Area\"";
static const char MIME_PLAIN[] PROGMEM = "text/plain";
static const char MIME_HTML[] PROGMEM = "text/html";
static const char MIME_JSON[] PROGMEM = "application/json";
static const char MIME_CSS[] PROGMEM = "text/css";
static const char MIME_JS[] PROGMEM = "text/javascript";
static const char MIME_JSON[] PROGMEM = "application/json";

View File

@@ -76,6 +76,7 @@ private:
void indexCss();
void githubSvg();
void sysinfoJson();
void dataJson();
void dayplotJson();
void monthplotJson();
@@ -83,6 +84,7 @@ private:
void temperatureJson();
void configurationJson();
void handleSave();
void notFound();
};