aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* front: Tweak info-box looks/widthKristian Lyngstol2016-05-28-2/+14
| | | | Makes it more snug and look the same all over
* dx: Switch base map and adjust placementKristian Lyngstol2016-05-28-1/+1
| | | | | | | | | | | | | I think we can say this Fixes #53 and Fixes #52 still should add support for making it configurable, that that's not a must for DX16 to take place.
* Merge pull request #87 from lasseh/masterKristian Lyngstøl2016-05-28-0/+0
|\ | | | | DX16 salkart
| * DX16 salkartLasse Haugen2016-05-28-0/+0
| |
* | front: A few more time travel tweaksKristian Lyngstol2016-05-28-14/+11
| | | | | | | | | | | | | | I can never get it all in a single commit. But I compensate by some times putting multiple unrelated things in the same commit.
* | Fix numerous time-travel issues in front and APIKristian Lyngstol2016-05-28-250/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #69 #11 #5 Introduces nmsTime which unifies the time travel code a bit. It still needs some work, but this is much better. All conversion is now done by native JavaScript methods, freeing us from the hell that is parsing it ourself. One thing should be added: The backend should discard any now=values that are not 5-minute intervals. We don't want to kill the cache and the database by extension. Still need to re-implement the "replay event" shorthand, but that ties in to #54
* | Add dx16 early graphics and adjust placementKristian Lyngstol2016-05-28-1/+1
| | | | | | | | | | | | References #53 #52 #54 It's hardcoded, but I can live with that for now.
* | front: More visual tweaks and tuneupsKristian Lyngstol2016-05-28-31/+35
| | | | | | | | | | | | | | - Time in oplog is now localtime and properly padded (00:10, not 0:10) - Health map instead of combo/aggregated - Tweak the menu slightly - Rotate and resize the random switch in guess_placement
* | front: Tweak various aestheticsKristian Lyngstol2016-05-28-13/+19
| |
* | front/api: Add user-provided nick to oplogKristian Lyngstol2016-05-28-8/+40
| | | | | | | | | | | | Fixes #84 It's really stupid simple, but it will work.
* | front: More performance tweaks and testTree()Kristian Lyngstol2016-05-27-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | testTree() will make it easier to avoid try-catch'ing because instead of if (nmsData == undefined || nmsData.snmp == undefined || nmsData.snmp.snmp == undefined || nmsData.snmp.snmp[sw] == undefined || nmsData.snmp.snmp[sw].misc ...) you can do if (!testRoot(nmsData,['snmp','snmp',sw,'misc')) { ... Which is at least slightly less annoying.
* | front: Some minor CPU optimizationsKristian Lyngstol2016-05-27-9/+14
| | | | | | | | Knocking stuff off the top of the cpu hogs from a tiny bit of profiling.
* | front: Tweak/fix ping scoresKristian Lyngstol2016-05-27-5/+12
| | | | | | | | | | | | | | Specially bad was the foo == bar == undef thing which broke completely. Also, this makes sure that we don't cap out at 200 if the ping reply is 1000ms...
* | front: Sanitize info-box-classname-thingKristian Lyngstol2016-05-27-2/+1
| | | | | | | | | | | | Fixes broken class list when the description was stuff like "worst: management info" (where the "info" would end up as a class and change the look).
* | front: Minor sorting of the info-boxKristian Lyngstol2016-05-26-2/+2
| | | | | | | | Management IP up top seems sensible.
* | front: Remove some old console.log() remnantsKristian Lyngstol2016-05-25-2/+5
| | | | | | | | KEK
* | front: Search tweaks and twaksKristian Lyngstol2016-05-25-7/+4
| | | | | | | | | | | | | | | | regex search on distro is mainly to include it in extended searches, e.g.: ^(distro0|row21-\d)$ This means "" is now, again, needed to match only one switch.
* | front: Fix/tweak edit-boxKristian Lyngstol2016-05-25-3/+3
| | | | | | | | | | | | | | | | | | No need to expose 'switch' id in the API - it's internal to the db. The entire edit-logic should be cleaned up, but at least this fixes the immediate problem. Fixes #74
* | front: Fix switch viewing in public and tvmode-initKristian Lyngstol2016-05-25-2/+6
| | | | | | | | Fixes #76
* | front: Remove nms.views and improve #anchor logicKristian Lyngstol2016-05-25-19/+24
| | | | | | | | | | | | | | | | | | | | Fixes #82 nms.views is gone, and if the anchor (http://.../#anchor) is a comma-separated list, "tvmode" will be used. Also ensures that the anchor already contains the updater tag, it wont be changed. This means that for tvmode the anchor wont change constantly.
* | front: Tweak nightmode, fix nightmode+adminKristian Lyngstol2016-05-24-11/+20
| | | | | | | | | | | | | | | | | | | | | | Fixes #78 Introduces nightmode to the infobox and everything else too. Also exaggerates the drop shadows greatly and reduces the alpha on the overlay oplog. With the exaggerated drop shadow, the text is largely readable even with noise underneath. Without noise underneath, the drop shadow is invisible.
* | front: Track frontend run-timeKristian Lyngstol2016-05-24-0/+5
| | | | | | | | | | Mainly for future use. To avoid notifications if we just loaded up recently, for example.
* | front: Use RegExp all over for searchesKristian Lyngstol2016-05-23-5/+6
| | | | | | | | | | | | | | | | | | creates some interesting opportunities, as searches can be combined. E.g.: '(row\d+-2|distro0|presse) can be used to mark multiple different switches now. Or '(::1$|^noc$|127.*\.14$) etc. Could probably get rid of the ""-hack now too. It was mainly meant for the automatic oplog entry on switch-creation, which can now use "^switch$" instead.
* | front: Regex searching instead of home-brew thingamajingKristian Lyngstol2016-05-23-1/+2
| |
* | front: De-noise the ping handler in lack of pingKristian Lyngstol2016-05-23-1/+0
| | | | | | | | That was supposed to be a debug thing...
* | front: Fix Ping-map nameKristian Lyngstol2016-05-23-1/+1
| | | | | | | | Also does ipv6 now.
* | Ping and expose ipv6 as a true equal/superiorKristian Lyngstol2016-05-23-13/+38
| | | | | | | | | | | | | | | | | | | | Fixes #80 I should go to bed. Also: Fixes a tiny little issue where we didn't take into account the nature if the OPing timeout? Or has it changed? Either way, no longer do we store thousands of ping replies - per second.
* | front: Live search and tweaked mgmt infoKristian Lyngstol2016-05-22-11/+50
| | | | | | | | | | | | | | | | Fixes #2 Also, since I didn't bother splitting the commits, this tweaks the information provided from the snmp handler and management handler. Notably treating IPv4 and IPv6 management addresses as equals.
* | front: Fix minor, but crucial typo in the ping mapKristian Lyngstol2016-05-22-1/+1
| | | | | | | | Ooops...
* | front: Minor comment tweaksKristian Lyngstol2016-05-22-3/+2
| |
* | front: Move data-logic out of infoboxKristian Lyngstol2016-05-22-72/+85
| | | | | | | | | | | | | | | | | | | | handlerInfo is getting slightly extensive, but it might be worth it. This also introduces a "map" handler that .... doesn't handle the map. If/when namespaces are introduced properly in nms-map-handlers.js, we should also rename it to nms-data-logic.js or something else that signifies that this is what makes data useful one way or an other.
* | Front: introduce nmsColor namespaceKristian Lyngstol2016-05-22-87/+90
| | | | | | | | | | | | Also gets rid of color_from_latency() (?) as it was basically worthless by now, and adds switch info to the combo-map so you can quickly identify why a switch is colored a certain way without clicking on it.
* | front: Move CSS out of index.htmlKristian Lyngstol2016-05-22-99/+91
| |
* | Front: Further reduce tvmode-uniquenessKristian Lyngstol2016-05-22-14/+17
| | | | | | | | | | | | | | | | | | Still not very happy with this, but it's inching closer to acceptable every day. Should probably redo the whole set_handler() logic with regards to the anchor to always use the views-logic where a comman-separated list is acceptable, then get rid of nms.views all together.
* | Front: Separate searching from the info-boxKristian Lyngstol2016-05-22-148/+155
| |
* | Search box/oplog: Add string-literal searchKristian Lyngstol2016-05-22-2/+10
| | | | | | | | | | You can now use "foo" to find a switch called foo, but not also the ones called foobar foobar1, etc
* | Slightly tweak the internal API for combined healthKristian Lyngstol2016-05-21-16/+47
| |
* | Expose handler-data/combo data in infoboxKristian Lyngstol2016-05-21-66/+11
| | | | | | | | | | | | | | | | Fixes #15 Still lots of things that _should_ be done, but this is the groundwork needed for a combined map. Theoretically, all map handlers should just expose getInfo somehow now.
* | Tweak ping-map after the combo-map reworkKristian Lyngstol2016-05-20-16/+9
| | | | | | | | | | | | Should get rid of the get_gradient_from_latency entirely. PS: jocke, you read too many commit logs.
* | Add a combined health mapKristian Lyngstol2016-05-20-1/+84
| | | | | | | | | | | | | | | | | | | | Only combines SNMP and ping for now, but the "API" it establishes should do what we need. References #15 Before I consider this done we need to add the infomration in the info-box, and also remove the manual information present there.
* | Add rudimentary way of providing linknets.Kristian Lyngstol2016-05-20-1/+60
| | | | | | | | Needs a lot of work, including the API side, possibly also the schema.
* | Add system-generated op logsKristian Lyngstol2016-05-20-1/+3
| | | | | | | | | | | | | | | | First up: Add a switch, get a log entry. This might require some filtering in the GUI eventually. This is why the user is set to 'system', even when we have an actual user that triggered the event.
* | Config: Output some defaults if there is no config.Kristian Lyngstol2016-05-20-0/+3
|/ | | | Fixes #79
* Tweak log entries and switch entriesKristian Lyngstol2016-05-19-6/+13
| | | | Also: onclick handler for log entries.
* Disable IE support and HTML-injectionKristian Lyngstol2016-05-18-6/+6
|
* Remove comments from code in place of oplogsKristian Lyngstol2016-05-18-273/+42
|
* Add basic oplogKristian Lyngstol2016-05-18-3/+148
| | | | | | | | | | It still needs to be integrated with switches/info box, but this is a good start. Shows the last 5 log messages in an overlay on the map, with the rest visible in an oplog tab. Fixes #20
* Add search-box documentationKristian Lyngstol2016-05-16-0/+38
| | | | Fixes #41
* Minor UI tweaks here and thereKristian Lyngstol2016-05-16-8/+11
| | | | | | | | | - Shadow for map title text (color matches background, so only visible when background interferes with readability) - SNMP map is private too - Remove 'map' from a bunch of titles - Fix z-index and position for map title (z-index is lower than the input canvas, but higher than everything else).
* Frontend: Hide certain elements in public-modeKristian Lyngstol2016-05-16-13/+18
| | | | Probably a few more items that needs to be added here.