aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* 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-5/+26
| | | | | | | | | | 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: 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-146/+152
|
* Search box/oplog: Add string-literal searchKristian Lyngstol2016-05-22-1/+8
| | | | | 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/+79
| | | | | | | | | | 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/+20
| | | | Needs a lot of work, including the API side, possibly also the schema.
* Tweak log entries and switch entriesKristian Lyngstol2016-05-19-4/+11
| | | | 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-203/+41
|
* Add basic oplogKristian Lyngstol2016-05-18-0/+67
| | | | | | | | | | 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/+36
| | | | Fixes #41
* Minor UI tweaks here and thereKristian Lyngstol2016-05-16-6/+6
| | | | | | | | | - 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-0/+2
| | | | Probably a few more items that needs to be added here.
* Make the admin-pane slightly usefulKristian Lyngstol2016-05-16-0/+80
| | | | It's still not very good, but this doesn't have to be precision work.
* Add config read-api and use it to detect public accessKristian Lyngstol2016-05-16-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently no way to modify the settings except by manual SQL, but it's coming. This allows us to have event-specific configuration in the database. This commit adds js that uses this to detect if the frontend is a public vhost or not. There are currently only three columns provided in addition to ID. publicvhost: The domain name of the publicly accessible version of Gondul. shortname: code name for the vent. e.g dx16, tg17, etc. data: jsonb to contain most other settings as we see fit. Most settings will be stored in 'data' if it's only or mainly used by the frontend. This will allow frontend developers to supply arbitrary configuration options without the need for API or database changes in the future. Fixes #51 References #54 Still need the GUI for it.
* Add tabs for admin/mapKristian Lyngstol2016-05-14-0/+42
| | | | | | The admin-tab is currently empty. That is besides the point. Closes #18
* Start simplifying tvmode and settingsKristian Lyngstol2016-05-13-47/+61
| | | | | | | | | | Fixes #68 References #67 There's still a few bits missing for #67 since there is no UI for it yet. On the bright side, this will store arbitrary options.
* Actual initial importKristian Lyngstol2016-04-12-0/+8815
Fetched from tgmanage.