[TASK] Remove webpages
This commit is contained in:
parent
826384d93f
commit
2ddc32d8f9
@ -163,40 +163,6 @@ define(["chroma-js", "moment/moment", "tablesort", "helper", "moment/locale/de"]
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPages(d) {
|
|
||||||
var webpages = helper.dictGet(d.nodeinfo, ["pages"]);
|
|
||||||
if (webpages === null) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
webpages.sort();
|
|
||||||
|
|
||||||
return function (el) {
|
|
||||||
webpages.forEach(function (webpage, i) {
|
|
||||||
if (i > 0) {
|
|
||||||
el.appendChild(document.createElement("br"));
|
|
||||||
}
|
|
||||||
|
|
||||||
var a = document.createElement("span");
|
|
||||||
var link = document.createElement("a");
|
|
||||||
link.href = webpage;
|
|
||||||
if (webpage.search(/^https:\/\//i) !== -1) {
|
|
||||||
var lock = document.createElement("span");
|
|
||||||
lock.classList.add("ion-android-lock");
|
|
||||||
a.appendChild(lock);
|
|
||||||
var t1 = document.createTextNode(" ");
|
|
||||||
a.appendChild(t1);
|
|
||||||
link.textContent = webpage.replace(/^https:\/\//i, "");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
link.textContent = webpage.replace(/^http:\/\//i, "");
|
|
||||||
}
|
|
||||||
a.appendChild(link);
|
|
||||||
el.appendChild(a);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function showAutoupdate(d) {
|
function showAutoupdate(d) {
|
||||||
var au = helper.dictGet(d.nodeinfo, ["software", "autoupdater"]);
|
var au = helper.dictGet(d.nodeinfo, ["software", "autoupdater"]);
|
||||||
if (!au) {
|
if (!au) {
|
||||||
@ -243,7 +209,6 @@ define(["chroma-js", "moment/moment", "tablesort", "helper", "moment/locale/de"]
|
|||||||
helper.attributeEntry(attributes, "Arbeitsspeicher", showRAM(d));
|
helper.attributeEntry(attributes, "Arbeitsspeicher", showRAM(d));
|
||||||
}
|
}
|
||||||
helper.attributeEntry(attributes, "IP Adressen", showIPs(d));
|
helper.attributeEntry(attributes, "IP Adressen", showIPs(d));
|
||||||
helper.attributeEntry(attributes, "Webseite", showPages(d));
|
|
||||||
helper.attributeEntry(attributes, "Gewähltes Gateway", helper.dictGet(d.statistics, ["gateway"]));
|
helper.attributeEntry(attributes, "Gewähltes Gateway", helper.dictGet(d.statistics, ["gateway"]));
|
||||||
helper.attributeEntry(attributes, "Autom. Updates", showAutoupdate(d));
|
helper.attributeEntry(attributes, "Autom. Updates", showAutoupdate(d));
|
||||||
helper.attributeEntry(attributes, "Clients", showClients(d));
|
helper.attributeEntry(attributes, "Clients", showClients(d));
|
||||||
|
Loading…
Reference in New Issue
Block a user