nodata ui changes

This commit is contained in:
Magnus Åhall 2024-05-25 15:00:01 +02:00
parent 1185ebd030
commit fe9571c466
10 changed files with 86 additions and 79 deletions

4
go.mod
View File

@ -6,14 +6,14 @@ require (
git.gibonuddevalla.se/go/webservice v0.2.15 git.gibonuddevalla.se/go/webservice v0.2.15
git.gibonuddevalla.se/go/wrappederror v0.3.4 git.gibonuddevalla.se/go/wrappederror v0.3.4
github.com/expr-lang/expr v1.16.5 github.com/expr-lang/expr v1.16.5
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.9
) )
require ( require (
git.gibonuddevalla.se/go/dbschema v1.3.0 // indirect git.gibonuddevalla.se/go/dbschema v1.3.0 // indirect
github.com/google/uuid v1.5.0 // indirect github.com/google/uuid v1.5.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect github.com/gorilla/websocket v1.5.1 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/lib/pq v1.10.9 // indirect
golang.org/x/net v0.17.0 // indirect golang.org/x/net v0.17.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )

4
go.sum
View File

@ -1,7 +1,7 @@
git.gibonuddevalla.se/go/dbschema v1.3.0 h1:HzFMR29tWfy/ibIjltTbIMI4inVktj/rh8bESALibgM= git.gibonuddevalla.se/go/dbschema v1.3.0 h1:HzFMR29tWfy/ibIjltTbIMI4inVktj/rh8bESALibgM=
git.gibonuddevalla.se/go/dbschema v1.3.0/go.mod h1:BNw3q/574nXbGoeWyK+tLhRfggVkw2j2aXZzrBKC3ig= git.gibonuddevalla.se/go/dbschema v1.3.0/go.mod h1:BNw3q/574nXbGoeWyK+tLhRfggVkw2j2aXZzrBKC3ig=
git.gibonuddevalla.se/go/webservice v0.2.12 h1:IcaIycmF7eO88RmFQkslHaKRWYxXdciVQXUAvJ36b4g= git.gibonuddevalla.se/go/webservice v0.2.15 h1:ECe63fRDSrg3RJcgYV2pG+WsAQLVG8wvfHennz7aHsY=
git.gibonuddevalla.se/go/webservice v0.2.12/go.mod h1:3uBS6nLbK9qbuGzDls8MZD5Xr9ORY1Srbj6v06BIhws= git.gibonuddevalla.se/go/webservice v0.2.15/go.mod h1:3uBS6nLbK9qbuGzDls8MZD5Xr9ORY1Srbj6v06BIhws=
git.gibonuddevalla.se/go/wrappederror v0.3.4 h1:dcKp9/+QrZSO3S4fVnq7yG2p7DUZVmlztBAb/OzoZNY= git.gibonuddevalla.se/go/wrappederror v0.3.4 h1:dcKp9/+QrZSO3S4fVnq7yG2p7DUZVmlztBAb/OzoZNY=
git.gibonuddevalla.se/go/wrappederror v0.3.4/go.mod h1:j4w320Hk1wvhOPjUaK4GgLvmtnjUUM5yVu6JFO1OCSc= git.gibonuddevalla.se/go/wrappederror v0.3.4/go.mod h1:j4w320Hk1wvhOPjUaK4GgLvmtnjUUM5yVu6JFO1OCSc=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

View File

@ -19,7 +19,7 @@ body {
} }
body { body {
background: #282828; background: #282828;
font-family: "Roboto", sans-serif; font-family: sans-serif;
font-weight: 300; font-weight: 300;
color: #d5c4a1; color: #d5c4a1;
font-size: 11pt; font-size: 11pt;
@ -48,25 +48,16 @@ a:hover {
b { b {
font-weight: 500; font-weight: 500;
} }
.roboto-light {
font-family: "Roboto", sans-serif;
font-weight: 300;
font-style: normal;
}
.roboto-medium {
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
input[type="text"], input[type="text"],
textarea, textarea,
select { select {
font-family: "Roboto Mono", monospace; font-family: monospace;
background: #202020; background: #202020;
color: #d5c4a1; color: #d5c4a1;
padding: 4px 8px; padding: 4px 8px;
border: none; border: none;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
} }
button { button {
background: #202020; background: #202020;
@ -97,6 +88,16 @@ span.seconds {
label { label {
user-select: none; user-select: none;
} }
.description {
border: 1px solid #737373;
color: #3f9da1;
background: #202020;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}
#datapoints { #datapoints {
display: grid; display: grid;
grid-template-columns: repeat(5, min-content); grid-template-columns: repeat(5, min-content);
@ -137,6 +138,7 @@ label {
} }
.widgets .label { .widgets .label {
margin-top: 4px; margin-top: 4px;
white-space: nowrap;
} }
.widgets input[type="text"], .widgets input[type="text"],
.widgets textarea { .widgets textarea {

View File

@ -19,7 +19,7 @@ body {
} }
body { body {
background: #282828; background: #282828;
font-family: "Roboto", sans-serif; font-family: sans-serif;
font-weight: 300; font-weight: 300;
color: #d5c4a1; color: #d5c4a1;
font-size: 11pt; font-size: 11pt;
@ -48,25 +48,16 @@ a:hover {
b { b {
font-weight: 500; font-weight: 500;
} }
.roboto-light {
font-family: "Roboto", sans-serif;
font-weight: 300;
font-style: normal;
}
.roboto-medium {
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
input[type="text"], input[type="text"],
textarea, textarea,
select { select {
font-family: "Roboto Mono", monospace; font-family: monospace;
background: #202020; background: #202020;
color: #d5c4a1; color: #d5c4a1;
padding: 4px 8px; padding: 4px 8px;
border: none; border: none;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
} }
button { button {
background: #202020; background: #202020;
@ -97,6 +88,16 @@ span.seconds {
label { label {
user-select: none; user-select: none;
} }
.description {
border: 1px solid #737373;
color: #3f9da1;
background: #202020;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}
#layout { #layout {
display: grid; display: grid;
grid-template-areas: "menu content"; grid-template-areas: "menu content";

View File

@ -19,7 +19,7 @@ body {
} }
body { body {
background: #282828; background: #282828;
font-family: "Roboto", sans-serif; font-family: sans-serif;
font-weight: 300; font-weight: 300;
color: #d5c4a1; color: #d5c4a1;
font-size: 11pt; font-size: 11pt;
@ -48,25 +48,16 @@ a:hover {
b { b {
font-weight: 500; font-weight: 500;
} }
.roboto-light {
font-family: "Roboto", sans-serif;
font-weight: 300;
font-style: normal;
}
.roboto-medium {
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
input[type="text"], input[type="text"],
textarea, textarea,
select { select {
font-family: "Roboto Mono", monospace; font-family: monospace;
background: #202020; background: #202020;
color: #d5c4a1; color: #d5c4a1;
padding: 4px 8px; padding: 4px 8px;
border: none; border: none;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
} }
button { button {
background: #202020; background: #202020;
@ -97,6 +88,16 @@ span.seconds {
label { label {
user-select: none; user-select: none;
} }
.description {
border: 1px solid #737373;
color: #3f9da1;
background: #202020;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}
#problems-list, #problems-list,
#acknowledged-list { #acknowledged-list {
display: grid; display: grid;

View File

@ -19,7 +19,7 @@ body {
} }
body { body {
background: #282828; background: #282828;
font-family: "Roboto", sans-serif; font-family: sans-serif;
font-weight: 300; font-weight: 300;
color: #d5c4a1; color: #d5c4a1;
font-size: 11pt; font-size: 11pt;
@ -48,25 +48,16 @@ a:hover {
b { b {
font-weight: 500; font-weight: 500;
} }
.roboto-light {
font-family: "Roboto", sans-serif;
font-weight: 300;
font-style: normal;
}
.roboto-medium {
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
input[type="text"], input[type="text"],
textarea, textarea,
select { select {
font-family: "Roboto Mono", monospace; font-family: monospace;
background: #202020; background: #202020;
color: #d5c4a1; color: #d5c4a1;
padding: 4px 8px; padding: 4px 8px;
border: none; border: none;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
} }
button { button {
background: #202020; background: #202020;
@ -97,3 +88,13 @@ span.seconds {
label { label {
user-select: none; user-select: none;
} }
.description {
border: 1px solid #737373;
color: #3f9da1;
background: #202020;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}

View File

@ -19,7 +19,7 @@ body {
} }
body { body {
background: #282828; background: #282828;
font-family: "Roboto", sans-serif; font-family: sans-serif;
font-weight: 300; font-weight: 300;
color: #d5c4a1; color: #d5c4a1;
font-size: 11pt; font-size: 11pt;
@ -48,25 +48,16 @@ a:hover {
b { b {
font-weight: 500; font-weight: 500;
} }
.roboto-light {
font-family: "Roboto", sans-serif;
font-weight: 300;
font-style: normal;
}
.roboto-medium {
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
input[type="text"], input[type="text"],
textarea, textarea,
select { select {
font-family: "Roboto Mono", monospace; font-family: monospace;
background: #202020; background: #202020;
color: #d5c4a1; color: #d5c4a1;
padding: 4px 8px; padding: 4px 8px;
border: none; border: none;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
} }
button { button {
background: #202020; background: #202020;
@ -97,6 +88,16 @@ span.seconds {
label { label {
user-select: none; user-select: none;
} }
.description {
border: 1px solid #737373;
color: #3f9da1;
background: #202020;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}
.widgets { .widgets {
display: grid; display: grid;
grid-template-columns: min-content 1fr; grid-template-columns: min-content 1fr;

View File

@ -1,7 +1,7 @@
export class UI { export class UI {
constructor() { constructor() {
document.addEventListener('keydown', evt=>this.keyHandler(evt)) document.addEventListener('keydown', evt=>this.keyHandler(evt))
document.querySelector('input[name="name"]').focus() document.querySelector('input[name="group"]').focus()
} }
keyHandler(evt) { keyHandler(evt) {
if (!(evt.altKey && evt.shiftKey)) if (!(evt.altKey && evt.shiftKey))

View File

@ -47,6 +47,7 @@
.label { .label {
margin-top: 4px; margin-top: 4px;
white-space: nowrap;
} }
input[type="text"], textarea { input[type="text"], textarea {

View File

@ -44,7 +44,7 @@ body {
body { body {
background: @bg1; background: @bg1;
font-family: "Roboto", sans-serif; font-family: sans-serif;
font-weight: 300; font-weight: 300;
color: @text1; color: @text1;
font-size: 11pt; font-size: 11pt;
@ -80,27 +80,16 @@ b {
font-weight: @bold; font-weight: @bold;
} }
.roboto-light {
font-family: "Roboto", sans-serif;
font-weight: 300;
font-style: normal;
}
.roboto-medium {
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
input[type="text"], input[type="text"],
textarea, textarea,
select { select {
font-family: "Roboto Mono", monospace; font-family: monospace;
background: @bg2; background: @bg2;
color: @text1; color: @text1;
padding: 4px 8px; padding: 4px 8px;
border: none; border: none;
font-size: 1em; font-size: 1em;
line-height: 1.5em; // fix for chrome hiding underscores
} }
button { button {
@ -138,3 +127,14 @@ span.seconds {
label { label {
user-select: none; user-select: none;
} }
.description {
border: 1px solid .lighterOrDarker(@bg3, 25%)[@result];
color: @color4;
background: @bg2;
padding: 4px 8px;
margin-top: 8px;
white-space: nowrap;
width: min-content;
border-radius: 8px;
}