diff --git a/.gitignore b/.gitignore index 84c048a..781919a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /build/ +/WEBGUI diff --git a/HTML/adapters.html b/HTML/adapters.html deleted file mode 100644 index 89a77ef..0000000 --- a/HTML/adapters.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - -~name~ - - - - -
-
-
-
-
-
-
ETHERNET
- - - - - - -
-
- -
-
-
- -
-
-
LORAWAN
-
- -
- -
- - - - - - - -
Application key:
- -
-
-
- -
-
-
-
WiFi
- - - - - - -
-

- - - - - - - - -
WiFi mode:
-
- - - - -
-
-
- -
-
-
GPRS
-
- - -
- -
-
-
-
-
-
- - - \ No newline at end of file diff --git a/HTML/api/dbg.json b/HTML/api/dbg.json deleted file mode 100644 index 8305477..0000000 --- a/HTML/api/dbg.json +++ /dev/null @@ -1,11 +0,0 @@ -{ -"Udac":"~urms~", -"Idac":"~irms~", -"Pint":"~pwr~", -"Iclb1":"~iclb1~", -"Iclb2":"~iclb2~" -"ATT":"~att~", -"Nsumm":"~nsum~", -"Ni":["~n(0)~","~n(1)~","~n(2)~","~n(3)~","~n(4)~","~n(5)~","~n(6)~","~n(7)~","~n(8)~","~n(9)~","~n(10)~","~n(11)~","~n(12)~","~n(13)~","~n(14)~","~n(15)~"], -"rfpwr":"~rfp~" -} diff --git a/HTML/api/dbg2.json b/HTML/api/dbg2.json deleted file mode 100644 index a1499af..0000000 --- a/HTML/api/dbg2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ -"files":"~pagesnum~", -"pkt":"~pktok~", -"pkt_lost":"~pktloss~", -"http_tmt":"~httptmt~", -"mqtt_tmt":"~mqttrcn~", -"wifi_rbt":"~esptmt~", -"rx_ovr":"~rxoverload~", -"mqttping_err":"~mpger~", -"mqttpub_err":"~mpber~" -} diff --git a/HTML/api/gendata.json b/HTML/api/gendata.json deleted file mode 100644 index 7cd4a86..0000000 --- a/HTML/api/gendata.json +++ /dev/null @@ -1,2 +0,0 @@ -{"counter":{"ctime":"~time~","pp1":"~pp1~","pp2":"~pp2~","tt1":"~tt1~","tt2":"~tt2~"}, -"memvect":{"v5m":"~v5m~","v1h":"~v1h~","v1d":"~v1d~"}} \ No newline at end of file diff --git a/HTML/api/mem.json b/HTML/api/mem.json deleted file mode 100644 index 2eb1577..0000000 --- a/HTML/api/mem.json +++ /dev/null @@ -1,9 +0,0 @@ -{"mem":[ -"~m(0)~", -"~m(1)~", -"~m(2)~", -"~m(3)~", -"~m(4)~", -"~m(5)~", -"~m(6)~", -"~m(7)~"]} \ No newline at end of file diff --git a/HTML/api/set1.json b/HTML/api/set1.json deleted file mode 100644 index 815aad3..0000000 --- a/HTML/api/set1.json +++ /dev/null @@ -1 +0,0 @@ -{"lgn":"~login~","psn":"~pass~","apn":"~apn~","cln":"~cln~","wfiap":"~ssidap~","wfpap":"~wkeyap~","ipaap":"~ipap~","wfi":"~ssid~","wfp":"~wkey~","dhcp":"~cbdh~","ipa":"~ip~","mas":"~msk~","gte":"~gate~","mac":"~macadr~"} \ No newline at end of file diff --git a/HTML/api/set2.json b/HTML/api/set2.json deleted file mode 100644 index 9c6c1f7..0000000 --- a/HTML/api/set2.json +++ /dev/null @@ -1 +0,0 @@ -{"cld":"~ipcld~","prt":"~mport~","idd":"~idcld~","top":"~topic~","clps":"~clpass~","tsr":"~tmsrv~"} \ No newline at end of file diff --git a/HTML/api/set3.json b/HTML/api/set3.json deleted file mode 100644 index b4830f9..0000000 --- a/HTML/api/set3.json +++ /dev/null @@ -1 +0,0 @@ -{"nam":"~dname~","led":"~led~","fver":"~fver~","fdat":"~builddate~","ser":"~serial~"} \ No newline at end of file diff --git a/HTML/api/stat.json b/HTML/api/stat.json deleted file mode 100644 index 2da2e3f..0000000 --- a/HTML/api/stat.json +++ /dev/null @@ -1,19 +0,0 @@ -{"time":"~time~", -"uptime":"~uptime~", -"wlev":"~wlev~", -"vlsys":"~vlsys~", -"vlin":"~vlin~", -"vlbat":"~vlbat~", -"ethstat":"~ethstat~", -"wfstat":"~wfstat~", -"gsmstat":"~gsmstat~", -"lrstat":"~lrstat~", -"mqtt1st":"~mqtt1st~", -"mqtt2st":"~mqtt2st~", -"defadp":"~defadp~", -"freeram":"~freeram~", -"minram":"~minram~", -"fver":"~fver~", -"fverav":"~fverav~", -"updstat":"~updstat~" -} \ No newline at end of file diff --git a/HTML/api/status.json b/HTML/api/status.json deleted file mode 100644 index 11a73d9..0000000 --- a/HTML/api/status.json +++ /dev/null @@ -1,13 +0,0 @@ -{"time":"~time~", -"uptime":"~uptime~", -"wlev":"~wlev~", -"vlsys":"~vlsys~", -"vlin":"~vlin~", -"vlbat":"~vlbat~", -"dname":"~dname~", -"zred":"~zrd~", -"zyel":"~zyl~", -"zgrn":"~zgr~", -"sred":"~srd~", -"syel":"~syl~", -"sgrn":"~sgr~"} \ No newline at end of file diff --git a/HTML/api/tmr.json b/HTML/api/tmr.json deleted file mode 100644 index 5f6c197..0000000 --- a/HTML/api/tmr.json +++ /dev/null @@ -1 +0,0 @@ -{"tmr":["~t(1)~","~t(2)~","~t(3)~","~t(4)~","~t(5)~","~t(6)~","~t(7)~","~t(8)~","~t(9)~","~t(10)~","~t(11)~","~t(12)~","~t(13)~","~t(14)~","~t(15)~","~t(16)~"]} \ No newline at end of file diff --git a/HTML/api/users.json b/HTML/api/users.json deleted file mode 100644 index 6ed6a93..0000000 --- a/HTML/api/users.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "id": 0, - "name": "John" - }, - { - "id": 1, - "name": "Jane" - }, - { - "id": 2, - "name": "Jack" - }, - { - "id": 3, - "name": "Jill" - } -] \ No newline at end of file diff --git a/HTML/api/wifiscan.json b/HTML/api/wifiscan.json deleted file mode 100644 index 0c984d5..0000000 --- a/HTML/api/wifiscan.json +++ /dev/null @@ -1,22 +0,0 @@ -[ -~wifisc(0)~, -~wifisc(1)~, -~wifisc(2)~, -~wifisc(3)~, -~wifisc(4)~, -~wifisc(5)~, -~wifisc(6)~, -~wifisc(7)~, -~wifisc(8)~, -~wifisc(9)~, -~wifisc(10)~, -~wifisc(11)~, -~wifisc(12)~, -~wifisc(13)~, -~wifisc(14)~, -~wifisc(15)~, -~wifisc(16)~, -~wifisc(17)~, -~wifisc(18)~, -~wifisc(19)~ -] \ No newline at end of file diff --git a/HTML/application.html b/HTML/application.html deleted file mode 100644 index d5f8282..0000000 --- a/HTML/application.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - -~name~ - - - - - -
-
-
-
-
-
-
TIMERS
-
-
-
- - -
-
-
-
-
-
- - - diff --git a/HTML/espfs.paths b/HTML/espfs.paths deleted file mode 100644 index 49eedd0..0000000 --- a/HTML/espfs.paths +++ /dev/null @@ -1,35 +0,0 @@ -adapters.html -api -api/dbg.json -api/dbg2.json -api/gendata.json -api/mem.json -api/set1.json -api/set2.json -api/set3.json -api/stat.json -api/status.json -api/tmr.json -api/users.json -api/wifiscan.json -application.html -favicon.ico -index.html -info.html -reboot.html -res -res/appstyles.css -res/ca_cert.pem -res/cron.js -res/crondata.js -res/dynamic.css -res/iconsfont.css -res/iconsfont.woff2 -res/logo.png -res/main.js -res/res.js -res/sha256.js -res/styles.css -res/vue.global.prod.js -services.html -system.html \ No newline at end of file diff --git a/HTML/favicon.ico b/HTML/favicon.ico deleted file mode 100644 index fd3f906..0000000 Binary files a/HTML/favicon.ico and /dev/null differ diff --git a/HTML/index.html b/HTML/index.html deleted file mode 100644 index 29253d5..0000000 --- a/HTML/index.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - ~name~ - - - - - -
-
-
- -
-
-
-
-
This device brand name


