mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-05-04 15:16:44 +00:00
Some more Svelte implementation
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user