Skip to content

Commit

Permalink
Missing settings page.
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Jan 27, 2022
1 parent 91dd03b commit 4518f08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions tools/cdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,7 @@ writeChunks(
prepend: "=====(",
append: ")=====",
method: "plaintext",
filter: "html-minify",
mangle: (str) =>
str
.replace("%", "%%")
.replace(/Usermods\<\/button\>\<\/form\>/gms, "Usermods\<\/button\>\<\/form\>%DMXMENU%"),
filter: "html-minify"
},
{
file: "settings_wifi.htm",
Expand Down
4 changes: 2 additions & 2 deletions wled00/html_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ const uint8_t PAGE_settingsCss[] PROGMEM = {
const char PAGE_settings[] PROGMEM = R"=====(<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport"><title>WLED Settings</title><style>
body{text-align:center;background:#222;height:100px;margin:0}html{--h:10.2vh}button{background:#333;color:#fff;font-family:Verdana,Helvetica,sans-serif;display:inline-block;border:1px solid #333;border-radius:var(--h);font-size:6vmin;height:var(--h);width:calc(100%%% - 40px);margin-top:2vh}
body{text-align:center;background:#222;height:100px;margin:0}html{--h:10.2vh}button{background:#333;color:#fff;font-family:Verdana,Helvetica,sans-serif;display:inline-block;border:1px solid #333;border-radius:var(--h);font-size:6vmin;height:var(--h);width:calc(100%% - 40px);margin-top:2vh}
</style></head><body><form action="/"><button type="submit" id="b">Back</button>
</form><form action="/settings/wifi"><button type="submit">WiFi Setup</button>
</form><form action="/settings/leds"><button type="submit">LED Preferences
</button></form><form action="/settings/ui"><button type="submit">User Interface
</button></form>%DMXMENU%<form action="/settings/sync"><button type="submit">
Sync Interfaces</button></form><form action="/settings/time"><button
type="submit">Time & Macros</button></form><form action="/settings/um"><button
type="submit">Usermods</button></form>%DMXMENU%<form action="/settings/sec"><button
type="submit">Usermods</button></form><form action="/settings/sec"><button
type="submit">Security & Updates</button></form></body></html>)=====";
Expand Down

0 comments on commit 4518f08

Please sign in to comment.