From beced312e5ab331c48675bb00a8b1a943bf51dfb Mon Sep 17 00:00:00 2001 From: Gunther Konig Date: Wed, 6 Sep 2017 17:38:43 +0300 Subject: [PATCH] group monitors by naming convention e.g.: "a.b" and "a.c" would create a group "a" with two monitors --- src/daemon/public/style.css | 22 ++++-- src/front/App.vue | 130 +++++++++++++++++++++++++----------- 2 files changed, 109 insertions(+), 43 deletions(-) diff --git a/src/daemon/public/style.css b/src/daemon/public/style.css index e2725830..79db7c72 100644 --- a/src/daemon/public/style.css +++ b/src/daemon/public/style.css @@ -63,7 +63,7 @@ main { } /* Used to avoid setting padding on aside and main (breaks layout) */ -ul, footer, .container { +footer, .container { padding: 20px; } @@ -90,18 +90,30 @@ a:hover { ul { margin: 0; + padding: 0; } #app li { list-style: none; + border-bottom: 1px solid #F0F0F0; + padding: 10px 20px; +} +#app li.monitor { + padding: 0; +} +#app li.group li { + padding-right: 0; +} +#app li li:last-child { + border-bottom: 0; +} +#app li li, #app div.group { display: flex; justify-content: space-between; align-items: center; - border-bottom: 1px solid #F0F0F0; - height: 64px; } -#app li div { +#app li li div { flex-grow: 1; } @@ -132,7 +144,7 @@ button.status.running { color: #14B8CC; } -button.logs { +button.logs, button.group-toggle { font-size: 14px; } diff --git a/src/front/App.vue b/src/front/App.vue index 0a6f308a..2bfb0ff7 100644 --- a/src/front/App.vue +++ b/src/front/App.vue @@ -15,35 +15,48 @@ ~/app$ hotel add http://192.16.1.2:3000