statistics: uplink statistics
This commit is contained in:
parent
956b2a4d76
commit
1e74f319ef
@ -20,6 +20,9 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
|||||||
var autoTable = document.createElement("table")
|
var autoTable = document.createElement("table")
|
||||||
autoTable.classList.add("proportion")
|
autoTable.classList.add("proportion")
|
||||||
|
|
||||||
|
var uplinkTable = document.createElement("table")
|
||||||
|
uplinkTable.classList.add("proportion")
|
||||||
|
|
||||||
function showStatGlobal(o) {
|
function showStatGlobal(o) {
|
||||||
var content, caption
|
var content, caption
|
||||||
|
|
||||||
@ -138,12 +141,16 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
|||||||
else
|
else
|
||||||
return "(deaktiviert)"
|
return "(deaktiviert)"
|
||||||
})
|
})
|
||||||
|
var uplinkDict = count(nodes, ["flags", "uplink"], function (d) {
|
||||||
|
return d ? "ja" : "nein"
|
||||||
|
})
|
||||||
|
|
||||||
fillTable("Status", statusTable, statusDict.sort(function (a, b) { return b[1] - a[1] }))
|
fillTable("Status", statusTable, statusDict.sort(function (a, b) { return b[1] - a[1] }))
|
||||||
fillTable("Firmware", fwTable, fwDict.sort(function (a, b) { return vercomp(b[0], a[0]) }))
|
fillTable("Firmware", fwTable, fwDict.sort(function (a, b) { return vercomp(b[0], a[0]) }))
|
||||||
fillTable("Hardware", hwTable, hwDict.sort(function (a, b) { return b[1] - a[1] }))
|
fillTable("Hardware", hwTable, hwDict.sort(function (a, b) { return b[1] - a[1] }))
|
||||||
fillTable("Koordinaten", geoTable, geoDict.sort(function (a, b) { return b[1] - a[1] }))
|
fillTable("Koordinaten", geoTable, geoDict.sort(function (a, b) { return b[1] - a[1] }))
|
||||||
fillTable("Autom. Updates", autoTable, autoDict.sort(function (a, b) { return b[1] - a[1] }))
|
fillTable("Autom. Updates", autoTable, autoDict.sort(function (a, b) { return b[1] - a[1] }))
|
||||||
|
fillTable("Uplink", uplinkTable, uplinkDict.sort(function (a, b) { return b[1] - a[1] }))
|
||||||
}
|
}
|
||||||
|
|
||||||
self.render = function (el) {
|
self.render = function (el) {
|
||||||
@ -173,6 +180,11 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
|||||||
el.appendChild(h2)
|
el.appendChild(h2)
|
||||||
el.appendChild(autoTable)
|
el.appendChild(autoTable)
|
||||||
|
|
||||||
|
h2 = document.createElement("h2")
|
||||||
|
h2.textContent = "Uplink"
|
||||||
|
el.appendChild(h2)
|
||||||
|
el.appendChild(uplinkTable)
|
||||||
|
|
||||||
if (config.globalInfos)
|
if (config.globalInfos)
|
||||||
config.globalInfos.forEach( function (globalInfo) {
|
config.globalInfos.forEach( function (globalInfo) {
|
||||||
h2 = document.createElement("h2")
|
h2 = document.createElement("h2")
|
||||||
|
Loading…
Reference in New Issue
Block a user