Commit Graph

359 Commits

Author SHA1 Message Date
Nils Schneider
b2a90109bb router: ensure currentView is set 2015-07-07 00:10:42 +02:00
Nils Schneider
bc8943abc2 router: save view in state 2015-07-07 00:07:29 +02:00
Nils Schneider
2d1fbba40f router: avoid pushing state twice 2015-07-06 23:12:30 +02:00
Nils Schneider
cc505f4d4a infobox: ensure sidebar box is visible on create 2015-07-06 22:30:45 +02:00
Nils Schneider
e834e2ab94 infobox hides sidebar 2015-07-06 22:27:16 +02:00
Nils Schneider
3abebc8684 map/graph: change color of clients to magenta 2015-07-06 21:21:30 +02:00
Nils Schneider
4d69677ede rework client drawing code 2015-06-27 01:37:36 +02:00
dzzinstant
d170204b31 Fix comparison: if (d.clients === 0) return does nothing 2015-06-27 01:09:04 +02:00
Nils Schneider
2427a19f39 map: show new nodes above lost nodes (match order in labelslayer.js) 2015-06-21 16:07:14 +02:00
Nils Schneider
7f74fff992 Merge pull request #12 from flokli/startAngle
use node_id hash to calculate startAngle for client layer
2015-06-21 15:59:28 +02:00
Neal Oakey
3575e08a40 add statistic about geoinformations 2015-06-19 20:24:41 +02:00
Little-Ben
607c15ef3b statistics: show global statistics image (globalGraph) - v2 2015-06-07 18:47:14 +02:00
kokel
ae931347be meshstats: count and show all nodes (online and offline) 2015-06-04 14:55:48 +02:00
Florian Klink
008a1d0b0b use node_id hash to calculate startAngle for client layer 2015-06-02 17:19:04 +02:00
PetaByteBoy
f38471f299 show router hardware in link info 2015-05-30 12:29:43 +02:00
Nils Schneider
8b21589520 infobox: fix image width of nodeInfo elements 2015-05-21 17:57:02 +02:00
Little.Ben
cbe21ee3df insert statistics image in infobox of node 2015-05-19 21:13:15 +02:00
Leo Krueger
f8df797963 about.js: small adaptions to the license text
to reflect https://www.gnu.org/licenses/agpl-3.0.html#howto
2015-04-29 19:42:48 +02:00
Nils Schneider
115444f1cb config: introduce maxAge setting 2015-04-26 13:12:11 +02:00
Nils Schneider
913f9f70f6 remove contact info from simplenodelist 2015-04-26 11:53:55 +02:00
Nils Schneider
d94ba09b2c forcegraph: always draw VPN links 2015-04-22 23:18:10 +02:00
Nils Schneider
9e51bd78fa forcegraph: grayscale vpn links 2015-04-22 12:37:18 +02:00
Nils Schneider
d8c147a323 forcegraph: ignore clicks on vpn links 2015-04-22 02:44:07 +02:00
Nils Schneider
f65e89aaca proportions: count only values that are present 2015-04-22 01:35:31 +02:00
Nils Schneider
d5a9c52788 map/labels: dynamic labels (zoom levels, sizes) 2015-04-21 16:28:06 +02:00
Nils Schneider
fc921e6c59 map: show clients only from zoom 15 onwards 2015-04-21 16:27:29 +02:00
Nils Schneider
c48f053619 move config.js from lib to root 2015-04-21 00:11:21 +02:00
Nils Schneider
0caaa8f64e forcegraph: set miterLimit for text to 2 2015-04-20 23:31:55 +02:00
Nils Schneider
db3d8fa795 map: place labels without overlaps 2015-04-20 23:13:03 +02:00
Nils Schneider
879c1e6f25 map: store zoom/center instead of bounds 2015-04-19 17:02:43 +02:00
Nils Schneider
ba9cc703d7 map: save bounds on drag end store on resetview 2015-04-19 16:54:35 +02:00
Nils Schneider
72dccaa51c forcegraph: restore last panzoom on resetview 2015-04-19 16:29:22 +02:00
Nils Schneider
3a6d4855a9 nodelist: fix calculation of negative uptime 2015-04-19 13:35:49 +02:00
Nils Schneider
b3c49d01a0 map: fix drawing of clients 2015-04-19 13:05:23 +02:00
Nils Schneider
22b49c1a55 map: draw only labels present on map using rtrees 2015-04-19 12:22:09 +02:00
Nils Schneider
8ff0f789f8 forcegraph: do not use global ctx when preparing labels 2015-04-19 03:46:09 +02:00
Nils Schneider
e36d3b1a6a forcegraph: tickevent is already in animation frame 2015-04-19 02:50:15 +02:00
Nils Schneider
8a09342ab7 forcegraph: show vpn links 2015-04-19 02:16:06 +02:00
Nils Schneider
e09ec32d93 map: show client labels 2015-04-17 23:54:19 +02:00
Nils Schneider
139e3c1a32 map: less obstrusive client color 2015-04-17 23:51:03 +02:00
Nils Schneider
1ed8a56031 map: move clientlayer to lib/map/ 2015-04-17 22:27:24 +02:00
Nils Schneider
b7ab859bea map: fix identation 2015-04-17 22:10:47 +02:00
Nils Schneider
8aa738b035 map: show clients 2015-04-17 01:02:56 +02:00
Nils Schneider
9317346dfe forcegraph: partially revert framerate limiting 2015-04-16 21:02:11 +02:00
Nils Schneider
ef7f60179a forcegraph: limit framerate 2015-04-16 20:35:42 +02:00
Nils Schneider
a3f473a6df forcegraph: redraw using requestAnimationFrame 2015-04-16 20:21:38 +02:00
Nils Schneider
70d78e3742 forcegraph: backport client circles from ffmap-d3 2015-04-16 20:16:49 +02:00
Nils Schneider
4c97886039 forcegraph: get rid of shadow svg 2015-04-16 01:29:17 +02:00
Nils Schneider
58cd7ad026 map: adding custom layers 2015-04-15 22:25:44 +02:00
Nils Schneider
a0120221ae button for adding tile layer 2015-04-15 21:14:52 +02:00
Nils Schneider
0758614688 leaflet providers 2015-04-15 21:14:51 +02:00
Nils Schneider
95a0f8974b sidebar: reduce breakpoint to 630pt, reduce width to 320pt 2015-04-15 15:28:21 +02:00
Nils Schneider
a4fdf39352 infobox: show node_id (and update changelog) 2015-04-14 23:52:35 +02:00
Nils Schneider
dde828934e nodelist: fix uptime sorting 2015-04-12 23:23:15 +02:00
Nils Schneider
2fcce92bce map: hide vpn links 2015-04-12 23:09:43 +02:00
Nils Schneider
2c944224e3 map: locate user and show marker 2015-04-12 02:47:52 +02:00
Nils Schneider
6f546bf823 add CHANGELOG.md 2015-04-11 20:18:47 +02:00
Nils Schneider
2cbea6dc20 change LICENSE to AGPL 3 2015-04-11 13:40:15 +02:00
Nils Schneider
4e2e61f3c6 forcegraph: when highlighting links, also highlight nodes 2015-04-11 01:28:01 +02:00
Nils Schneider
7ebc4c5571 forcegraph: hidpi rendering of labels 2015-04-11 01:18:46 +02:00
Nils Schneider
c0ab6b7406 forcegraph: fix rendering on hidpi devices 2015-04-11 00:53:35 +02:00
Nils Schneider
a6ad9f928a forcegraph: pre-render label 2015-04-11 00:30:36 +02:00
Nils Schneider
09e760f4d0 forcegraph: unknownNodes, optimize clearing 2015-04-10 21:53:40 +02:00
Nils Schneider
cc88109271 forcegraph: convert to canvas 2015-04-10 20:47:11 +02:00
Nils Schneider
eb735c8c52 forcegraph: calculate linksDict/nodesDict indepently of d3 2015-04-10 15:19:42 +02:00
Nils Schneider
020ab2aef5 forcegraph: add labels 2015-04-10 13:50:39 +02:00
Nils Schneider
ab9ac94014 map: make new/lost nodes a little more pronounced 2015-04-08 10:58:05 +02:00
Nils Schneider
74e640f899 forcegraph: fix links losing nodes 2015-04-08 01:21:52 +02:00
Nils Schneider
03d0c5488f forcemap: fix clicking on links 2015-04-08 01:12:30 +02:00
Nils Schneider
653bbcd873 about: GPL 3 is actually used instead of 2 2015-04-08 00:27:12 +02:00
Nils Schneider
1c896d08f7 about box 2015-04-07 22:07:53 +02:00
Nils Schneider
c734975a3b check nodes and graph version 2015-04-07 21:10:37 +02:00
Nils Schneider
88bc4aafc5 nodelist/linklist: sortable tables 2015-04-07 17:41:17 +02:00
Nils Schneider
aae9d4253e fixes 2015-04-06 23:15:09 +02:00
Nils Schneider
290bc6f359 map: keep objects highlighted on updates 2015-04-06 23:13:00 +02:00
Nils Schneider
d9084fa462 forcegraph: keep objects highlighted on updates 2015-04-06 23:12:37 +02:00
Nils Schneider
d6e0587c55 work on forcegraph reload 2015-04-06 23:12:04 +02:00
Nils Schneider
0490455ccf handle multiple setData calls in map 2015-04-06 23:10:55 +02:00
Nils Schneider
0a0b8bd065 removeContent: also remove from dataTargets 2015-04-06 23:10:55 +02:00
Nils Schneider
c4383aabb9 make proportions.setData idempotent 2015-04-06 23:10:55 +02:00
Nils Schneider
d3bbf6060e make nodelist.setData idempotent 2015-04-06 23:10:54 +02:00
Nils Schneider
7ddfbd964c make linklist.setData idempotent 2015-04-06 23:10:54 +02:00
Nils Schneider
7b57a2245b make meshstats, simplenodelist setData idempotent 2015-04-06 23:10:54 +02:00
Nils Schneider
389291e585 make linkId a property (id) of link 2015-04-06 23:10:37 +02:00
Nils Schneider
315484625b map: set initial view based on barycenter and standard deviation 2015-04-06 15:54:26 +02:00
Nils Schneider
11c689eb29 map: group* is a property of instance, not class 2015-04-06 15:04:41 +02:00
Nils Schneider
3b75f01ccd set document.title on router events 2015-04-05 23:46:12 +02:00
Nils Schneider
6c862182f5 config: introduce siteName 2015-04-05 22:29:29 +02:00
Nils Schneider
ff19d0cf8e sidebar styling 2015-04-04 18:01:57 +02:00
Nils Schneider
8de28b903b enhance sidebar and content styling
- 3 sidebar variations (margin, no margin, below content)
  depending on screen size
