aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* Upgrade bootstrap and rewrite API (#230)HEADmasterOle Mathias Aa. Heggem2025-04-13-10431/+5247
|
* Merge pull request #226 from gathering/fix/night-mode-respect-user-configurationHåkon Solbjørg2023-07-30-0/+5
|\ | | | | fix(nightmode): Respect user provided configuration for night mode if provided
| * fix(nightmode): Respect user provided configuration for night mode if providedfix/night-mode-respect-user-configurationHåkon Solbjørg2023-04-02-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | If user sets the cookie or URL query parameter for nightMode, we will respect that. Note that it is a bit cumbersome to _clear_ this configuration (afaik?) if it is set. This is also the case if the user toggles nightmode directly in Gondul (`n`). However, this last configuration is not persisted - so on a page reload, this setting is removed (no need to clear cookies/query params), and the system preference is again followed.
* | TG23: Throw everything over the wall and run!root2023-04-09-44/+160
| |
* | Remove templates, increase polling timeout +tg23root2023-04-01-1/+1
|/
* feat(ui): Use Prefer Color Scheme to decide to use night modefeat/night-mode-follow-systemHåkon Solbjørg2023-03-22-0/+19
| | | | | | Uses the proposal here: https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-scheme Seems to be decently supported: https://caniuse.com/?search=prefers-color-scheme
* tg23 initSjur Fredriksen2023-01-30-2/+2
|
* TG19Ole Mathias Aa. Heggem2019-04-19-11/+26
|
* Use new metrics in dhcp apiOle Mathias Aa. Heggem2019-04-16-20/+65
| | | | support ipv6 in dhcp
* update urlsSjur Fredriksen2019-04-16-3/+2
|
* update what to look for in aliasSjur Fredriksen2019-04-14-2/+2
|
* Make network work againOle Mathias Aa. Heggem2019-04-11-3/+62
|
* Use ping as default map on public siteOle Mathias Aa. Heggem2019-04-10-0/+3
|
* Make public gondul not ask for authOle Mathias Aa. Heggem2019-04-10-4/+10
|
* front: Handle corrupt tag-json more gracefullyKristian Lyngstol2019-02-22-3/+7
| | | | | | Caused a problem locally after I had accidentally made tags into an object instead of an array during testing, but this CAN happen if someone writes {} instead of [], so better to anticipate it.
* Front + api: Fix parsing of JSON-fields for switchesKristian Lyngstol2019-02-13-37/+31
| | | | | | | | | | | | | | | | | | | | | | | Sort of. It's two issues at once, related: 1. API: The problem here was that the old way of updating tags simply didn't use actual JSON, but just sent "'foo','bar','baz'" as a text string. This seems dumb so I've made it send actual JSON now - just like the "placement" field. This meant updating the API. And it's not pretty, but it works. 2. Front: I've simplified nms-types a bit (hopefully to provide to simple methods: either get/set the raw value, or get/set strings. There was a bug where we sent text-encoded json instead of real json, and the reason was a confusion between when we're dealing with JSON and when we're dealing with strings. Now we are explicit. This makes the nmsEditRow-thing slightly uglier, but it needs to be fixed properly either way. In the future, we should provide renderers and editors based on types, e.g.: Placement-editor could start as a general-purpose JSON-editor, and the "switch reference" should be a drop-down.... etc. Fixes #202
* front: Switch editing: Don't nest panel-body elementsKristian Lyngstol2019-02-11-1/+1
| | | | It creates an extra margin that serves no purpose but to take up space.
* front: Update switch-moving to use correct APIKristian Lyngstol2019-02-11-1/+1
|
* js front: Add missing file and minor tweakKristian Lyngstol2019-01-29-0/+60
|
* front: Implement new network/switch and moreKristian Lyngstol2019-01-12-321/+128
| | | | | | | | | | | | | | | Fixes #183 References #182 It's now possible to add new networks and switches, and it's also possible to edit networks, but since I haven't exposed it in the UI yet, I can't really close the bug. This is also a major step in stripping nms-info-box apart. Next up is listing existing networks, possibly linking to them. I think that might be a decent first-step towards a new core nms-info-box since it doesn't alreay exist.
* Move the info summary in the info-box into nmsBox-logicKristian Lyngstol2019-01-11-37/+10
| | | | | | | Also some other random drive-by fixes :D Fixes #180 References #181
* Expose validation and "changed or not" to end userKristian Lyngstol2019-01-09-156/+64
| | | | | | | Starting to look seeeexy. Also killed off some redundant stuff that should be covered by templates instead now.
* Fix switch-deletion in frontend after misspellKristian Lyngstol2019-01-09-2/+2
|
* Move switch-editing further away from nms-info-boxKristian Lyngstol2019-01-09-42/+38
| | | | Still needs to be tidied up, but we're getting there.
* Expose new-style edit-stuff in old-style panelKristian Lyngstol2019-01-09-146/+78
| | | | | | | | | | | The integration is a hack, but a first step. I will eventually remove all the code in nms-info-box, but I needed a simple test. This also demonstrates how to add a new switch.... simply hit edit, then change the name. It aint pretty, and shouldn't work like it does today, but it's a decent example. Also, had to fix the backend again now that I actually tested the write-api :D
* Fix switch-edit-thing after I changed nms-ui-boxKristian Lyngstol2019-01-09-11/+8
|
* Re-introduce the use-name-box and tweak styleKristian Lyngstol2019-01-08-21/+38
| | | | | | Turns out the style-diff was because the old implementation with hard-coded HTML had indentation == white space, which rendered as white-space between the elements.... This SHOULD be a CSS fix, but in the meanwhile....
* Tweak the oplog-hover-thingKristian Lyngstol2019-01-07-2/+7
| | | | | The timeout makes things about 1000x more complicated, but adds a really nice effect too.
* Auto-hilight systems on oplog-hoverKristian Lyngstol2019-01-07-5/+24
|
* Re-enable oplog-togglingKristian Lyngstol2019-01-07-1/+1
|
* Bad attempt at fixing the margins in the oplog-entryKristian Lyngstol2019-01-07-5/+5
| | | | Too late, need sleeeezpzpeepzor
* More big stuff: Re-do the oplogKristian Lyngstol2019-01-07-117/+336
| | | | | This is still a bit of a mess, but I'm establishing a new way of doing things, it'll be awesome, I swear...
* Extenstive frontend work on box/type/switch editingKristian Lyngstol2019-01-06-45/+256
| | | | | | | | | | | | | | | | | | | | | | | Still not very visible, but the nmsModSwitch() class is starting to look very interesting. This introduces a big thing: A type system. So far it is "only" used to provide generic validation-services for all fields that will be edited, but the scope can extend further into other uses. The implementation as it is does shallow validation for IP addresses, JSON-input (tags,placement), durations/intervals (poll frequency), sysname references (checks that distro_name is a valid system), and networks (verifying that mgmt_vlan / traffic_vlan exists). This is expected to improve over time, and should eventually lead to things like "if it doesn't exist, then please make it." As the big comment in nms-ui-switch.js now suggests: This is still just a proof of concept and while the fundamental concepts of nmsBox seems to work well, I still feel like I have a lot to iron out in nmsModSwitch, which really should be generic for networks and switches at the very least. But we're getting there.
* Introduce nms-ui-boxes, a big step for GUIKristian Lyngstol2019-01-06-21/+340
| | | | | | | | | | | | | | | | | | | | | | | | | | nmsBox is a new class for generic HTML-based elements, and will eventually be used to replace nms-info-box. The idea is simple: a generic way to deal with containers that are usually represented in HTML too. To test it, I've re-implemented the GUI for the oplog. This rewrite didn't really utilize the new benefits of the framework, but was a small step. I've also added nms-ui-switch, which isn't exposed anywhere yet and isn't done, but is a good start. nms-ui-switch will be the new way to add and edit switches in the future, it will probably be made more generic over time and thus can be reused for networks too. Note how x = nmsUiSwitch() will allow you to do x.row["community"].value to both get and set the value, and setting will visually update and run any verifier that will be relevant, and alert the parent. This can then be used for simple stuff like json-verification, but also for stuff like auto-complete or whatnot. God only knows. Obviously I will continue to work on this over the next few days...
* js: Trigger a map-resize when menu is toggledKristian Lyngstol2019-01-05-0/+16
| | | | Fixes #71
* Merge pull request #172 from olemathias/masterKristian Lyngstøl2019-01-03-373/+382
|\ | | | | Cleanup of latencychart
| * Code formating cleanup of chart and 1 hour latency chartOle Mathias Aa. Heggem2018-10-31-360/+344
| |
| * Code formating cleanup of chart and 1 hour latency chartOle Mathias Aa. Heggem2018-10-31-179/+179
| |
| * Cleanup of latencychartOle Mathias Aa. Heggem2018-09-14-17/+42
| |
* | Merge pull request #169 from tech-server/cpu-map-hotkeyKristian Lyngstøl2019-01-03-0/+3
|\ \ | | | | | | Adding CPU map to key 9, moving disco to 0
| * | Adding CPU map to key 9, moving disco to 0cpu-map-hotkeyMagnus Kirø2018-04-06-0/+3
| | |
* | | First step to major cleanupKristian Lyngstol2019-01-03-32/+71
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #150 Fixe #88 Closes #3 Probably lots of bugs introduced, will fix ASAP.
* | | Remove noisy log message from nms-map-handlersKristian Lyngstol2019-01-02-3/+8
| | |
* | | Tweak general lookKristian Lyngstol2019-01-02-26/+28
| | |
* | | front: Time replay: Speed it upKristian Lyngstol2018-12-02-3/+3
| | |
* | | nms.js: Add time-traveling in whole days with H/L keysKristian Lyngstol2018-12-02-0/+8
| | |
* | | front: Tweak format of time stamp during travelKristian Lyngstol2018-12-02-1/+2
| | | | | | | | | | | | | | | Seeing the day helps immensly, and the rather ugly translate-code avoids overlap
* | | front: Adjust new dhcp-magic to be less agressiveKristian Lyngstol2018-12-02-1/+1
| |/ |/|
* | front: Shortcut for toggling the oplog (o)Kristian Lyngstol2018-04-09-0/+15
| |
* | Merge pull request #171 from sklirg/patch-3Kristian Lyngstøl2018-04-06-1/+1
|\ \ | | | | | | Set Client ports description to "None configured" if no configured client ports