Minor changes to auto UI code generation

Replace outdated CSS in HTML by style.css import
Fix missing button double press in time settings
FIx missing meta utf-8 in WiFi and UI settings
Modify cdata.js to add an info header to the top of auto-generated files
This commit is contained in:
cschwinne
2020-06-10 12:45:44 +02:00
parent ee6f25cc47
commit 888eacb574
11 changed files with 1173 additions and 1380 deletions

View File

@@ -84,7 +84,14 @@ function writeHtmlGzipped(sourceFile, resultFile) {
console.info("Compressed " + result.length + " bytes");
const array = hexdump(result);
const src = `
const src = `/*
* Binary array for the Web UI.
* gzip is used for smaller size and improved speeds.
*
* Please see https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#web-ui
* to find out how to easily modify the web UI source!
*/
// Autogenerated from ${sourceFile}, do not edit!!
const uint16_t PAGE_index_L = ${result.length};
const uint8_t PAGE_index[] PROGMEM = {
@@ -153,7 +160,13 @@ ${result}
}
function writeChunks(srcDir, specs, resultFile) {
let src = "";
let src = `/*
* More web UI HTML source arrays.
* This file is auto generated, please don't make any changes manually.
* Instead, see https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#web-ui
* to find out how to easily modify the web UI source!
*/
`;
specs.forEach((s) => {
try {
console.info("Reading " + srcDir + "/" + s.file + " as " + s.name);