-
- -
-
-
-
- -
-
- -
- - - \ No newline at end of file diff --git a/HTML/info.html b/HTML/info.html deleted file mode 100644 index b2ab733..0000000 --- a/HTML/info.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - -~name~ - - - - -
-
-
-
-
-
Info
-
-
-
-
-
Help
-
-
-
-
-
About
-
-
-
-
-
- - - \ No newline at end of file diff --git a/HTML/reboot.html b/HTML/reboot.html deleted file mode 100644 index 016db8c..0000000 --- a/HTML/reboot.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - WiFi Controller ~dname~ - - - -
Saving settings and rebooting device... -

Completed  ? %

- - - \ No newline at end of file diff --git a/HTML/res/appstyles.css b/HTML/res/appstyles.css deleted file mode 100644 index a70f66b..0000000 --- a/HTML/res/appstyles.css +++ /dev/null @@ -1,265 +0,0 @@ -:root { - /*========== Colors ==========*/ - --bgr-color: ~bgrclr~; - --panel-bgr-color: ~pnlclr~; - --menu-bgr-color: ~mnuclr~; - --accent-color: ~actclr~; - --text-color: ~fntclr~; - --border-color: ~brdclr~; - - --light-grey: #b0b0b0; - --white: #f0f0f0; - - /*========== Font and typography ==========*/ - --body-font: 'Consolas','Roboto', monospace; - --large-font-size: 1.2rem; - --normal-font-size: 0.9rem; - --small-font-size: .9rem; - --smaller-font-size: .8rem; - - /*========== Font weight ==========*/ - --font-medium: 500; - --font-semi-bold: 600; -} - -.rl{text-align:right;} - -input, select, .btn, .lab, textarea { - font:.85rem consolas,monospace; - padding: 5px; - background-color:var(--panel-bgr-color); - color:var(--text-color); - border:1px solid var(--border-color); - border-radius: 5px; - height:2.0rem; - margin: 15px 3px; - vertical-align: middle; -} - -input::-webkit-outer-spin-button, -input::-webkit-inner-spin-button { - -webkit-appearance: none; - margin: 0; -} - -select { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background-color: var(--panel-bgr-color); - min-width: 100px; -} - -.btn{min-width:100px; color:var(--text-color);} -.btn:active{background-color: var(--accent-color); border:none;} -.btn:hover {border:1px solid var(--border-color);} - -.lab {border: none;} - -textarea { - height: 4.0rem; - margin:auto; - vertical-align: top; - min-width: 300px; -} - -.stg td{width:auto;padding:1px;margin:0} -.stg input {height:25px} -input[type="radio"] { margin-top: -1px; vertical-align: middle;} -.stg table{margin: 5px auto} -.dot {height: 30px; - width: 30px; - background-color: var(--light-grey); - border-radius: 40%; - display: inline-block; - margin: 7px 20px} - -.cntr { - margin:auto; - font: .85rem consolas, monospace;} - -.pwrbox{width:80%; height:auto; padding:5px; margin:10px auto; box-sizing:border-box;} -.pwrbox td {font: .9rem consolas, monospace; width:30%; padding:0;margin:0;} - -.container{ -display: flex; -flex-wrap:wrap;} - -div label input {margin-right: 100px;} - -.cat{ - margin: 4px; - background-color: var(--first-color); - border-radius: 5px; - border: 1px solid var(--border-color); - overflow: hidden; - float: left; -} -.cat label {float: left; line-height: 2.6em; width: 2.6em; height: 2.6em;} -.cat label span {text-align: center; padding: 0px 0px; display: block;} -.cat label input { position: absolute; display: none;color: var(--text-color) !important;} -.cat label input + span{color: var(--text-color);} - -.cat input:checked + span { - color: var(--text-color); - /*text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);*/ -} -input:checked + span{background-color: var(--accent-color);} - -.channel{ width:100%; - display: flex; - flex-wrap:no-wrap; - margin:10px; -} - -.chnam{ - display: flex; - align-items: center; -} - -.rngval { - -webkit-appearance: none; - margin: auto 10px; - width: 70%; - height: 5px; - border: none; - background: var(--accent-color); - outline: none; - opacity: 0.7; - -webkit-transition: .2s; - transition: opacity .2s; -} - -.rngval::-webkit-slider-thumb { - -webkit-appearance: none; - appearance: none; - width: 25px; - height: 25px; - border-radius: 50%; - background: var(--text-color); - cursor: pointer; -} - -.rngval::-moz-range-thumb { - width: 25px; - height: 25px; - border-radius: 50%; - background: var(--text-color); - cursor: pointer; -} - -.inpval{ - display: flex; - align-items: center; -} - -.switch { - position: relative; - display: inline-block; - width: 42px; - height: 24px; - margin: 10px 20px; -} - -.switch input { - opacity: 0; - width: 0; - height: 0; -} - -.slider { - position: absolute; - cursor: pointer; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: var(--light-grey); - -webkit-transition: .4s; - transition: .4s; -} - -.slider:before { - position: absolute; - content: ""; - height: 18px; - width: 18px; - left: 3px; - bottom: 3px; - background-color: var(--white); - -webkit-transition: .4s; - transition: .4s; -} - -input:checked + .slider { - background-color: var(--accent-color); -} - -input:focus + .slider { - box-shadow: 0 0 1px var(--accent-color); -} - -input:checked + .slider:before { - -webkit-transform: translateX(18px); - -ms-transform: translateX(18px); - transform: translateX(18px); -} - -/* Rounded sliders */ -.slider.round { - border-radius: 24px; -} - -.slider.round:before { - border-radius: 50%; -} - -/*Timer styles*/ -.timer -{ -width:100%; -margin: 10px 0 0 0; -padding: 10px; -border: 1px solid var(--border-color); -border-radius: 10px; -} - -.timerrec { -width:100%; -display: flex; -flex-wrap:wrap; -} - -.tmbtn{ -float:right; - -} -.tmlab{ -float:left; -color: var(--accent-color); -} - -.nowrap -{ -display: flex; -flex-wrap:no-wrap; -align-items: center; -width:100%; -} - -.crselect -{ -display: inline-block; -vertical-align: top; -overflow: hidden; -height:auto; -min-height:30px; -width:120px; -margin-top: 0; -} -.selhed -{ - margin: 15px 5px 2px 5px; -} - - diff --git a/HTML/res/ca_cert.pem b/HTML/res/ca_cert.pem deleted file mode 100644 index adb46c8..0000000 --- a/HTML/res/ca_cert.pem +++ /dev/null @@ -1,31 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/ -MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT -DkRTVCBSb290IENBIFgzMB4XDTIxMDEyMDE5MTQwM1oXDTI0MDkzMDE4MTQwM1ow -TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh -cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwggIiMA0GCSqGSIb3DQEB -AQUAA4ICDwAwggIKAoICAQCt6CRz9BQ385ueK1coHIe+3LffOJCMbjzmV6B493XC -ov71am72AE8o295ohmxEk7axY/0UEmu/H9LqMZshftEzPLpI9d1537O4/xLxIZpL -wYqGcWlKZmZsj348cL+tKSIG8+TA5oCu4kuPt5l+lAOf00eXfJlII1PoOK5PCm+D -LtFJV4yAdLbaL9A4jXsDcCEbdfIwPPqPrt3aY6vrFk/CjhFLfs8L6P+1dy70sntK -4EwSJQxwjQMpoOFTJOwT2e4ZvxCzSow/iaNhUd6shweU9GNx7C7ib1uYgeGJXDR5 -bHbvO5BieebbpJovJsXQEOEO3tkQjhb7t/eo98flAgeYjzYIlefiN5YNNnWe+w5y -sR2bvAP5SQXYgd0FtCrWQemsAXaVCg/Y39W9Eh81LygXbNKYwagJZHduRze6zqxZ -Xmidf3LWicUGQSk+WT7dJvUkyRGnWqNMQB9GoZm1pzpRboY7nn1ypxIFeFntPlF4 -FQsDj43QLwWyPntKHEtzBRL8xurgUBN8Q5N0s8p0544fAQjQMNRbcTa0B7rBMDBc -SLeCO5imfWCKoqMpgsy6vYMEG6KDA0Gh1gXxG8K28Kh8hjtGqEgqiNx2mna/H2ql -PRmP6zjzZN7IKw0KKP/32+IVQtQi0Cdd4Xn+GOdwiK1O5tmLOsbdJ1Fu/7xk9TND -TwIDAQABo4IBRjCCAUIwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYw -SwYIKwYBBQUHAQEEPzA9MDsGCCsGAQUFBzAChi9odHRwOi8vYXBwcy5pZGVudHJ1 -c3QuY29tL3Jvb3RzL2RzdHJvb3RjYXgzLnA3YzAfBgNVHSMEGDAWgBTEp7Gkeyxx -+tvhS5B1/8QVYIWJEDBUBgNVHSAETTBLMAgGBmeBDAECATA/BgsrBgEEAYLfEwEB -ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu -b3JnMDwGA1UdHwQ1MDMwMaAvoC2GK2h0dHA6Ly9jcmwuaWRlbnRydXN0LmNvbS9E -U1RST09UQ0FYM0NSTC5jcmwwHQYDVR0OBBYEFHm0WeZ7tuXkAXOACIjIGlj26Ztu -MA0GCSqGSIb3DQEBCwUAA4IBAQAKcwBslm7/DlLQrt2M51oGrS+o44+/yQoDFVDC -5WxCu2+b9LRPwkSICHXM6webFGJueN7sJ7o5XPWioW5WlHAQU7G75K/QosMrAdSW -9MUgNTP52GE24HGNtLi1qoJFlcDyqSMo59ahy2cI2qBDLKobkx/J3vWraV0T9VuG -WCLKTVXkcGdtwlfFRjlBz4pYg1htmf5X6DYO8A4jqv2Il9DjXA6USbW1FzXSLr9O -he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC -Dfvp7OOGAN6dEOM4+qR9sdjoSYKEBpsr6GtPAQw4dy753ec5 ------END CERTIFICATE----- \ No newline at end of file diff --git a/HTML/res/cron.js b/HTML/res/cron.js deleted file mode 100644 index c6a2e4c..0000000 --- a/HTML/res/cron.js +++ /dev/null @@ -1,281 +0,0 @@ -var tarr; -var cron_objs; -var cron_acts; -function loadcrondata(arr1, arr2, arr3) -{ -tarr = arr1; -cron_objs = arr2; -cron_acts = arr3; -} - -function PostData(data,page,conf,alrt,reld) { -if(conf){if (!confirm(conf)) return;} -var xhr = new XMLHttpRequest(); -xhr.open('POST',page, true); -xhr.timeout = 5000; -xhr.send(data); -xhr.onreadystatechange = function() { -if (xhr.readyState != 4) return; -if (Number(xhr.status) >= 400) {alert(xhr.status+': '+xhr.statusText);} -else {if(reld)location.reload(); -if(alrt) alert(alrt); -}}} - -function savetm(n) { -var payload = "tmrec={\"num\":"+n+","; -payload += "\"enab\":"+((document.getElementById("encb"+n).checked)?1:0)+","; -payload += "\"prev\":"+((document.getElementById("prev"+n).checked)?1:0)+","; -payload += "\"name\":\""+document.getElementById("tname"+n).value+"\","; -payload += "\"obj\":"+document.getElementById("object"+n).value+","; -payload += "\"act\":"+document.getElementById("action"+n).value+","; -payload += "\"cron\":\""+document.getElementById("cron"+n).value+"\""; -payload += "}"; -console.log(payload); -PostData(payload, "application.html", false, false, true); -} -function deltm(n) { - if(confirm("Confirm delete timer "+n+"?") == true){ - PostData("deltimer="+n, "application.html", false, false, true);}} -function addtm() { - PostData("addtimer=any", "application.html", false, false, true);} -function extractSelectArr(select){ - var result = []; - var options = select && select.options; - var opt; - for (var i=0, iLen=options.length; i 1 ) - grouped+=intbeg+"-"+result[i]; - else - grouped+=intbeg+","+result[i]; - } - else - grouped+=result[i]; - } - if(i < result.length -1 && !inside) - grouped+=","; - } - return grouped; -} -function handleSelect(tnum, type){ - var cinp = document.getElementById("cron" + tnum); - var c = (cinp.value).split(" "); - if(c.length != 6) - { - alert("Cron string was edited and not valid"); - return; - } - switch(type) - { - case 1: - var s = extractSelectArr(document.getElementById("seconds")); - if (s != null) c[0] = s; - break; - case 2: - var m = extractSelectArr(document.getElementById("minutes")); - if (m != null) c[1] = m; - break; - case 3: - var h = extractSelectArr(document.getElementById("hours")); - if (h != null) c[2] = h; - break; - case 4: - var d = extractSelectArr(document.getElementById("days")); - if (d != null) c[3] = d; - break; - case 5: - var mm = extractSelectArr(document.getElementById("months")); - if (mm != null) c[4] = mm; - break; - case 6: - var w = extractSelectArr(document.getElementById("weekdays")); - if (w != null) c[5] = w; - break; - } - cinp.value = c[0] + " " + c[1] + " " + c[2] + " " + c[3] + " " + c[4] + " " + c[5]; -} - -function setcron(n) { - var target = document.getElementById("cronext" + n); - var content = ""; - content +=("
"); - content += ("
"); - - content +=("
"); - content += ("
"); - - content +=("
"); - content += ("
"); - - content +=("
"); - content += ("
"); - - content +=("
"); - content += ("
"); - - content +=("
"); - content += ("
"); - var mainbut = document.getElementById("setcronbut"+n); - mainbut.innerHTML = "Close editor"; - mainbut.onclick = function (){ var target = document.getElementById("cronext"+n); - target.innerHTML = ""; mainbut.innerHTML = "Open editor"; mainbut.onclick = function(){setcron(n)};} - target.innerHTML = content; -} -function actupdate(i){ - var content = ""; - newobj = document.getElementById("object" + i).value; - for (k = 0; k < cron_acts.length; k++) { - var selected = (tarr[i - 1].act == k) ? "selected" : ""; - if(cron_objs[newobj].acts.includes(k)) - content += ("");} - document.getElementById("action" + i).innerHTML = content; - } - -function drawtimers() { - var num = tarr.length; - var target = document.getElementById("timer"); - var content = ""; - for (i = 1; i <= num; i++) { - if(tarr[i-1].del == 1) continue; - content += ("
"); - content += (""); - content += ("
"); - - content += ("
"); - content +=(""); - var enb = (tarr[i - 1].enab == 1) ? "checked" : ""; - content += ("
"); - - content += ("
"); - content +=(""); - enb = (tarr[i - 1].prev == 1) ? "checked" : ""; - content += ("
"); - - - content += ("
"); - content +=(""); - content += ("
"); - - content += ("
"); - content +=("
"); - content += ("
"); - - content += ("
"); - content +=("
"); - content += ("
"); - - - - - content += ("
"); - content +=(""); - content += ("
"); - content += ("
") - content += ("
"); - - /*Extended editor content*/ - content += ("
"); - - content += (""); - content += (""); - content += ("
"); - } - target.innerHTML = content; -} - - diff --git a/HTML/res/crondata.js b/HTML/res/crondata.js deleted file mode 100644 index 01ad9ec..0000000 --- a/HTML/res/crondata.js +++ /dev/null @@ -1,47 +0,0 @@ -timarr = [ - ~crontmr(0)~, - ~crontmr(1)~, - ~crontmr(2)~, - ~crontmr(3)~, - ~crontmr(4)~, - ~crontmr(5)~, - ~crontmr(6)~, - ~crontmr(7)~, - ~crontmr(8)~, - ~crontmr(9)~, - ~crontmr(10)~, - ~crontmr(11)~, - ~crontmr(12)~, - ~crontmr(13)~, - ~crontmr(14)~, - ~crontmr(15)~ - ]; - -cron_objs= [ - ~cronobjs(0)~, - ~cronobjs(1)~, - ~cronobjs(2)~, - ~cronobjs(3)~, - ~cronobjs(4)~, - ~cronobjs(5)~, - ~cronobjs(6)~, - ~cronobjs(7)~, - ~cronobjs(8)~, - ~cronobjs(9)~, - ~cronobjs(10)~, - ~cronobjs(11)~, - ~cronobjs(12)~, - ~cronobjs(13)~, - ~cronobjs(14)~, - ~cronobjs(15)~ - ]; - -cron_acts = [ - ~cronacts(0)~, - ~cronacts(1)~, - ~cronacts(2)~, - ~cronacts(3)~, - ~cronacts(4)~, - ~cronacts(5)~, - ~cronacts(6)~ - ]; diff --git a/HTML/res/dynamic.css b/HTML/res/dynamic.css deleted file mode 100644 index ff95c7c..0000000 --- a/HTML/res/dynamic.css +++ /dev/null @@ -1,4 +0,0 @@ - /*========== Colors ==========*/ -:root { - -} \ No newline at end of file diff --git a/HTML/res/iconsfont.css b/HTML/res/iconsfont.css deleted file mode 100644 index 22cbd7c..0000000 --- a/HTML/res/iconsfont.css +++ /dev/null @@ -1,63 +0,0 @@ -@font-face { - font-family: 'iconsfont'; - src: url('iconsfont.woff2') format('woff2'); - font-weight: normal; - font-style: normal; -} -/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ -/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ -/* -@media screen and (-webkit-min-device-pixel-ratio:0) { - @font-face { - font-family: 'iconsfont'; - src: url('../font/iconsfont.svg?14637405#iconsfont') format('svg'); - } -} -*/ -[class^="icon-"]:before, [class*=" icon-"]:before { - font-family: "iconsfont"; - font-style: normal; - font-weight: normal; - speak: never; - - display: inline-block; - text-decoration: inherit; - width: 1em; - margin-right: .2em; - text-align: center; - /* opacity: .8; */ - - /* For safety - reset parent styles, that can break glyph codes*/ - font-variant: normal; - text-transform: none; - - /* fix buttons height, for twitter bootstrap */ - line-height: 1em; - - /* Animation center compensation - margins should be symmetric */ - /* remove if not needed */ - margin-left: .2em; - - /* you can be more comfortable with increased icons size */ - /* font-size: 120%; */ - - /* Font smoothing. That was taken from TWBS */ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - - /* Uncomment for 3D effect */ - /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ -} - -.icon-mail:before { content: '\e800'; } /* '' */ -.icon-picture:before { content: '\e801'; } /* '' */ -.icon-info-circled:before { content: '\e802'; } /* '' */ -.icon-user:before { content: '\e805'; } /* '' */ -.icon-wrench:before { content: '\e806'; } /* '' */ -.icon-cog-alt:before { content: '\e807'; } /* '' */ -.icon-chart-bar:before { content: '\e808'; } /* '' */ -.icon-down-open:before { content: '\e809'; } /* '' */ -.icon-home:before { content: '\e80a'; } /* '' */ -.icon-menu:before { content: '\f0c9'; } /* '' */ -.icon-sliders:before { content: '\f1de'; } /* '' */ -.icon-wifi:before { content: '\f1eb'; } /* '' */ diff --git a/HTML/res/iconsfont.woff2 b/HTML/res/iconsfont.woff2 deleted file mode 100644 index cd5eeb7..0000000 Binary files a/HTML/res/iconsfont.woff2 and /dev/null differ diff --git a/HTML/res/logo.png b/HTML/res/logo.png deleted file mode 100644 index af7fc39..0000000 Binary files a/HTML/res/logo.png and /dev/null differ diff --git a/HTML/res/main.js b/HTML/res/main.js deleted file mode 100644 index 7c29fa2..0000000 --- a/HTML/res/main.js +++ /dev/null @@ -1,161 +0,0 @@ -function PostData(data,page,conf,alrt,reld) { -if(conf){if (!confirm(conf)) return;} -var xhr = new XMLHttpRequest(); -xhr.open('POST',page, true); -xhr.timeout = 5000; -xhr.send(data); -xhr.onreadystatechange = function() { -if (xhr.readyState != 4) return; -if (Number(xhr.status) >= 400) {alert(xhr.status+': '+xhr.statusText);} -else {if(reld)location.reload(); -if(alrt) alert(alrt); -}}} - -function PostJSONData(data,page,conf,alrt,reld) { -if(conf){if (!confirm(conf)) return;} -var xhr = new XMLHttpRequest(); -xhr.open('POST',page, true); -xhr.setRequestHeader('Content-type', 'application/json'); -xhr.timeout = 5000; -xhr.send(data); -xhr.onreadystatechange = function() { -if (xhr.readyState != 4) return; -if (Number(xhr.status) >= 200) {alert(xhr.status+': '+xhr.statusText+'\n'+xhr.responseText);} -else {if(reld)location.reload(); -if(alrt) alert(alrt); -}}} - -function GetDataFile(file, callback) { -var xhr = new XMLHttpRequest(); -xhr.overrideMimeType("application/json"); -xhr.open("GET", file, true); -xhr.onreadystatechange = function() {if (xhr.readyState === 4 && xhr.status == "200") {callback(xhr.responseText);}} -xhr.timeout = 5000; -xhr.send(null); -} - -function configIPBoxes() { -e = document.forms.conf; -var ap = document.getElementsByName('netm'); -st = e.dhcp.checked; -function apmode(m){ -e.wfiap.disabled = m; -e.wfpap.disabled = m; -e.ipaap.disabled = m; -} -function clnmode(m){ -e.wfi.disabled = m; -e.wfp.disabled = m; -e.ipa.disabled = m; -e.mas.disabled = m; -e.gte.disabled = m; -} -if(ap[0].checked){ -apmode(true); -clnmode(false); -e.ipa.disabled = st; -e.mas.disabled = st; -e.gte.disabled = st; -} -if(ap[1].checked){ -apmode(false); -clnmode(true); -} -} - -function configIPBoxes2() { -e = document.forms.conf; -st2 = e.tsen.checked; -e.tsr.disabled = !st2; -st3 = e.clen.checked; -e.cld.disabled = !st3; -e.idd.disabled = !st3; -e.top.disabled = !st3; -e.prt.disabled = !st3; -e.clnm.disabled = !st3; -e.clps.disabled = !st3; -e.ssen.disabled = !st3; -} - -function configIPBoxesOCPP() { -e = document.forms.conf; -} - -function UnixToStr(t, base, sec) -{ -if(t.lenth < 10) t = '000000000'; -var d; -if (base == 16) d = new Date(parseInt(t,16)*1000); -else d = new Date(parseInt(t,10)*1000); -var dd = d.getDate(); if (dd < 10) dd = '0' + dd; -var mm = d.getMonth() + 1; if (mm < 10) mm = '0' + mm; -var yy = d.getFullYear() % 100; if (yy < 10) yy = '0' + yy; -var h = d.getHours(); if (h < 10) h = '0' + h; -var m = d.getMinutes(); if (m < 10) m = '0' + m; -var s = d.getSeconds(); if (s < 10) s = '0' + s; -d=yy+'/'+mm+'/'+dd+' '+h+':'+m; -if(sec==1) d+=':'+s; -return d; -} - -function FloatToString(f) -{ -var buffer = new ArrayBuffer(4); -var bytes = new Uint8Array(buffer); -var doubles = new Float32Array(buffer); -bytes[3] = '0x'+f.substr(6,2); -bytes[2] = '0x'+f.substr(4,2); -bytes[1] = '0x'+f.substr(2,2); -bytes[0] = '0x'+f.substr(0,2); -return doubles[0]; -} - -function sendtime() { -var ut = Date.parse(new Date( Date.parse(document.getElementById('curdt').value)))/1000; -var xhr = new XMLHttpRequest(); -xhr.open('POST', 'index23.html', true); -var body = 'timenow=' + ut; -xhr.send(body); -xhr.onreadystatechange = function() { -if (xhr.readyState != 4) return; -if (xhr.status != 200) { -alert(xhr.status + ': ' + xhr.statusText); -} else { -alert('Time changed'); -} -} -} - -function Pst(Rqv,Pag,Conf){ -if (confirm(Conf)) { -var xhr = new XMLHttpRequest(); -xhr.open('POST',Pag, true); -xhr.send(Rqv); -xhr.onreadystatechange = function() { -if (xhr.readyState != 4) return; -if (xhr.status != 200) { -alert(xhr.status + ': ' + xhr.statusText); -} else { -location.reload(); -} -} -} -} - - - - -/*==================== SHOW NAVBAR ====================*/ -const showMenu = (headerToggle, navbarId) =>{ - const toggleBtn = document.getElementById(headerToggle), - nav = document.getElementById(navbarId) - // Validate that variables exist - if(headerToggle && navbarId){ - toggleBtn.addEventListener('click', ()=>{ - // We add the show-menu class to the div tag with the nav__menu class - nav.classList.toggle('show-menu') - // change icon - toggleBtn.classList.toggle('bx-x') - }) - } -} diff --git a/HTML/res/res.js b/HTML/res/res.js deleted file mode 100644 index 2e7d8b3..0000000 --- a/HTML/res/res.js +++ /dev/null @@ -1,102 +0,0 @@ -var hedmen = ` -
-
- LOGO - -
- -
-
-
- -`; - -function PageSurround() -{document.write(hedmen);} - -function PrintIPInput(title,name,value){document.write(""+title+"");} -function PrintMACInput(title,name,value){document.write(""+title+"");} -function PrintTextInput(title,name,value,min,max){document.write(""+title+"");} -function PrintTextInputID(title,id,value,min,max){document.write(""+title+"");} -function PrintHexInput(title,name,value,min,max){document.write(""+title+"");} -function PrintTextInputNoReg(title,name,value,min,max){document.write(""+title+"");} -function PrintLabel(title,value){document.write(""+title+""+value+"");} -function PrintSpanLabel(title,idx){document.write(""+title+"?");} -function PrintCheckBox(title,name,checked,action){document.write(""+title+"");} -function PrintSwitch(title,name,checked,action){document.write(""+title+"");} -function PrintInt(title,name,value,min,max){document.write(""+title+"");} -function PrintIntId(title,id,value,min,max){document.write(""+title+"");} -function PrintSep(){document.write("");} -function PrintSaveBtn(form){document.write("");} -function PrintApplyBtn(form){document.write("");} -function PrintSaveFail(isfail){document.write("

Wrong data format!


");} diff --git a/HTML/res/sha256.js b/HTML/res/sha256.js deleted file mode 100644 index 81bb16f..0000000 Binary files a/HTML/res/sha256.js and /dev/null differ diff --git a/HTML/res/styles.css b/HTML/res/styles.css deleted file mode 100644 index 4dc5f56..0000000 --- a/HTML/res/styles.css +++ /dev/null @@ -1,358 +0,0 @@ -/*========== VARIABLES CSS ==========*/ -@import "./appstyles.css"; -:root { - --header-height: 50px; - --nav-width: 200px; - /*========== z index ==========*/ - --z-fixed: 100; -} - -@media screen and (min-width: 1024px) { - :root { - --normal-font-size: 1.0rem; - --small-font-size: .9rem; - --smaller-font-size: .8rem; - } -} - -/*========== BASE ==========*/ -*, ::before, ::after { - box-sizing: border-box; -} - -body { - margin: var(--header-height) 0 0 0; - padding: 0 0 0; - font-family: var(--body-font); - font-size: var(--normal-font-size); - background-color: var(--bgr-color); - color: var(--text-color); -} - -h3 { - margin: 0; -} - -a { - text-decoration: none; -} - -img { - max-width: 100%; - height: auto; -} - -/*========== HEADER ==========*/ -.header { - position: fixed; - top: 0; - left: 0; - width: 100%; - background-color: var(--accent-color); - - padding: 0 1rem; - z-index: var(--z-fixed); -} - -.header__container { - display: flex; - align-items: center; - height: var(--header-height); - justify-content: space-between; -} - -.header__img { - width: 35px; - height: 35px; - border-radius: 5%; -} - -.header__logo { - color: var(--menu-bgr-color); - font-weight: var(--font-semi-bold); - - /*color: var(--text-color); - font-weight: var(--font-medium); - */ - font-size: var(--large-font-size); - - margin-left: 50px; - /*display: none;*/ -} - -.header__icon, -.header__toggle { - font-size: 1.2rem; -} - -.header__toggle { - color: var(--text-color); - cursor: pointer; -} - -/*========== NAV ==========*/ -.nav { - position: fixed; - top: 0; - left: -100%; - height: 100vh; - padding: 1rem 1rem 0; - background-color: var(--menu-bgr-color); - box-shadow: 1px 0 0 rgba(22, 8, 43, 0.1); - z-index: var(--z-fixed); - transition: .4s; -} - -.nav__container { - height: 100%; - display: flex; - flex-direction: column; - justify-content: space-between; - padding-bottom: 3rem; - overflow: auto; - scrollbar-width: none; /* For mozilla */ -} - -/* For Google Chrome and others */ -.nav__container::-webkit-scrollbar { - display: none; -} - -.nav__logo { - font-weight: var(--font-semi-bold); - margin-bottom: 2.5rem; -} - -.nav__list, -.nav__items { - display: grid; -} - -.nav__list { - row-gap: 2.5rem; -} - -.nav__items { - row-gap: 1.5rem; -} - -.nav__subtitle { - font-size: var(--normal-font-size); - text-transform: uppercase; - letter-spacing: .1rem; - color: var(--text-color); -} - -.nav__link { - display: flex; - align-items: center; - color: var(--text-color); -} - -.nav__link:hover { - color: var(--accent-color); -} - -.nav__icon { - font-size: 1.2rem; - margin-right: .5rem; -} - -.nav__name { - font-size: var(--small-font-size); - font-weight: var(--font-medium); - white-space: nowrap; -} - -.nav__logout { - margin-top: 5rem; -} - -/* Dropdown */ -.nav__dropdown { - overflow: hidden; - max-height: 21px; - transition: .4s ease-in-out; -} - -.nav__dropdown-collapse { - background-color: var(--menu-bgr-color); - border-radius: .5rem; - margin-top: 1rem; -} - -.nav__dropdown-content { - display: grid; - row-gap: .5rem; - padding: .75rem 2.5rem .75rem 2.5rem; -} - -.nav__dropdown-item { - font-size: var(--small-font-size); - font-weight: var(--font-medium); - color: var(--text-color); - margin: 3px 3px; -} - -.nav__dropdown-item:hover { - color: var(--accent-color); -} - -.nav__dropdown-icon { - margin-left: auto; - transition: .4s; -} - -/* Show dropdown collapse */ -.nav__dropdown:hover { - max-height: 100rem; -} - -/* Rotate icon arrow */ -.nav__dropdown:hover .nav__dropdown-icon { - transform: rotate(180deg); -} - -/*===== Show menu =====*/ -.show-menu { - left: 0; -} - -/*===== Active link =====*/ -.active { - color: var(--text-color-active); -} - -/* ========== MEDIA QUERIES ==========*/ -/* For small devices reduce search*/ -@media screen and (max-width: 320px) { - .header__search { - width: 70%; - } -} - -@media screen and (min-width: 768px) { - body { - padding: 0 0 0 var(--nav-width); - } - .header { - padding: 0 3rem 0 var(--nav-width); - } - .header__container { - height: var(--header-height); - } - .header__search { - width: 300px; - padding: .55rem .75rem; - } - .header__toggle { - display: none; - } - .header__logo { - display: block; - } - .header__img { - width: 40px; - height: 40px; - order: 1; - } - .nav { - left: 0; - padding: 1.2rem 1.2rem 0; - width: 4.0rem; /* Reduced navbar */ - } - .nav__items { - row-gap: 2.0rem; - } - .nav__icon { - font-size: 1.0rem; - } - - /* Element opacity */ - .nav__logo-name, - .nav__name, - .nav__subtitle, - .nav__dropdown-icon { - opacity: 0; - transition: .3s; - } - - - /* Navbar expanded */ - .nav { - width: var(--nav-width); - - } - - /* Visible elements */ - .nav__logo-name { - opacity: 1; - } - .nav__subtitle { - opacity: 1; - } - .nav .nav__name { - opacity: 1; - } - .nav .nav__dropdown-icon { - opacity: 1; - } -} - -.mlhdr { - font:16px consolas,monospace; - font-weight:bold; - color: var(--accent-color); - margin: auto; -} - -.mlp { - break-inside: avoid; -} -.mlpc { - margin: 0 0 10px 10px; - padding: 10px; - background-color:var(--panel-bgr-color); - border-radius: 10px; -} - -.ml { - column-count: 1; - column-gap: 0; - padding: 10px 10px 0 0; -} -@media (min-width: 900px) { - .ml { - column-count: 2; - } -} -@media (min-width: 1400px) { - .ml { - column-count: 3; - } -} - -.hide{ - display:none; -} - -.scanbar { - visibility: hidden; - height: 20px; - margin: 0 10px; -} - -.clerr { - color:#b00000; - font-weight:bold; -} -.clwarn { - color:#b0b000; - font-weight:bold; -} -.clok { - color:#00b000; - font-weight:bold; -} - - diff --git a/HTML/res/vue.global.prod.js b/HTML/res/vue.global.prod.js deleted file mode 100644 index c2d1037..0000000 Binary files a/HTML/res/vue.global.prod.js and /dev/null differ diff --git a/HTML/services.html b/HTML/services.html deleted file mode 100644 index 3e1d7a1..0000000 --- a/HTML/services.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - ~name~ - - - - - -
-
-
- -
-
-
-
SNTP
- - - -
- - -
- Set time manually:
- -


-
- -
-
-
- -
-
-
-
MQTT1
- -
- - -
-
-
- -
-
-
-
MQTT2
- - -
- - -
-
-
- - - -
-
-
- - - \ No newline at end of file diff --git a/HTML/system.html b/HTML/system.html deleted file mode 100644 index 8813c0f..0000000 --- a/HTML/system.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - ~name~ - - - - -
-
-
- -
-
-
-
SYSTEM
-
- - - -
-
-
- -
-
-
-
FIRMWARE UPDATE
-
-
Update firmware URL:
- - -
- - - -
Current firmware version:?
Available firmware version:?
Current status:?
- - -
-
-
- -
-
-
-
STAT
-
- ?
- Uptime:?

- Signal WiFi:?
-
-
- - - - - - - - - - - - -
Ethernet:?
WiFi:?
GPRS:?
Current net adapter:?
MQTT connection 1:?
MQTT connection 2:?
Free RAM:?
Minimal free RAM :?
- -
-
-
-
-
-
-
APPEARANCE
- - - - -
Color scheme:
- -
-
-
- -
-
-
- - - - \ No newline at end of file diff --git a/WEBUI/api/stat.json b/WEBUI/api/stat.json deleted file mode 100644 index 2da2e3f..0000000 --- a/WEBUI/api/stat.json +++ /dev/null @@ -1,19 +0,0 @@ -{"time":"~time~", -"uptime":"~uptime~", -"wlev":"~wlev~", -"vlsys":"~vlsys~", -"vlin":"~vlin~", -"vlbat":"~vlbat~", -"ethstat":"~ethstat~", -"wfstat":"~wfstat~", -"gsmstat":"~gsmstat~", -"lrstat":"~lrstat~", -"mqtt1st":"~mqtt1st~", -"mqtt2st":"~mqtt2st~", -"defadp":"~defadp~", -"freeram":"~freeram~", -"minram":"~minram~", -"fver":"~fver~", -"fverav":"~fverav~", -"updstat":"~updstat~" -} \ No newline at end of file diff --git a/WEBUI/api/status.json b/WEBUI/api/status.json deleted file mode 100644 index 1a48c8f..0000000 --- a/WEBUI/api/status.json +++ /dev/null @@ -1 +0,0 @@ -{ "wifipwr": "-59dBm", "ssidap": "MY_AP" } diff --git a/WEBUI/assets/ErrorNotFound.562fe7bf.js b/WEBUI/assets/ErrorNotFound.562fe7bf.js deleted file mode 100644 index ab304f4..0000000 --- a/WEBUI/assets/ErrorNotFound.562fe7bf.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,Z as o,$ as s,aa as a,a9 as e,a2 as n,a8 as r}from"./index.9eb1fee9.js";const c=o({name:"ErrorNotFound"}),l={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},d=e("div",{style:{"font-size":"30vh"}}," 404 ",-1),i=e("div",{class:"text-h2",style:{opacity:".4"}}," Oops. Nothing here... ",-1);function _(p,f,u,h,x,m){return s(),a("div",l,[e("div",null,[d,i,n(r,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])])}var N=t(c,[["render",_]]);export{N as default}; diff --git a/WEBUI/assets/IndexPage1.f9bec0e4.js b/WEBUI/assets/IndexPage1.f9bec0e4.js deleted file mode 100644 index 20ccc7b..0000000 --- a/WEBUI/assets/IndexPage1.f9bec0e4.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as a}from"./QPage.abe5dab2.js";import{_ as t,Z as s,$ as n,a0 as o,a1 as r,a9 as e}from"./index.9eb1fee9.js";const c=s({name:"IndexPage1"}),p=e("h1",null,[e("p",null,"First page")],-1);function _(f,l,d,i,x,m){return n(),o(a,{class:"flex flex-center"},{default:r(()=>[p]),_:1})}var g=t(c,[["render",_]]);export{g as default}; diff --git a/WEBUI/assets/IndexPage2.d880ef6c.js b/WEBUI/assets/IndexPage2.d880ef6c.js deleted file mode 100644 index 5deec68..0000000 Binary files a/WEBUI/assets/IndexPage2.d880ef6c.js and /dev/null differ diff --git a/WEBUI/assets/IndexPage3.28c02226.css b/WEBUI/assets/IndexPage3.28c02226.css deleted file mode 100644 index 66b9e05..0000000 --- a/WEBUI/assets/IndexPage3.28c02226.css +++ /dev/null @@ -1 +0,0 @@ -.my-card[data-v-270f00e0]{width:320px} diff --git a/WEBUI/assets/IndexPage3.4a23b1c3.js b/WEBUI/assets/IndexPage3.4a23b1c3.js deleted file mode 100644 index 318e5cd..0000000 --- a/WEBUI/assets/IndexPage3.4a23b1c3.js +++ /dev/null @@ -1 +0,0 @@ -import{j as _,ag as g,_ as D,Z as V,r as h,$ as s,aa as n,ad as v,ab as b,a2 as t,a1 as i,ah as m,a9 as d,ai as r,a0 as L,a8 as k,ac as q,aj as w,ak as C,al as I}from"./index.9eb1fee9.js";import{api as y}from"./axios.6428d162.js";function B(){return _(g)}const P=[{id:0,key:"wifipwr",val:"0dBm",lab:"WiFi power"},{id:1,key:"ssidap",val:"MY_AP",lab:"AP name"},{id:2,key:"key",val:"val",lab:"Label"},{id:3,key:"key",val:"val",lab:"Label"},{id:4,key:"key",val:"val",lab:"Label"},{id:5,key:"key",val:"val",lab:"Label"},{id:6,key:"key",val:"val",lab:"Label"},{id:7,key:"key",val:"val",lab:"Label"},{id:8,key:"key",val:"val",lab:"Label"},{id:9,key:"key",val:"val",lab:"Label"}],S=V({name:"IndexPage3",setup(){const a=h(P),l=B();function u(){y.get("/status.json").then(o=>{a.value[0].key=o.data.wifipwr,a.value[1].key=o.data.ssidap}).catch(()=>{l.notify({color:"negative",position:"top",message:"Loading failed",icon:"report_problem"})})}function p(){y.post("/status.json",JSON.stringify(a.value)).then(o=>{}).catch(()=>{l.notify({color:"negative",position:"top",message:"Loading failed",icon:"report_problem"})})}return{Data:a,loadData:u,saveData:p}}}),$=a=>(C("data-v-270f00e0"),a=a(),I(),a),j={class:"q-pa-md row items-start q-gutter-md"},Q=$(()=>d("div",{class:"text-h6"},"WiFi",-1)),U={class:"q-pa-md"},F={class:"q-gutter-md"},N={class:"q-pa-md q-gutter-sm"};function A(a,l,u,p,o,W){return s(),n("div",j,[(s(),n(v,null,b(1,c=>t(w,q({flat:"",bordered:"",class:"my-card"},c,{key:c}),{default:i(()=>[t(m,null,{default:i(()=>[Q]),_:1}),t(m,{class:"q-pt-none"},{default:i(()=>[d("div",U,[d("div",F,[t(r,{modelValue:a.Data[0].val,"onUpdate:modelValue":l[0]||(l[0]=e=>a.Data[0].val=e),label:a.Data[0].lab},null,8,["modelValue","label"]),t(r,{modelValue:a.Data[1].val,"onUpdate:modelValue":l[1]||(l[1]=e=>a.Data[1].val=e),label:a.Data[1].lab},null,8,["modelValue","label"]),(s(!0),n(v,null,b(a.Data,e=>(s(),L(r,{modelValue:e.val,"onUpdate:modelValue":f=>e.val=f,label:e.lab,key:e.id},null,8,["modelValue","onUpdate:modelValue","label"]))),128))])])]),_:1}),d("div",N,[t(k,{color:"primary",icon:"file_download",label:"Get data",onClick:a.loadData},null,8,["onClick"]),t(k,{color:"primary",icon:"file_upload",label:"Send data",onClick:a.saveData},null,8,["onClick"])])]),_:2},1040)),64))])}var J=D(S,[["render",A],["__scopeId","data-v-270f00e0"]]);export{J as default}; diff --git a/WEBUI/assets/KFOkCnqEu92Fr1MmgVxIIzQ.34e9582c.woff b/WEBUI/assets/KFOkCnqEu92Fr1MmgVxIIzQ.34e9582c.woff deleted file mode 100644 index 13aa71b..0000000 Binary files a/WEBUI/assets/KFOkCnqEu92Fr1MmgVxIIzQ.34e9582c.woff and /dev/null differ diff --git a/WEBUI/assets/KFOlCnqEu92Fr1MmEU9fBBc-.9ce7f3ac.woff b/WEBUI/assets/KFOlCnqEu92Fr1MmEU9fBBc-.9ce7f3ac.woff deleted file mode 100644 index d23163b..0000000 Binary files a/WEBUI/assets/KFOlCnqEu92Fr1MmEU9fBBc-.9ce7f3ac.woff and /dev/null differ diff --git a/WEBUI/assets/KFOlCnqEu92Fr1MmSU5fBBc-.bf14c7d7.woff b/WEBUI/assets/KFOlCnqEu92Fr1MmSU5fBBc-.bf14c7d7.woff deleted file mode 100644 index 9127659..0000000 Binary files a/WEBUI/assets/KFOlCnqEu92Fr1MmSU5fBBc-.bf14c7d7.woff and /dev/null differ diff --git a/WEBUI/assets/KFOlCnqEu92Fr1MmWUlfBBc-.e0fd57c0.woff b/WEBUI/assets/KFOlCnqEu92Fr1MmWUlfBBc-.e0fd57c0.woff deleted file mode 100644 index facece1..0000000 Binary files a/WEBUI/assets/KFOlCnqEu92Fr1MmWUlfBBc-.e0fd57c0.woff and /dev/null differ diff --git a/WEBUI/assets/KFOlCnqEu92Fr1MmYUtfBBc-.f6537e32.woff b/WEBUI/assets/KFOlCnqEu92Fr1MmYUtfBBc-.f6537e32.woff deleted file mode 100644 index a5a58c3..0000000 Binary files a/WEBUI/assets/KFOlCnqEu92Fr1MmYUtfBBc-.f6537e32.woff and /dev/null differ diff --git a/WEBUI/assets/KFOmCnqEu92Fr1Mu4mxM.f2abf7fb.woff b/WEBUI/assets/KFOmCnqEu92Fr1Mu4mxM.f2abf7fb.woff deleted file mode 100644 index d32c0a0..0000000 Binary files a/WEBUI/assets/KFOmCnqEu92Fr1Mu4mxM.f2abf7fb.woff and /dev/null differ diff --git a/WEBUI/assets/MainLayout.5a99c433.js b/WEBUI/assets/MainLayout.5a99c433.js deleted file mode 100644 index 7dbdb81..0000000 Binary files a/WEBUI/assets/MainLayout.5a99c433.js and /dev/null differ diff --git a/WEBUI/assets/QPage.abe5dab2.js b/WEBUI/assets/QPage.abe5dab2.js deleted file mode 100644 index 695910d..0000000 --- a/WEBUI/assets/QPage.abe5dab2.js +++ /dev/null @@ -1 +0,0 @@ -import{c as g,j as r,k as t,m as h,N as p,a as s,h as d,d as y,g as f}from"./index.9eb1fee9.js";var C=g({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(a,{slots:i}){const{proxy:{$q:o}}=f(),e=r(h,t);if(e===t)return console.error("QPage needs to be a deep child of QLayout"),t;if(r(p,t)===t)return console.error("QPage needs to be child of QPageContainer"),t;const c=s(()=>{const n=(e.header.space===!0?e.header.size:0)+(e.footer.space===!0?e.footer.size:0);if(typeof a.styleFn=="function"){const l=e.isContainer.value===!0?e.containerHeight.value:o.screen.height;return a.styleFn(n,l)}return{minHeight:e.isContainer.value===!0?e.containerHeight.value-n+"px":o.screen.height===0?n!==0?`calc(100vh - ${n}px)`:"100vh":o.screen.height-n+"px"}}),u=s(()=>`q-page${a.padding===!0?" q-layout-padding":""}`);return()=>d("main",{class:u.value,style:c.value},y(i.default))}});export{C as Q}; diff --git a/WEBUI/assets/axios.6428d162.js b/WEBUI/assets/axios.6428d162.js deleted file mode 100644 index 809c054..0000000 Binary files a/WEBUI/assets/axios.6428d162.js and /dev/null differ diff --git a/WEBUI/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff b/WEBUI/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff deleted file mode 100644 index 4365980..0000000 Binary files a/WEBUI/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff and /dev/null differ diff --git a/WEBUI/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 b/WEBUI/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 deleted file mode 100644 index c3f6e5f..0000000 Binary files a/WEBUI/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 and /dev/null differ diff --git a/WEBUI/assets/index.9eb1fee9.js b/WEBUI/assets/index.9eb1fee9.js deleted file mode 100644 index 8989d06..0000000 Binary files a/WEBUI/assets/index.9eb1fee9.js and /dev/null differ diff --git a/WEBUI/assets/index.e110aa66.css b/WEBUI/assets/index.e110aa66.css deleted file mode 100644 index e0df924..0000000 Binary files a/WEBUI/assets/index.e110aa66.css and /dev/null differ diff --git a/WEBUI/espfs.paths b/WEBUI/espfs.paths deleted file mode 100644 index 434f6a4..0000000 --- a/WEBUI/espfs.paths +++ /dev/null @@ -1,25 +0,0 @@ -api -api/stat.json -api/status.json -assets -assets/ErrorNotFound.562fe7bf.js -assets/IndexPage1.f9bec0e4.js -assets/IndexPage2.d880ef6c.js -assets/IndexPage3.28c02226.css -assets/IndexPage3.4a23b1c3.js -assets/KFOkCnqEu92Fr1MmgVxIIzQ.34e9582c.woff -assets/KFOlCnqEu92Fr1MmEU9fBBc-.9ce7f3ac.woff -assets/KFOlCnqEu92Fr1MmSU5fBBc-.bf14c7d7.woff -assets/KFOlCnqEu92Fr1MmWUlfBBc-.e0fd57c0.woff -assets/KFOlCnqEu92Fr1MmYUtfBBc-.f6537e32.woff -assets/KFOmCnqEu92Fr1Mu4mxM.f2abf7fb.woff -assets/MainLayout.5a99c433.js -assets/QPage.abe5dab2.js -assets/axios.6428d162.js -assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff -assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 -assets/index.9eb1fee9.js -assets/index.e110aa66.css -favicon.ico -icons -index.html \ No newline at end of file diff --git a/WEBUI/favicon.ico b/WEBUI/favicon.ico deleted file mode 100644 index fd3f906..0000000 Binary files a/WEBUI/favicon.ico and /dev/null differ diff --git a/WEBUI/index.html b/WEBUI/index.html deleted file mode 100644 index 3e54408..0000000 --- a/WEBUI/index.html +++ /dev/null @@ -1,3 +0,0 @@ -ESP32 web interface - -
\ No newline at end of file diff --git a/components/webguiapp b/components/webguiapp index 8feca7d..e689f4a 160000 --- a/components/webguiapp +++ b/components/webguiapp @@ -1 +1 @@ -Subproject commit 8feca7d4701c1cb4a4440dbf85a3dc3ec6a2e16e +Subproject commit e689f4a2e197a3167ef70e098f8ee26e83164ad0