added simple node status legend

This commit is contained in:
Florian Rittmeier 2015-08-27 01:31:19 +02:00 committed by Nils Schneider
parent 13c640beb8
commit 37c5dba449
4 changed files with 73 additions and 2 deletions

View file

@ -1,7 +1,7 @@
define([ "chroma-js", "map", "sidebar", "tabs", "container", "meshstats",
"linklist", "nodelist", "simplenodelist", "infobox/main",
"legend", "linklist", "nodelist", "simplenodelist", "infobox/main",
"proportions", "forcegraph", "title", "about" ],
function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist,
function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Legend, Linklist,
Nodelist, SimpleNodelist, Infobox, Proportions, ForceGraph,
Title, About) {
return function (config, router) {
@ -77,6 +77,7 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist,
var tabs = new Tabs()
var overview = new Container()
var meshstats = new Meshstats(config)
var legend = new Legend()
var newnodeslist = new SimpleNodelist("new", "firstseen", router, "Neue Knoten")
var lostnodeslist = new SimpleNodelist("lost", "lastseen", router, "Verschwundene Knoten")
var nodelist = new Nodelist(router)
@ -93,6 +94,7 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist,
sidebar.add(header)
header.add(meshstats)
header.add(legend)
overview.add(newnodeslist)
overview.add(lostnodeslist)