/* Pi-hole: A black hole for Internet advertisements * (c) 2023 Pi-hole, LLC (https://pi-hole.net) * Network-wide ad blocking via your own hardware. * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ /* global utils:false, apiFailure: false, applyCheckboxRadioStyle: false */ /* exported createDynamicConfigTabs */ function addAllowedValues(allowed) { if (typeof allowed === "object") { return ( "
Available options:
" + option.item + ": " + utils.escapeHtml(option.description);
})
.join("Allowed value: " + utils.escapeHtml(allowed) + "
"; } } function generateRow(topic, key, value) { // If the value is an object, we need to recurse if (!("description" in value)) { Object.keys(value).forEach(function (subkey) { var subvalue = value[subkey]; generateRow(topic, key + "." + subkey, subvalue); }); return; } // else: we have a setting we can display var box = '" +
utils.escapeHtml(value.description).replace("\n", "
") +
"
Default Value: " + defVal + "
"; } } switch (value.type) { case "IPv4 address": case "IPv6 address": case "string": { box += '' + '" +
topic.name +
")" +
"