From 9cf888fd6345642e47d750e1872aa82ad32985a8 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sat, 12 Jan 2019 21:23:46 +0100 Subject: front: Implement new network/switch and more 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. --- web/css/nms.css | 9 +- web/index.html | 16 +-- web/js/nms-info-box.js | 259 +----------------------------------------------- web/js/nms-types.js | 14 ++- web/js/nms-ui-boxes.js | 9 +- web/js/nms-ui-switch.js | 167 ++++++++++++++++++++----------- 6 files changed, 137 insertions(+), 337 deletions(-) (limited to 'web') diff --git a/web/css/nms.css b/web/css/nms.css index 32f302c..8f59488 100644 --- a/web/css/nms.css +++ b/web/css/nms.css @@ -9,9 +9,6 @@ canvas { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */ } -#info-box-container { - max-width: 700px; -} #info-box-container #edit-output { word-wrap: break-word; padding: 20px; @@ -133,11 +130,7 @@ div.map-mode-legend button { .graph { max-width: 100%; width: 100%; - height: 240px; -} -.genericBox { - position: absolute; - z-index: 120; + height: 10px; } button,input { diff --git a/web/index.html b/web/index.html index 05fd582..23431b1 100644 --- a/web/index.html +++ b/web/index.html @@ -47,13 +47,12 @@