- scrolling sidebar will scroll document (more space on mobile devices)
- wrap map/graph on div.content
2015-04-02 04:17:35 +02:00
Nils Schneider
141e98f027 replace Intl.NumberFormat with numeraljs 2015-04-02 02:33:17 +02:00
Nils Schneider
534f7bbed4 forcegraph: set size based on diameter 2015-04-01 18:22:20 +02:00
Nils Schneider
aa237c2380 forcegraph: test for localStorage before using it 2015-04-01 16:00:20 +02:00
Nils Schneider
eb315ab60a forcegraph: remove labels 2015-04-01 04:01:25 +02:00
Nils Schneider
a8bb1b40a2 add forcegraph to gui 2015-04-01 03:55:45 +02:00
Nils Schneider
3b21b49a0d forcegraph: linkStrength = 1 / tq 2015-04-01 01:07:40 +02:00
Nils Schneider
05386f0772 forcegraph: store nodeposition in localstorage 2015-04-01 01:06:53 +02:00
Nils Schneider
6cb6af2401 forcegraph: fit graph on resetView 2015-04-01 00:06:17 +02:00
Nils Schneider
0780a83dd2 forcegraph: do not animate pan/zoom on first router event 2015-03-31 23:45:32 +02:00
Nils Schneider
473734f2bb prepare router, forcegraph, map for destroy/reload 2015-03-31 23:26:38 +02:00
Nils Schneider
625e7ba880 router: add removeTarget 2015-03-31 22:18:11 +02:00
Nils Schneider
980187193f make eslint happy 2015-03-31 21:31:06 +02:00
Nils Schneider
48147eb417 forcegraph: reset zoom on resetView 2015-03-31 21:29:47 +02:00
Nils Schneider
d2fe76f736 pan/zoom in forcelayout 2015-03-31 21:18:06 +02:00
Nils Schneider
706bc2c1fc sidebar: width is 0 when hidden 2015-03-31 20:32:47 +02:00
Nils Schneider
c6f17e8a89 catch error in promise 2015-03-31 18:51:35 +02:00
Nils Schneider
4b076ab3b9 add forcegraph 2015-03-31 17:33:39 +02:00
Nils Schneider
b8a9ac9a26 wrap links/nodes in graph 2015-03-31 17:21:58 +02:00
Nils Schneider
3c3cb4047d router: be a little more robust 2015-03-31 16:30:16 +02:00
Nils Schneider
60d6f8921a handle node and link IDs with special characters 2015-03-31 15:13:11 +02:00
Nils Schneider
af3d22e4c2 drop chartjs 2015-03-30 21:02:18 +02:00
Nils Schneider
1f8cb5203e make eslint happier 2015-03-30 03:20:43 +02:00
Nils Schneider
c4db68b31f statistics: selected gateway 2015-03-30 03:12:30 +02:00
Nils Schneider
35c4690ad6 statistics 2015-03-30 02:58:47 +02:00
Nils Schneider
33bd730576 refactor tabs 2015-03-29 21:44:05 +02:00
Nils Schneider
eded0eb19c move GUI to its own module 2015-03-29 20:34:58 +02:00
Nils Schneider
61a58f11bc refactor main 2015-03-29 19:38:50 +02:00
Nils Schneider
7006f5174a fix router 2015-03-29 19:36:52 +02:00
Nils Schneider
f4719be133 fix timezone handling 2015-03-29 19:10:24 +02:00
Nils Schneider
f1512a6ed7 generalize setData/dataTargets 2015-03-29 17:54:43 +02:00
Nils Schneider
a031ac336d refactor setData 2015-03-29 17:49:31 +02:00
Nils Schneider
3e143435e6 make eslint happy 2015-03-29 16:14:10 +02:00
Nils Schneider
3a501766ff refactor main, app 2015-03-29 04:35:20 +02:00
Nils Schneider
056c46331d load helper.js using requirejs 2015-03-29 04:26:23 +02:00
Nils Schneider
5651c605de handle most dependencies using requirejs 2015-03-29 03:35:10 +02:00
Nils Schneider
d5552840a9 manage dependencies using bower 2015-03-29 01:09:21 +01:00
Nils Schneider
3b77d1230b load config using requirejs 2015-03-29 00:38:51 +01:00
Nils Schneider
519612ca9d add Intl shim 2015-03-29 00:00:49 +01:00
Nils Schneider
f5dbd56a70 refactor router 2015-03-27 22:28:32 +01:00
Nils Schneider
40ecf2641e refactor map.js, show all offline nodes 2015-03-26 13:51:08 +01:00
Nils Schneider
ccd4b1652b nodelist: show only uptime and clientcount 2015-03-26 13:19:11 +01:00
Nils Schneider
a773b8323a reparent meshstats to overview 2015-03-26 13:18:55 +01:00
Nils Schneider
1b65918e74 typo 2015-03-26 02:00:36 +01:00
Nils Schneider
6f5d047a71 nodelist: change h2 to "Alle Knoten" 2015-03-26 01:36:23 +01:00
Nils Schneider
c6f8b5e8e4 nodelist: sort by hostname 2015-03-26 01:33:09 +01:00
Nils Schneider
ad56296a83 add nodelist 2015-03-26 01:31:46 +01:00
Nils Schneider
7cc653f20a infobox: add autoupdater state 2015-03-26 00:44:44 +01:00
Nils Schneider
368ca5e14a simple tabs 2015-03-26 00:33:11 +01:00
Nils Schneider
090254c781 main.js: create only after data is ready 2015-03-25 21:19:52 +01:00
Nils Schneider
64c9e42eb4 meshstats: show absolute timestamp 2015-03-25 21:15:06 +01:00
Nils Schneider
5b352d7a32 refactor main.js 2015-03-25 21:12:03 +01:00
Nils Schneider
c79dff9111 fix loadState 2015-03-25 21:02:03 +01:00
Nils Schneider
1e6e868bfb refactor router 2015-03-25 20:55:49 +01:00
Nils Schneider
26f6936d39 move Router to its own module 2015-03-25 20:25:53 +01:00
Nils Schneider
265cb2e5eb rename gotoAnything to router 2015-03-25 20:25:17 +01:00
Nils Schneider
a2669373a0 more refactoring 2015-03-25 16:36:24 +01:00
Nils Schneider
a935c765c4 refactor nodeslists into simplenodelist 2015-03-25 16:28:36 +01:00
Nils Schneider
33bcb23cc1 refactor linklist to its own module 2015-03-25 16:04:23 +01:00
Nils Schneider
0a90cdb76c more refactoring (sidebar, meshstats) 2015-03-25 15:33:36 +01:00
Nils Schneider
2c57cff27f don't push history on initial reset() 2015-03-25 15:07:43 +01:00
Nils Schneider
efca0d98be rename history.js to main.js 2015-03-25 11:36:46 +01:00
Nils Schneider
5fb3cf5d20 refactor Infobox (own module) 2015-03-25 11:21:09 +01:00
Nils Schneider
648a8336d7 re-introduce blinking iconAlert 2015-03-25 10:29:41 +01:00
Nils Schneider
8a2300578a resetView 2015-03-25 02:50:28 +01:00
Nils Schneider
14d86c06af marker highlighting 2015-03-25 02:15:17 +01:00
Nils Schneider
52434ff06c leaflet.label 2015-03-25 02:14:56 +01:00
Nils Schneider
090b6c1d79 use circleMarkers again 2015-03-25 01:27:55 +01:00
Nils Schneider
0c74ddec8f introduce gotoTargets on map 2015-03-25 01:16:15 +01:00
Nils Schneider
8184e5f625 initial requirejs work (map-module) 2015-03-25 00:55:15 +01:00