aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.html
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2019-01-06 15:40:16 +0100
committerKristian Lyngstol <kly@kly.no>2019-01-06 15:40:16 +0100
commit0bd74cf3010de984d36eed04b6318b7b30e25373 (patch)
tree196b81faba14e54f8a8f14eae03c5248550dacc9 /web/index.html
parent8d63fa675264ae0d809f86ee036e081519b88299 (diff)
Extenstive frontend work on box/type/switch editing
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.
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/index.html b/web/index.html
index 3e92dc8..acb0fbf 100644
--- a/web/index.html
+++ b/web/index.html
@@ -337,6 +337,7 @@
<script type="text/javascript" src="js/nms-template.js"></script>
<script type="text/javascript" src="js/nms-draw-chart.js"></script>
<script type="text/javascript" src="js/nms-ui-boxes.js"></script>
+ <script type="text/javascript" src="js/nms-types.js"></script>
<script type="text/javascript" src="js/nms-ui-switch.js"></script>
<script src="js/jquery.datetimepicker.full.js" type="text/javascript"></script>
<script type="text/javascript">