2020-05-17 18:09:39 +00:00
|
|
|
/**
|
|
|
|
* Writes compressed C arrays of data files (web interface)
|
|
|
|
* How to use it?
|
|
|
|
*
|
|
|
|
* 1) Install Node 11+ and npm
|
|
|
|
* 2) npm install
|
|
|
|
* 3) npm run build
|
|
|
|
*
|
|
|
|
* If you change data folder often, you can run it in monitoring mode (it will recompile and update *.h on every file change)
|
|
|
|
*
|
|
|
|
* > npm run dev
|
|
|
|
*
|
|
|
|
* How it works?
|
|
|
|
*
|
|
|
|
* It uses NodeJS packages to inline, minify and GZIP files. See writeHtmlGzipped and writeChunks invocations at the bottom of the page.
|
|
|
|
*/
|
|
|
|
|
|
|
|
const fs = require("fs");
|
2024-01-10 20:05:15 +00:00
|
|
|
const path = require('path');
|
2021-11-30 15:27:55 +00:00
|
|
|
const inliner = require("inliner");
|
|
|
|
const zlib = require("zlib");
|
|
|
|
const CleanCSS = require("clean-css");
|
2024-01-15 17:02:05 +00:00
|
|
|
const minifyHtml = require('html-minifier-terser').minify;
|
2020-06-08 17:59:40 +00:00
|
|
|
const packageJson = require("../package.json");
|
2020-05-17 18:09:39 +00:00
|
|
|
|
2024-01-16 21:23:24 +00:00
|
|
|
// Export functions for testing
|
2024-01-15 17:02:05 +00:00
|
|
|
module.exports = { isFileNewerThan, isAnyFileInFolderNewerThan };
|
|
|
|
|
2024-01-10 20:05:15 +00:00
|
|
|
const output = ["wled00/html_ui.h", "wled00/html_pixart.h", "wled00/html_cpal.h", "wled00/html_pxmagic.h", "wled00/html_settings.h", "wled00/html_other.h"]
|
2024-01-06 23:55:56 +00:00
|
|
|
|
2024-01-16 21:23:24 +00:00
|
|
|
// \x1b[34m is blue, \x1b[36m is cyan, \x1b[0m is reset
|
|
|
|
const wledBanner = `\x1b[34m
|
|
|
|
\t## ## ## ######## ########
|
|
|
|
\t## ## ## ## ## ## ##
|
|
|
|
\t## ## ## ## ## ## ##
|
|
|
|
\t## ## ## ## ###### ## ##
|
|
|
|
\t## ## ## ## ## ## ##
|
|
|
|
\t## ## ## ## ## ## ##
|
|
|
|
\t ### ### ######## ######## ########
|
|
|
|
\t\t\x1b[36mbuild script for web UI
|
|
|
|
\x1b[0m`;
|
|
|
|
|
|
|
|
const singleHeader = `/*
|
|
|
|
* Binary array for the Web UI.
|
|
|
|
* gzip is used for smaller size and improved speeds.
|
|
|
|
*
|
|
|
|
* Please see https://kno.wled.ge/advanced/custom-features/#changing-web-ui
|
|
|
|
* to find out how to easily modify the web UI source!
|
|
|
|
*/
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
const multiHeader = `/*
|
|
|
|
* More web UI HTML source arrays.
|
|
|
|
* This file is auto generated, please don't make any changes manually.
|
|
|
|
*
|
|
|
|
* Instead, see https://kno.wled.ge/advanced/custom-features/#changing-web-ui
|
|
|
|
* to find out how to easily modify the web UI source!
|
|
|
|
*/
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
function hexdump(buffer, isHex = false) {
|
2020-05-17 18:09:39 +00:00
|
|
|
let lines = [];
|
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
for (let i = 0; i < buffer.length; i += (isHex ? 32 : 16)) {
|
2021-11-30 15:27:55 +00:00
|
|
|
var block;
|
2020-05-17 18:09:39 +00:00
|
|
|
let hexArray = [];
|
2021-11-30 15:27:55 +00:00
|
|
|
if (isHex) {
|
|
|
|
block = buffer.slice(i, i + 32)
|
2024-01-15 17:02:05 +00:00
|
|
|
for (let j = 0; j < block.length; j += 2) {
|
|
|
|
hexArray.push("0x" + block.slice(j, j + 2))
|
2021-11-30 15:27:55 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
block = buffer.slice(i, i + 16); // cut buffer into blocks of 16
|
|
|
|
for (let value of block) {
|
|
|
|
hexArray.push("0x" + value.toString(16).padStart(2, "0"));
|
|
|
|
}
|
2020-05-17 18:09:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
let hexString = hexArray.join(", ");
|
|
|
|
let line = ` ${hexString}`;
|
|
|
|
lines.push(line);
|
|
|
|
}
|
|
|
|
|
|
|
|
return lines.join(",\n");
|
|
|
|
}
|
|
|
|
|
2020-06-08 17:59:40 +00:00
|
|
|
function adoptVersionAndRepo(html) {
|
|
|
|
let repoUrl = packageJson.repository ? packageJson.repository.url : undefined;
|
|
|
|
if (repoUrl) {
|
|
|
|
repoUrl = repoUrl.replace(/^git\+/, "");
|
|
|
|
repoUrl = repoUrl.replace(/\.git$/, "");
|
2024-01-16 21:23:24 +00:00
|
|
|
html = html.replaceAll("https://github.com/atuline/WLED", repoUrl);
|
|
|
|
html = html.replaceAll("https://github.com/Aircoookie/WLED", repoUrl);
|
2020-06-08 17:59:40 +00:00
|
|
|
}
|
|
|
|
let version = packageJson.version;
|
|
|
|
if (version) {
|
2024-01-16 21:23:24 +00:00
|
|
|
html = html.replaceAll("##VERSION##", version);
|
2020-06-08 17:59:40 +00:00
|
|
|
}
|
|
|
|
return html;
|
|
|
|
}
|
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
async function minify(str, type = "plain") {
|
|
|
|
const options = {
|
|
|
|
collapseWhitespace: true,
|
2024-01-16 22:31:47 +00:00
|
|
|
collapseBooleanAttributes: true,
|
|
|
|
collapseInlineTagWhitespace: true,
|
2024-01-15 17:02:05 +00:00
|
|
|
minifyCSS: true,
|
|
|
|
minifyJS: true,
|
2024-01-16 22:31:47 +00:00
|
|
|
removeAttributeQuotes: true,
|
|
|
|
removeComments: true,
|
|
|
|
sortAttributes: true,
|
|
|
|
sortClassName: true,
|
2024-01-15 17:02:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (type == "plain") {
|
2021-11-30 15:27:55 +00:00
|
|
|
return str;
|
|
|
|
} else if (type == "css-minify") {
|
|
|
|
return new CleanCSS({}).minify(str).styles;
|
|
|
|
} else if (type == "js-minify") {
|
2024-01-15 17:02:05 +00:00
|
|
|
return await minifyHtml('<script>' + str + '</script>', options).replace(/<[\/]*script>/g, '');
|
2021-11-30 15:27:55 +00:00
|
|
|
} else if (type == "html-minify") {
|
2024-01-15 17:02:05 +00:00
|
|
|
return await minifyHtml(str, options);
|
2021-11-30 15:27:55 +00:00
|
|
|
}
|
2024-01-15 17:02:05 +00:00
|
|
|
|
|
|
|
throw new Error("Unknown filter: " + type);
|
2021-11-30 15:27:55 +00:00
|
|
|
}
|
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
async function writeHtmlGzipped(sourceFile, resultFile, page) {
|
2020-05-17 18:09:39 +00:00
|
|
|
console.info("Reading " + sourceFile);
|
2024-01-15 17:02:05 +00:00
|
|
|
new inliner(sourceFile, async function (error, html) {
|
2024-01-16 21:23:24 +00:00
|
|
|
if (error) throw error;
|
2020-05-17 18:09:39 +00:00
|
|
|
|
2020-06-08 17:59:40 +00:00
|
|
|
html = adoptVersionAndRepo(html);
|
2024-01-17 16:28:35 +00:00
|
|
|
const originalLength = html.length;
|
2024-01-16 23:04:05 +00:00
|
|
|
html = await minify(html, "html-minify");
|
2024-01-16 21:23:24 +00:00
|
|
|
const result = zlib.gzipSync(html, { level: zlib.constants.Z_BEST_COMPRESSION });
|
2024-01-17 16:28:35 +00:00
|
|
|
console.info("Minified and compressed " + sourceFile + " from " + originalLength + " to " + result.length + " bytes");
|
2024-01-16 21:23:24 +00:00
|
|
|
const array = hexdump(result);
|
|
|
|
let src = singleHeader;
|
2024-01-16 22:31:47 +00:00
|
|
|
src += `const uint16_t PAGE_${page}_L = ${result.length};\n`;
|
2024-01-16 21:23:24 +00:00
|
|
|
src += `const uint8_t PAGE_${page}[] PROGMEM = {\n${array}\n};\n\n`;
|
|
|
|
console.info("Writing " + resultFile);
|
|
|
|
fs.writeFileSync(resultFile, src);
|
2020-05-17 18:09:39 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
async function specToChunk(srcDir, s) {
|
|
|
|
const buf = fs.readFileSync(srcDir + "/" + s.file);
|
2024-01-16 21:23:24 +00:00
|
|
|
let chunk = `// Autogenerated from ${srcDir}/${s.file}, do not edit!!\n`
|
2020-05-17 18:09:39 +00:00
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
if (s.method == "plaintext" || s.method == "gzip") {
|
|
|
|
let str = buf.toString("utf-8");
|
|
|
|
str = adoptVersionAndRepo(str);
|
2024-01-17 16:28:35 +00:00
|
|
|
const originalLength = str.length;
|
2024-01-15 17:02:05 +00:00
|
|
|
if (s.method == "gzip") {
|
|
|
|
if (s.mangle) str = s.mangle(str);
|
|
|
|
const zip = zlib.gzipSync(await minify(str, s.filter), { level: zlib.constants.Z_BEST_COMPRESSION });
|
2024-01-17 16:28:35 +00:00
|
|
|
console.info("Minified and compressed " + s.file + " from " + originalLength + " to " + zip.length + " bytes");
|
2024-01-16 21:23:24 +00:00
|
|
|
const result = hexdump(zip);
|
|
|
|
chunk += `const uint16_t ${s.name}_length = ${zip.length};\n`;
|
|
|
|
chunk += `const uint8_t ${s.name}[] PROGMEM = {\n${result}\n};\n\n`;
|
|
|
|
return chunk;
|
2024-01-15 17:02:05 +00:00
|
|
|
} else {
|
2024-01-17 16:28:35 +00:00
|
|
|
const minified = await minify(str, s.filter);
|
|
|
|
console.info("Minified " + s.file + " from " + originalLength + " to " + minified.length + " bytes");
|
|
|
|
chunk += `const char ${s.name}[] PROGMEM = R"${s.prepend || ""}${minified}${s.append || ""}";\n\n`;
|
2024-01-15 17:02:05 +00:00
|
|
|
return s.mangle ? s.mangle(chunk) : chunk;
|
|
|
|
}
|
2020-05-17 18:09:39 +00:00
|
|
|
} else if (s.method == "binary") {
|
|
|
|
const result = hexdump(buf);
|
2024-01-16 21:23:24 +00:00
|
|
|
chunk += `const uint16_t ${s.name}_length = ${buf.length};\n`;
|
|
|
|
chunk += `const uint8_t ${s.name}[] PROGMEM = {\n${result}\n};\n\n`;
|
|
|
|
return chunk;
|
2020-05-17 18:09:39 +00:00
|
|
|
}
|
2024-01-15 17:02:05 +00:00
|
|
|
|
|
|
|
throw new Error("Unknown method: " + s.method);
|
2020-05-17 18:09:39 +00:00
|
|
|
}
|
|
|
|
|
2024-01-15 17:02:05 +00:00
|
|
|
async function writeChunks(srcDir, specs, resultFile) {
|
2024-01-16 21:23:24 +00:00
|
|
|
let src = multiHeader;
|
2024-01-15 17:02:05 +00:00
|
|
|
for (const s of specs) {
|
2024-01-17 16:28:35 +00:00
|
|
|
console.info("Reading " + srcDir + "/" + s.file + " as " + s.name);
|
2024-01-16 21:23:24 +00:00
|
|
|
src += await specToChunk(srcDir, s);
|
2024-01-15 17:02:05 +00:00
|
|
|
}
|
2020-05-17 18:09:39 +00:00
|
|
|
console.info("Writing " + src.length + " characters into " + resultFile);
|
|
|
|
fs.writeFileSync(resultFile, src);
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:05:15 +00:00
|
|
|
// Check if a file is newer than a given time
|
|
|
|
function isFileNewerThan(filePath, time) {
|
2024-01-17 15:24:13 +00:00
|
|
|
const stats = fs.statSync(filePath);
|
|
|
|
return stats.mtimeMs > time;
|
2024-01-10 20:05:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Check if any file in a folder (or its subfolders) is newer than a given time
|
|
|
|
function isAnyFileInFolderNewerThan(folderPath, time) {
|
|
|
|
const files = fs.readdirSync(folderPath, { withFileTypes: true });
|
|
|
|
for (const file of files) {
|
|
|
|
const filePath = path.join(folderPath, file.name);
|
|
|
|
if (isFileNewerThan(filePath, time)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (file.isDirectory() && isAnyFileInFolderNewerThan(filePath, time)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-01-15 17:13:08 +00:00
|
|
|
// Check if the web UI is already built
|
2024-01-10 20:05:15 +00:00
|
|
|
function isAlreadyBuilt(folderPath) {
|
|
|
|
let lastBuildTime = Infinity;
|
|
|
|
|
|
|
|
for (const file of output) {
|
|
|
|
try {
|
|
|
|
lastBuildTime = Math.min(lastBuildTime, fs.statSync(file).mtimeMs);
|
2024-01-17 15:24:13 +00:00
|
|
|
} catch (e) {
|
|
|
|
if (e.code !== 'ENOENT') throw e;
|
|
|
|
console.info("File " + file + " does not exist. Rebuilding...");
|
2024-01-10 20:05:15 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-16 22:46:00 +00:00
|
|
|
return !isAnyFileInFolderNewerThan(folderPath, lastBuildTime) && !isFileNewerThan("tools/cdata.js", lastBuildTime);
|
2024-01-10 20:05:15 +00:00
|
|
|
}
|
|
|
|
|
2024-01-15 17:13:08 +00:00
|
|
|
// Don't run this script if we're in a test environment
|
|
|
|
if (process.env.NODE_ENV === 'test') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2024-01-16 21:23:24 +00:00
|
|
|
console.info(wledBanner);
|
|
|
|
|
2024-01-10 20:05:15 +00:00
|
|
|
if (isAlreadyBuilt("wled00/data") && process.argv[2] !== '--force' && process.argv[2] !== '-f') {
|
|
|
|
console.info("Web UI is already built");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-08-10 15:11:17 +00:00
|
|
|
writeHtmlGzipped("wled00/data/index.htm", "wled00/html_ui.h", 'index');
|
2023-01-20 13:40:45 +00:00
|
|
|
writeHtmlGzipped("wled00/data/pixart/pixart.htm", "wled00/html_pixart.h", 'pixart');
|
2023-04-08 18:02:49 +00:00
|
|
|
writeHtmlGzipped("wled00/data/cpal/cpal.htm", "wled00/html_cpal.h", 'cpal');
|
2023-06-22 09:26:24 +00:00
|
|
|
writeHtmlGzipped("wled00/data/pxmagic/pxmagic.htm", "wled00/html_pxmagic.h", 'pxmagic');
|
2023-11-14 20:04:18 +00:00
|
|
|
|
2020-05-17 18:09:39 +00:00
|
|
|
writeChunks(
|
|
|
|
"wled00/data",
|
|
|
|
[
|
|
|
|
{
|
|
|
|
file: "style.css",
|
|
|
|
name: "PAGE_settingsCss",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-06-08 17:59:40 +00:00
|
|
|
filter: "css-minify",
|
2021-12-06 19:53:09 +00:00
|
|
|
mangle: (str) =>
|
|
|
|
str
|
2024-01-15 17:02:05 +00:00
|
|
|
.replace("%%", "%")
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings.htm",
|
|
|
|
name: "PAGE_settings",
|
2022-01-28 15:31:28 +00:00
|
|
|
method: "gzip",
|
|
|
|
filter: "html-minify",
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_wifi.htm",
|
|
|
|
name: "PAGE_settings_wifi",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_leds.htm",
|
|
|
|
name: "PAGE_settings_leds",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_dmx.htm",
|
|
|
|
name: "PAGE_settings_dmx",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_ui.htm",
|
|
|
|
name: "PAGE_settings_ui",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_sync.htm",
|
|
|
|
name: "PAGE_settings_sync",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_time.htm",
|
|
|
|
name: "PAGE_settings_time",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "settings_sec.htm",
|
|
|
|
name: "PAGE_settings_sec",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 18:09:39 +00:00
|
|
|
filter: "html-minify",
|
2020-06-08 17:59:40 +00:00
|
|
|
},
|
2021-05-07 10:41:39 +00:00
|
|
|
{
|
|
|
|
file: "settings_um.htm",
|
|
|
|
name: "PAGE_settings_um",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2021-05-07 10:41:39 +00:00
|
|
|
filter: "html-minify",
|
2022-03-01 22:37:28 +00:00
|
|
|
},
|
2022-05-08 08:50:48 +00:00
|
|
|
{
|
|
|
|
file: "settings_2D.htm",
|
|
|
|
name: "PAGE_settings_2D",
|
|
|
|
method: "gzip",
|
|
|
|
filter: "html-minify",
|
|
|
|
},
|
2022-03-01 22:37:28 +00:00
|
|
|
{
|
|
|
|
file: "settings_pin.htm",
|
|
|
|
name: "PAGE_settings_pin",
|
|
|
|
method: "gzip",
|
|
|
|
filter: "html-minify"
|
2021-05-07 10:41:39 +00:00
|
|
|
}
|
2020-05-17 18:09:39 +00:00
|
|
|
],
|
|
|
|
"wled00/html_settings.h"
|
|
|
|
);
|
|
|
|
|
|
|
|
writeChunks(
|
|
|
|
"wled00/data",
|
|
|
|
[
|
|
|
|
{
|
|
|
|
file: "usermod.htm",
|
|
|
|
name: "PAGE_usermod",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-05-17 20:22:42 +00:00
|
|
|
filter: "html-minify",
|
2020-06-08 17:59:40 +00:00
|
|
|
mangle: (str) =>
|
|
|
|
str.replace(/fetch\("http\:\/\/.*\/win/gms, 'fetch("/win'),
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "msg.htm",
|
|
|
|
name: "PAGE_msg",
|
|
|
|
prepend: "=====(",
|
|
|
|
append: ")=====",
|
|
|
|
method: "plaintext",
|
2020-05-17 18:59:00 +00:00
|
|
|
filter: "html-minify",
|
2020-06-08 17:59:40 +00:00
|
|
|
mangle: (str) => str.replace(/\<h2\>.*\<\/body\>/gms, "<h2>%MSG%</body>"),
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "dmxmap.htm",
|
|
|
|
name: "PAGE_dmxmap",
|
|
|
|
prepend: "=====(",
|
|
|
|
append: ")=====",
|
|
|
|
method: "plaintext",
|
|
|
|
filter: "html-minify",
|
2020-06-08 17:59:40 +00:00
|
|
|
mangle: (str) => `
|
2020-05-17 18:09:39 +00:00
|
|
|
#ifdef WLED_ENABLE_DMX
|
2020-05-17 18:59:00 +00:00
|
|
|
${str.replace(/function FM\(\)[ ]?\{/gms, "function FM() {%DMXVARS%\n")}
|
2020-05-17 18:09:39 +00:00
|
|
|
#else
|
|
|
|
const char PAGE_dmxmap[] PROGMEM = R"=====()=====";
|
|
|
|
#endif
|
2020-06-08 17:59:40 +00:00
|
|
|
`,
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "update.htm",
|
|
|
|
name: "PAGE_update",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-06-08 17:59:40 +00:00
|
|
|
filter: "html-minify",
|
2022-03-02 14:41:31 +00:00
|
|
|
mangle: (str) =>
|
|
|
|
str
|
|
|
|
.replace(
|
|
|
|
/function GetV().*\<\/script\>/gms,
|
2022-04-27 10:31:47 +00:00
|
|
|
"</script><script src=\"/settings/s.js?p=9\"></script>"
|
2022-03-02 14:41:31 +00:00
|
|
|
)
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "welcome.htm",
|
|
|
|
name: "PAGE_welcome",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-06-08 17:59:40 +00:00
|
|
|
filter: "html-minify",
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
file: "liveview.htm",
|
|
|
|
name: "PAGE_liveview",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-06-08 17:59:40 +00:00
|
|
|
filter: "html-minify",
|
2020-05-17 18:09:39 +00:00
|
|
|
},
|
2022-07-26 09:08:26 +00:00
|
|
|
{
|
|
|
|
file: "liveviewws2D.htm",
|
|
|
|
name: "PAGE_liveviewws2D",
|
|
|
|
method: "gzip",
|
|
|
|
filter: "html-minify",
|
|
|
|
},
|
2020-11-15 15:37:09 +00:00
|
|
|
{
|
|
|
|
file: "404.htm",
|
|
|
|
name: "PAGE_404",
|
2021-12-06 19:53:09 +00:00
|
|
|
method: "gzip",
|
2020-11-15 15:37:09 +00:00
|
|
|
filter: "html-minify",
|
|
|
|
},
|
2020-05-17 18:09:39 +00:00
|
|
|
{
|
|
|
|
file: "favicon.ico",
|
|
|
|
name: "favicon",
|
2020-06-08 17:59:40 +00:00
|
|
|
method: "binary",
|
2021-11-30 15:27:55 +00:00
|
|
|
}
|
2020-05-17 18:09:39 +00:00
|
|
|
],
|
|
|
|
"wled00/html_other.h"
|
|
|
|
);
|