|
@@ -20,9 +20,6 @@ define(["chroma-js", "virtual-dom", "numeral-intl"],
|
|
var autoTable = document.createElement("table")
|
|
var autoTable = document.createElement("table")
|
|
autoTable.classList.add("proportion")
|
|
autoTable.classList.add("proportion")
|
|
|
|
|
|
- var gwTable = document.createElement("table")
|
|
|
|
- gwTable.classList.add("proportion")
|
|
|
|
-
|
|
|
|
function showStatGlobal(o) {
|
|
function showStatGlobal(o) {
|
|
var content, caption
|
|
var content, caption
|
|
|
|
|
|
@@ -130,22 +127,11 @@ define(["chroma-js", "virtual-dom", "numeral-intl"],
|
|
return "(deaktiviert)"
|
|
return "(deaktiviert)"
|
|
})
|
|
})
|
|
|
|
|
|
- var gwDict = count(onlineNodes, ["statistics", "gateway"], function (d) {
|
|
|
|
- if (d === null)
|
|
|
|
- return null
|
|
|
|
-
|
|
|
|
- if (d in nodeDict)
|
|
|
|
- return nodeDict[d].nodeinfo.hostname
|
|
|
|
-
|
|
|
|
- return d
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
fillTable(statusTable, statusDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(statusTable, statusDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(fwTable, fwDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(fwTable, fwDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(hwTable, hwDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(hwTable, hwDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(geoTable, geoDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(geoTable, geoDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(autoTable, autoDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
fillTable(autoTable, autoDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
- fillTable(gwTable, gwDict.sort(function (a, b) { return b[1] - a[1] }))
|
|
|
|
}
|
|
}
|
|
|
|
|
|
self.render = function (el) {
|
|
self.render = function (el) {
|
|
@@ -175,11 +161,6 @@ define(["chroma-js", "virtual-dom", "numeral-intl"],
|
|
el.appendChild(h2)
|
|
el.appendChild(h2)
|
|
el.appendChild(autoTable)
|
|
el.appendChild(autoTable)
|
|
|
|
|
|
- h2 = document.createElement("h2")
|
|
|
|
- h2.textContent = "Gewählter Gateway"
|
|
|
|
- el.appendChild(h2)
|
|
|
|
- el.appendChild(gwTable)
|
|
|
|
-
|
|
|
|
if (config.globalInfos)
|
|
if (config.globalInfos)
|
|
config.globalInfos.forEach( function (globalInfo) {
|
|
config.globalInfos.forEach( function (globalInfo) {
|
|
h2 = document.createElement("h2")
|
|
h2 = document.createElement("h2")
|