diff --git a/ESP32_AP-Flasher/data/www/index.html.gz b/ESP32_AP-Flasher/data/www/index.html.gz index 1a2a528c..ee804f7c 100644 Binary files a/ESP32_AP-Flasher/data/www/index.html.gz and b/ESP32_AP-Flasher/data/www/index.html.gz differ diff --git a/ESP32_AP-Flasher/data/www/main.js.gz b/ESP32_AP-Flasher/data/www/main.js.gz index d0847f53..d726db29 100644 Binary files a/ESP32_AP-Flasher/data/www/main.js.gz and b/ESP32_AP-Flasher/data/www/main.js.gz differ diff --git a/ESP32_AP-Flasher/wwwroot/index.html b/ESP32_AP-Flasher/wwwroot/index.html index e856ce32..a0b8d0f5 100644 --- a/ESP32_AP-Flasher/wwwroot/index.html +++ b/ESP32_AP-Flasher/wwwroot/index.html @@ -32,7 +32,7 @@
-
loading
+
hourglass loading
folder_open
@@ -46,10 +46,10 @@
- - diff --git a/ESP32_AP-Flasher/wwwroot/main.js b/ESP32_AP-Flasher/wwwroot/main.js index e9fcfaae..270a09b8 100644 --- a/ESP32_AP-Flasher/wwwroot/main.js +++ b/ESP32_AP-Flasher/wwwroot/main.js @@ -17,14 +17,14 @@ let tagDB = {}; const previewWindows = []; const apstate = [ - { state: "offline", color: "red" }, - { state: "online", color: "green" }, - { state: "flashing", color: "orange" }, - { state: "wait for reset", color: "blue" }, - { state: "requires power cycle", color: "purple" }, - { state: "failed", color: "red" }, - { state: "coming online", color: "yellow" }, - { state: "AP without radio", color: "green" } + { state: "offline, please wait...", color: "orange", icon: "warning" }, + { state: "online", color: "green", icon: "check_circle" }, + { state: "flashing", color: "orange", icon: "flash_on" }, + { state: "wait for reset", color: "blue", icon: "hourglass" }, + { state: "AP requires power cycle", color: "purple", icon: "refresh" }, + { state: "failed", color: "red", icon: "error" }, + { state: "coming online...", color: "orange", icon: "hourglass" }, + { state: "AP without radio", color: "green", icon: "wifi_off" } ]; const runstate = [ { state: "⏹︎ stopped" }, @@ -71,9 +71,13 @@ window.addEventListener("loadConfig", function () { if (data.savespace) { } if (data.apstate) { + $("#apstatecolor").innerHTML = apstate[data.apstate].icon; $("#apstatecolor").style.color = apstate[data.apstate].color; $("#apstate").innerHTML = apstate[data.apstate].state; $('#dashboardStatus').innerHTML = apstate[data.apstate].state; + $('#dashboardStatus').style.color = apstate[data.apstate].color; + $('#dashboardStatusIcon').innerHTML = apstate[data.apstate].icon; + $('#dashboardStatusIcon').style.color = apstate[data.apstate].color; } }); }); @@ -215,10 +219,14 @@ function connect() { $("#sysinfo").innerHTML = str; if (msg.sys.apstate) { + $("#runstate").innerHTML = runstate[msg.sys.runstate].state; + $("#apstatecolor").innerHTML = apstate[msg.sys.apstate].icon; $("#apstatecolor").style.color = apstate[msg.sys.apstate].color; $("#apstate").innerHTML = apstate[msg.sys.apstate].state; - $("#runstate").innerHTML = runstate[msg.sys.runstate].state; $('#dashboardStatus').innerHTML = apstate[msg.sys.apstate].state; + $('#dashboardStatus').style.color = apstate[msg.sys.apstate].color; + $('#dashboardStatusIcon').innerHTML = apstate[msg.sys.apstate].icon; + $('#dashboardStatusIcon').style.color = apstate[msg.sys.apstate].color; } servertimediff = (Date.now() / 1000) - msg.sys.currtime; }
- check_circle + + hourglass + initialising...