| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
| |
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
|
| |
|
|
| |
God I hate this...
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Also some other random drive-by fixes :D
Fixes #180
References #181
|
| | |
|
| |
|
|
|
| |
This is still a bit of a mess, but I'm establishing a new way of doing things,
it'll be awesome, I swear...
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
| |\
| |
| | |
Adding CPU map to key 9, moving disco to 0
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| | |
Network as own table
|
| | | |
|
| |/ |
|
| | |
|
| |\
| |
| | |
Added a basic search results page and search on tags
|
| | |\ |
|
| | | | |
|
| | |/
|/| |
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Fixes #151
While there are certainly more things that can be done - such as reading
the list of templates dynamically, it wouldn't be horrible to go into
production with the GUI the way it is right now.
|
| |
|
|
|
|
| |
Still leaves a lot to be desired, but is a good start.
References #151
|
| | |
|
| |
|
|
|
|
|
| |
Tweaks background colors on graphs.
Adds a funky "ticker" to the navbar that may or may not break small
screens. Graphs average latency and total bandwidth for all equipment.
|
| |
|
|
|
|
|
|
| |
It doesn't do any good in its current implementation.
If it were to make sense, we'd need to drastically enrich it.
Closes #128
|
| | |
|
| |
|
|
|
|
| |
Tooltips vil være litt browseravhengig.
Fikser også noen nightmode issues her og der.
|
| | |
|
| |
|
|
| |
Displays a sorted list of what needs attention.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
The HTML/detail should probably be tweaked, but I think we need a way to
show that Gondul is still alive now that we are hiding the time stamp by
default.
Feel free to throw the HTML/CSS away in favor of some other subtle but
noticeable "animation".
|
| |
|
|
|
|
| |
- Don't overload the logbook overlay
- Neater date formatting (ugh, I hate that we need to do this)
- Caption for the logbook in the info box
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
I can never get it all in a single commit.
But I compensate by some times putting multiple unrelated things in the
same commit.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
References #53 #52 #54
It's hardcoded, but I can live with that for now.
|
| |
|
|
|
|
|
| |
- 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
|
| | |
|
| |
|
|
|
|
| |
Fixes #84
It's really stupid simple, but it will work.
|
| | |
|
| | |
|
| |
|
|
|
| |
You can now use "foo" to find a switch called foo, but not also the ones
called foobar foobar1, etc
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Needs a lot of work, including the API side, possibly also the schema.
|