mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-14 17:36:38 +02:00
parent
e5c0e8e996
commit
7b030a39d5
6 changed files with 21 additions and 13 deletions
|
@ -14,23 +14,24 @@ def check(inp, lst, pattern):
|
|||
x = re.findall(pattern, line)
|
||||
if len(x) > 0:
|
||||
if line.find("ENDIF_") != -1:
|
||||
if q.empty():
|
||||
error("missing open statement!")
|
||||
if q.get() != x[0]:
|
||||
error("wrong close statement!")
|
||||
keep = True
|
||||
if not q.empty():
|
||||
e = q.get()
|
||||
if e[0] == x[0]:
|
||||
keep = e[1]
|
||||
elif line.find("IF_") != -1:
|
||||
q.put(x[0])
|
||||
q.put((x[0], keep))
|
||||
if keep is True:
|
||||
keep = x[0] in lst
|
||||
elif line.find("E") != -1:
|
||||
if q.empty():
|
||||
error("missing open statement!")
|
||||
keep = not keep
|
||||
error("(ELSE) missing open statement!")
|
||||
e = q.get()
|
||||
q.put(e)
|
||||
if e[1] is True:
|
||||
keep = not keep
|
||||
else:
|
||||
if keep is True:
|
||||
out.append(line)
|
||||
|
||||
return out
|
||||
|
||||
def conv(inp, lst):
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# Development Changes
|
||||
|
||||
## 0.8.91 - 2024-03-05
|
||||
* fix javascript issues #1480
|
||||
|
||||
## 0.8.90 - 2024-03-05
|
||||
* added preprocessor defines to HTML (from platform.ini) to reduce the HTML in size if modules aren't enabled
|
||||
* auto build minimal English versions of ESP8266 and ESP32
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//-------------------------------------
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 8
|
||||
#define VERSION_PATCH 90
|
||||
#define VERSION_PATCH 91
|
||||
|
||||
//-------------------------------------
|
||||
typedef struct {
|
||||
|
|
|
@ -84,10 +84,12 @@ function topnav() {
|
|||
}
|
||||
|
||||
function parseNav(obj) {
|
||||
for(i = 0; i < 13; i++) {
|
||||
for(i = 0; i < 14; i++) {
|
||||
if(i == 2)
|
||||
continue;
|
||||
var l = document.getElementById("nav"+i);
|
||||
if(null == l)
|
||||
continue
|
||||
if(12 == i) {
|
||||
if(obj.cst_lnk.length > 0) {
|
||||
l.href = obj.cst_lnk
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
<a id="nav7" class="hide" href="/system?v={#VERSION}">System</a>
|
||||
<span class="separator"></span>
|
||||
<a id="nav8" href="/api" target="_blank">REST API</a>
|
||||
<a id="nav9" href="https://ahoydtu.de" target="_blank">{#NAV_DOCUMENTATION}</a>
|
||||
<a id="nav9" href="https://docs.ahoydtu.de" target="_blank">{#NAV_DOCUMENTATION}</a>
|
||||
<a id="nav13" href="https://ahoydtu.de" target="_blank">Website</a>
|
||||
<a id="nav10" href="/about?v={#VERSION}">{#NAV_ABOUT}</a>
|
||||
<a id="nav12" href="#" class="hide" target="_blank">Custom Link</a>
|
||||
<span class="separator"></span>
|
||||
|
|
|
@ -1090,7 +1090,6 @@
|
|||
|
||||
/*IF_PLUGIN_DISPLAY*/
|
||||
function parseDisplay(obj, type, system) {
|
||||
var pinList = esp8266pins;
|
||||
/*IF_ESP32*/
|
||||
var pinList = esp32pins;
|
||||
/*IF_ESP32-S2*/
|
||||
|
@ -1102,6 +1101,8 @@
|
|||
/*IF_ESP32-C3*/
|
||||
pinList = esp32c3pins;
|
||||
/*ENDIF_ESP32-C3*/
|
||||
/*ELSE*/
|
||||
var pinList = esp8266pins;
|
||||
/*ENDIF_ESP32*/
|
||||
|
||||
for(var i of ["disp_pwr"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue