Skip to content

Commit a60dd80

Browse files
committed
Reorganize HTTP content; add modern UI
Restructure lib-remoteconfig HTTP content: move existing pages/scripts into a light/ subdirectory and add a new modern/ theme with many config_*.js modules and a shared common.js utility. Add pixeltype.json (light and top-level) and a generate_content helper binary; remove legacy dsa.* content. Update Makefile: add include paths, introduce CONTENT variable, clean hidden temp files, and pass CONTENT to generate_content. Also fix a field name in static.js (node.port.type -> node.output.type) and normalize file modes for moved files.
1 parent 2c92a35 commit a60dd80

54 files changed

Lines changed: 2675 additions & 109 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ udp_send
6161
compile_commands.json
6262
/common/scripts/gd32/venv
6363
software_version_id.h
64+
lib-remoteconfig/http/content/generate_content

lib-remoteconfig/http/content/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,22 @@ LD = $(PREFIX)ld
77
AR = $(PREFIX)ar
88

99
ROOT = ./../../..
10-
INCLUDES := -I$(ROOT)/lib-httpd/include -I$(ROOT)/lib-hal/include -I$(ROOT)/lib-network/include
10+
INCLUDES := -I$(ROOT)/common/include -I$(ROOT)/lib-remoteconfig/include -I$(ROOT)/lib-hal/include -I$(ROOT)/lib-network/include
1111
COPS := -std=c++20 -Wall -Werror
1212

13+
CONTENT ?= light
14+
1315
all : content
1416

1517
clean :
1618
rm -rf generate_content
1719
rm -rf *.h
20+
rm -rf ._*.*
21+
rm -rf ._*
1822

1923
generate_content : Makefile generate_content.cpp
20-
$(CPP) generate_content.cpp $(INCLUDES) $(COPS) -o generate_content
24+
$(CPP) generate_content.cpp $(INCLUDES) $(COPS) -o generate_content
2125

2226
content : generate_content
23-
./generate_content
27+
@echo "Running with directory $(CONTENT)"
28+
./generate_content $(CONTENT)

lib-remoteconfig/http/content/dsa.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib-remoteconfig/http/content/dsa.html.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

lib-remoteconfig/http/content/dsa.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

lib-remoteconfig/http/content/dsa.js.h

Lines changed: 0 additions & 41 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)