This commit is contained in:
Justinas K. 2021-12-06 13:32:32 +02:00
commit 61aa52d530
11 changed files with 283 additions and 79 deletions

View File

@ -1,16 +1,18 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Material+Icons"/>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>Europeum</title>
</head>
<body>
<noscript>
<strong>We're sorry but page doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong
>We're sorry but page doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->

View File

@ -1,6 +1,57 @@
<style>
@font-face {
font-family: "Material Icons";
font-style: normal;
font-weight: 500;
src: local("Material Icons"), local("MaterialIcons-Regular"),
url(./fonts/MaterialIcons-Regular.ttf) format("truetype");
}
@font-face {
font-family: "Quicksand";
letter-spacing: 0;
src: local("Quicksand"),
url(./fonts/Quicksand-SemiBold.ttf) format("truetype");
}
body {
font-family: "Quicksand", Helvetica, Arial !important;
font-size: 20px;
}
.md-list-item-content {
font-family: "Quicksand", Helvetica, Arial !important;
}
.material-icons {
font-family: "Material Icons";
font-weight: normal;
font-style: normal;
font-size: 18px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: "liga";
}
.md-table-head-label {
font-size: 13px;
color: black;
font-weight: 500;
}
</style>
<template>
<div id="app">
<Toolbar />
<div class="md-layout">
<div class="md-layout-item md-size-10"></div>
@ -8,10 +59,14 @@
<div class="md-layout-item md-size-10"></div>
</div>
<md-dialog :md-active="notConnected" :md-click-outside-to-close="false" :md-close-on-esc="false">
<md-dialog
:md-active="notConnected"
:md-click-outside-to-close="false"
:md-close-on-esc="false"
>
<md-dialog-title>Could not connect</md-dialog-title>
<md-dialog-content>
Retrying connection to host, please see if CredoID is up and running
Retrying connection to host, please see if CredoID is up and running
</md-dialog-content>
<md-progress-bar
class="md-accent"
@ -55,5 +110,3 @@ export default {
};
</script>
<style>
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="361.75003pt"
height="53.179691pt"
viewBox="0 0 361.75001 53.17969"
version="1.2"
id="svg880"
sodipodi:docname="CREDO_LOGO.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata886">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs884" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview882"
showgrid="false"
inkscape:zoom="1.6819299"
inkscape:cx="199.09002"
inkscape:cy="116.69707"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="surface37430" />
<g
id="surface37430"
transform="translate(-116.76563,-101.11719)">
<path
style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 139.27344,153.69922 c -2.03125,0 -3.89844,-0.0859 -5.60938,-0.25781 -1.70703,-0.17579 -3.28125,-0.4961 -4.71484,-0.96875 -1.4375,-0.46875 -2.77734,-1.10938 -4.01172,-1.92969 -1.23828,-0.81641 -2.37891,-1.89453 -3.41797,-3.23047 -0.79297,-0.94141 -1.48437,-1.99219 -2.07812,-3.15625 -0.59375,-1.16016 -1.08985,-2.5 -1.48438,-4.01172 -0.39844,-1.50781 -0.69531,-3.23047 -0.89062,-5.16016 -0.19922,-1.92968 -0.30078,-4.13281 -0.30078,-6.61328 0,-4.35156 0.28515,-8.16796 0.85546,-11.43359 0.57032,-3.26953 1.79297,-6.08984 3.67579,-8.46875 1.1875,-1.53125 2.52734,-2.74609 4.01171,-3.63672 1.48438,-0.89453 3.03125,-1.57422 4.64063,-2.04297 1.60937,-0.47265 3.23047,-0.76562 4.86719,-0.89062 1.63281,-0.125 3.1914,-0.1875 4.67578,-0.1875 h 21.52734 v 12.92187 h -13.42969 c -1.38281,0 -2.67187,0.0156 -3.86328,0.0391 -1.18359,0.0234 -2.27734,0.17578 -3.26562,0.44531 -0.99219,0.26953 -1.88282,0.67969 -2.67578,1.22656 -0.78907,0.54297 -1.48438,1.33594 -2.07813,2.375 -0.39844,0.64453 -0.70703,1.375 -0.92969,2.19141 -0.22265,0.8164 -0.38281,1.66015 -0.48437,2.52343 -0.0977,0.86719 -0.17188,1.69532 -0.21875,2.48829 -0.0508,0.79296 -0.0742,1.51171 -0.0742,2.15624 0,1.4336 0.0469,2.64454 0.14844,3.64063 0.0977,0.98828 0.21093,1.81641 0.33203,2.48437 0.125,0.66797 0.26172,1.20313 0.40625,1.59766 0.15234,0.39453 0.27344,0.69531 0.375,0.89063 0.54297,1.04296 1.25,1.83203 2.11719,2.3789 0.86718,0.54297 1.84375,0.94141 2.93359,1.1875 1.08594,0.2461 2.27344,0.39453 3.5625,0.44531 1.28906,0.0508 2.625,0.0742 4.01172,0.0742 h 13.13281 l 0.0508,12.92188 z m 0,0"
id="path863"
inkscape:connector-curvature="0" />
<path
style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 233.44531,153.69922 c -1.08984,0 -2.16406,-0.0859 -3.23047,-0.25781 -1.0664,-0.17579 -2.09375,-0.67969 -3.08203,-1.52344 -1.1875,-0.98828 -1.88281,-2.01563 -2.07812,-3.08203 -0.19922,-1.06641 -0.30078,-2.21485 -0.30078,-3.45313 v -35.64843 c 0,-0.99219 0.125,-2.00782 0.37109,-3.04688 0.25,-1.03906 0.86719,-2.00781 1.85937,-2.89844 0.98829,-0.89062 2.05469,-1.46093 3.19141,-1.70703 1.14063,-0.24609 2.17969,-0.37109 3.12109,-0.37109 h 37.35938 v 12.625 h -25.69922 c -0.49609,0 -0.98047,0.0625 -1.44922,0.1875 -0.46875,0.125 -0.85156,0.30859 -1.14844,0.55469 -0.39843,0.34765 -0.63281,0.76953 -0.70703,1.26562 -0.0742,0.49609 -0.11328,0.91406 -0.11328,1.26172 v 3.93359 h 28.3711 v 11.29297 h -28.3711 v 5.64063 c 0,0.54687 0.0742,0.96875 0.22656,1.26562 0.14844,0.29688 0.32032,0.51953 0.51954,0.66797 0.39453,0.39453 0.89062,0.60547 1.48437,0.63281 0.59375,0.0234 1.16406,0.0352 1.70703,0.0352 h 25.40235 v 12.625 z m 0,0"
id="path865"
inkscape:connector-curvature="0" />
<path
style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 292.86328,136.83984 c 0,0.54688 0.0195,1.09375 0.0703,1.63672 0.0508,0.54297 0.27344,1.01172 0.66797,1.41016 0.44922,0.44531 0.99219,0.70312 1.63672,0.77734 0.64453,0.0781 1.01563,0.11328 1.11328,0.11328 h 2.30078 c 1.88672,0 3.71875,-0.17187 5.4961,-0.51953 1.78515,-0.34765 3.19531,-1.16406 4.23437,-2.45312 0.19922,-0.19532 0.42188,-0.51563 0.66797,-0.96485 0.25,-0.44531 0.49609,-1.0625 0.74609,-1.85547 0.2461,-0.79296 0.45704,-1.82031 0.62891,-3.08203 0.17188,-1.26172 0.25781,-2.8125 0.25781,-4.64062 0,-2.87109 -0.33203,-5.17578 -1.0039,-6.91016 -0.66407,-1.73047 -1.4961,-3.04297 -2.48438,-3.93359 -1.14062,-0.99219 -2.48828,-1.60938 -4.05078,-1.85938 -1.55469,-0.24609 -3.35156,-0.37109 -5.38281,-0.37109 H 296.5 c -0.44531,0 -0.89063,0.0391 -1.33594,0.11328 -0.44531,0.0742 -0.86719,0.23438 -1.26172,0.48047 -0.49609,0.39844 -0.79297,0.88281 -0.89453,1.44922 -0.0976,0.57031 -0.14453,1.05078 -0.14453,1.44922 z m -16.78906,-25.76953 c 0,-1.03906 0.0742,-2.17968 0.22265,-3.41797 0.14844,-1.23828 0.64454,-2.35156 1.48829,-3.34375 0.64062,-0.74218 1.51953,-1.35937 2.63671,-1.85546 1.11329,-0.4961 2.3125,-0.74219 3.60157,-0.74219 h 23.6914 c 2.91797,0 5.78125,0.51953 8.57813,1.55859 2.79687,1.03906 5.11328,2.62891 6.94531,4.75391 1.83203,2.13281 3.07031,4.76562 3.71094,7.91015 0.64453,3.14454 0.96875,6.96875 0.96875,11.47657 0,5.09765 -0.33203,9.20703 -1.00391,12.32812 -0.66797,3.12109 -1.67187,5.59766 -3.00781,7.42578 -1.28906,1.78125 -3.19141,3.32031 -5.71875,4.60547 -2.52734,1.28516 -5.59766,1.92969 -9.21094,1.92969 h -24.35937 c -0.79297,0 -1.76953,-0.0977 -2.9336,-0.29688 -1.16406,-0.19531 -2.24218,-0.74218 -3.23047,-1.63281 -0.69531,-0.64062 -1.26171,-1.46094 -1.70703,-2.45312 -0.44922,-0.98829 -0.67187,-2.10157 -0.67187,-3.33985 z m 0,0"
id="path867"
inkscape:connector-curvature="0" />
<path
style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 349.93359,133.23828 c 0.22657,1.60938 0.75782,3.05859 1.60157,4.34375 0.54296,0.84375 1.14843,1.52344 1.8164,2.04688 0.67188,0.51562 1.38672,0.90234 2.15235,1.14843 0.77343,0.25 1.61328,0.40625 2.52734,0.48438 0.91797,0.0742 1.89453,0.10937 2.93359,0.10937 1.08985,0 2.08985,-0.0352 3.00782,-0.10937 0.91406,-0.0781 1.74609,-0.23438 2.48828,-0.48438 0.74218,-0.24609 1.4375,-0.63281 2.07812,-1.14843 0.64453,-0.52344 1.26563,-1.20313 1.85938,-2.04688 0.9375,-1.38672 1.5,-2.85937 1.67187,-4.41797 0.17188,-1.55859 0.25781,-3.3789 0.25781,-5.45703 0,-1.14062 -0.0117,-2.15625 -0.0351,-3.04687 -0.0274,-0.89063 -0.0859,-1.72266 -0.1875,-2.48438 -0.10156,-0.76953 -0.28516,-1.5 -0.5586,-2.19531 -0.26953,-0.69141 -0.65625,-1.41016 -1.14843,-2.15234 -1.14063,-1.6836 -2.44922,-2.73438 -3.9375,-3.15625 -1.48438,-0.42188 -3.32032,-0.63282 -5.4961,-0.63282 -1.08984,0 -2.07812,0.0391 -2.96875,0.11328 -0.89453,0.0742 -1.73437,0.2461 -2.52734,0.51954 -0.79297,0.26953 -1.51172,0.65625 -2.15234,1.14843 -0.64454,0.4961 -1.23829,1.16797 -1.78125,2.00782 -0.94532,1.38671 -1.5,2.83593 -1.67188,4.34765 -0.17187,1.50781 -0.26172,3.35156 -0.26172,5.53125 0,2.07813 0.11328,3.92578 0.33203,5.53125 m 17.1211,-32.00781 c 2.07812,0.0703 4.12109,0.28125 6.1289,0.62891 2.00391,0.34765 3.91016,0.8789 5.71875,1.59765 1.80469,0.71875 3.40235,1.71875 4.78907,3.00781 1.38671,1.28907 2.47656,2.79688 3.26953,4.53125 0.78906,1.73438 1.38281,3.53907 1.78125,5.42188 0.39453,1.88281 0.63281,3.80078 0.70703,5.75781 0.0742,1.95313 0.10937,3.79688 0.10937,5.53125 0,1.73438 -0.0351,3.5625 -0.10937,5.49219 -0.0742,1.93359 -0.3125,3.83984 -0.70703,5.72265 -0.39844,1.87891 -0.99219,3.6875 -1.78125,5.41797 -0.79297,1.73438 -1.88282,3.26953 -3.26953,4.60547 -1.38672,1.28906 -2.98438,2.29297 -4.78907,3.01172 -1.80859,0.71484 -3.71484,1.25 -5.71875,1.59375 -2.00781,0.34766 -4.0625,0.55859 -6.16797,0.63281 -2.10156,0.0742 -4.11718,0.11328 -6.05078,0.11328 -1.92968,0 -3.94922,-0.0391 -6.05078,-0.11328 -2.10937,-0.0742 -4.16015,-0.28515 -6.16406,-0.63281 -2.00391,-0.34375 -3.91406,-0.87891 -5.71875,-1.59375 -1.80859,-0.71875 -3.40625,-1.72266 -4.79297,-3.01172 -1.4375,-1.33594 -2.53906,-2.87109 -3.30469,-4.60547 -0.76953,-1.73047 -1.35156,-3.53906 -1.74609,-5.41797 -0.39844,-1.88281 -0.62891,-3.78906 -0.70313,-5.72265 -0.0742,-1.92969 -0.11328,-3.75781 -0.11328,-5.49219 0,-1.73437 0.0391,-3.57812 0.11328,-5.53125 0.0742,-1.95703 0.30469,-3.875 0.70313,-5.75781 0.39453,-1.88281 0.97656,-3.6875 1.74609,-5.42188 0.76563,-1.73437 1.86719,-3.24218 3.30469,-4.53125 1.38672,-1.28906 2.98438,-2.28906 4.79297,-3.00781 1.80469,-0.71875 3.71484,-1.25 5.71875,-1.59765 2.00391,-0.34766 4.04687,-0.5586 6.125,-0.62891 2.08203,-0.0781 4.10937,-0.11328 6.08984,-0.11328 1.98438,0 4.01172,0.0352 6.08985,0.11328"
id="path869"
inkscape:connector-curvature="0" />
<path
style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 204.70312,138.17969 v -0.29688 h 2.22657 c 2.03125,0 3.90234,-0.49609 5.60937,-1.48828 1.70703,-0.98828 3.0586,-2.64844 4.04688,-4.97656 0.44531,-1.03906 0.78906,-2.17578 1.03906,-3.41406 0.24609,-1.23828 0.44922,-2.45313 0.59375,-3.64063 0.14844,-1.1875 0.23437,-2.28906 0.26172,-3.30469 0.0234,-1.01562 0.0391,-1.82031 0.0391,-2.41406 0,-1.98047 -0.16016,-4.03515 -0.48437,-6.16406 -0.32422,-2.12891 -1.05079,-4.03516 -2.19141,-5.71875 -0.84375,-1.23828 -1.80859,-2.20313 -2.89453,-2.89844 -1.09375,-0.6914 -2.20703,-1.19922 -3.34375,-1.51953 -1.13672,-0.32031 -2.25391,-0.50781 -3.34375,-0.55859 -1.08985,-0.0469 -2.03125,-0.0742 -2.82031,-0.0742 h -28.29688 c -0.99219,0 -2.15625,0.14844 -3.48828,0.44531 -1.33984,0.29688 -2.50391,0.99219 -3.49609,2.08203 -0.94141,1.03906 -1.50782,2.23828 -1.70704,3.60156 -0.19921,1.35938 -0.29687,2.63672 -0.29687,3.82422 v 4.90625 h 0.80469 c 4.54687,0 8.24218,3.69922 8.24218,8.24219 v 5.78516 c 0,4.54687 -3.69531,8.24218 -8.24218,8.24218 h -0.80469 v 14.85938 h 16.78516 v -34.98047 c 0,-0.64453 0.0234,-1.22266 0.0742,-1.74609 0.0508,-0.51953 0.34766,-1.02344 0.89063,-1.52344 0.39844,-0.39453 0.80469,-0.62891 1.22656,-0.70313 0.42188,-0.0742 0.88281,-0.11328 1.375,-0.11328 h 9.28125 c 0.79297,0 1.60938,0.0391 2.45313,0.11328 0.83984,0.0742 1.58593,0.45704 2.22656,1.15235 0.19922,0.19531 0.45703,0.61719 0.78125,1.26172 0.32422,0.64453 0.48437,1.68359 0.48437,3.11718 0,0.69532 -0.0898,1.44922 -0.26171,2.26563 -0.17579,0.81641 -0.45704,1.5 -0.85547,2.04297 -0.59375,0.69531 -1.33594,1.1289 -2.22657,1.30078 -0.89062,0.17187 -1.71093,0.26172 -2.44921,0.26172 h -2.67579 c -2.17968,0 -3.97265,0.54297 -5.38281,1.63281 -1.41406,1.08594 -2.11719,2.5 -2.11719,4.23437 v 1.11329 c 0,1.28515 0.38282,2.5 1.14844,3.63671 0.76953,1.14063 1.57422,2.27735 2.41406,3.41797 l 10.02735,13.51563 h 20.20312 z m 0,0"
id="path871"
inkscape:connector-curvature="0" />
<path
style="fill:#ff5722;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 171.98828,130.59766 c 0,2.77734 -2.25,5.02734 -5.02734,5.02734 h -8.85938 c -2.77344,0 -5.02344,-2.25 -5.02344,-5.02734 v -5.78516 c 0,-2.77734 2.25,-5.02344 5.02344,-5.02344 h 8.85938 c 2.77734,0 5.02734,2.2461 5.02734,5.02344 z m 0,0"
id="path873"
inkscape:connector-curvature="0" />
<path
style="fill:#ff5722;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 402.46094,101.71094 h 16.78515 v 51.98828 h -16.78515 z m 0,0"
id="path875"
inkscape:connector-curvature="0" />
<path
style="fill:#ff5722;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 443.45703,136.83984 c 0,0.54688 0.0234,1.08985 0.0742,1.63672 0.0508,0.54297 0.27344,1.01563 0.66797,1.41016 0.44531,0.44531 0.98828,0.70312 1.63672,0.77734 0.64062,0.0781 1.01172,0.11328 1.11328,0.11328 h 2.3008 c 1.88281,0 3.71484,-0.17187 5.49609,-0.51953 1.78125,-0.34765 3.19141,-1.16406 4.23047,-2.45312 0.20313,-0.19532 0.42188,-0.51953 0.67188,-0.96485 0.24609,-0.44531 0.49609,-1.0625 0.74609,-1.85547 0.24609,-0.79296 0.45703,-1.82031 0.62891,-3.08203 0.17187,-1.26172 0.25781,-2.8125 0.25781,-4.64453 0,-2.86718 -0.33594,-5.17187 -1.00391,-6.90625 -0.66406,-1.73047 -1.49609,-3.04297 -2.48828,-3.9375 -1.13672,-0.98828 -2.48828,-1.60547 -4.04687,-1.85547 -1.5586,-0.24609 -3.35157,-0.37109 -5.38282,-0.37109 h -1.26171 c -0.44922,0 -0.89454,0.0391 -1.33985,0.11328 -0.44531,0.0742 -0.86328,0.23438 -1.26172,0.48047 -0.49218,0.39844 -0.79297,0.88281 -0.89062,1.44922 -0.0977,0.57031 -0.14844,1.05078 -0.14844,1.44922 z m -16.78125,-25.76953 c 0,-1.04297 0.0664,-2.17968 0.21875,-3.41797 0.14844,-1.23828 0.64063,-2.35156 1.48828,-3.34375 0.64063,-0.74218 1.51953,-1.35937 2.63281,-1.85546 1.11719,-0.4961 2.3125,-0.74219 3.60157,-0.74219 h 23.69531 c 2.91797,0 5.77734,0.51953 8.57812,1.55859 2.79688,1.03906 5.11329,2.625 6.94532,4.75391 1.82812,2.1289 3.0664,4.76562 3.71093,7.91015 0.64454,3.14454 0.96875,6.96875 0.96875,11.47657 0,5.09765 -0.33593,9.20703 -1.0039,12.32812 -0.66797,3.12109 -1.66797,5.59375 -3.00781,7.42578 -1.28907,1.78516 -3.19532,3.32031 -5.71875,4.60547 -2.52735,1.28906 -5.59766,1.92969 -9.21094,1.92969 h -24.36328 c -0.78907,0 -1.76953,-0.0977 -2.9336,-0.29688 -1.16406,-0.19531 -2.23828,-0.74218 -3.22656,-1.63281 -0.69922,-0.64453 -1.26562,-1.46094 -1.71094,-2.44922 -0.44531,-0.99219 -0.66406,-2.10547 -0.66406,-3.34375 z m 0,0"
id="path877"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,3 +1,25 @@
<style scoped>
.reset-button {
margin: 0;
}
</style>
<style >
.md-dialog-container {
min-width: 340px !important;
padding: 8px;
}
.md-dialog-title {
padding: 24px 14px 0 !important;
}
.md-subheader {
font-size: 16px !important;
font-weight: 500;
}
.md-list-item-container .md-input {
font-size: 14px !important;
}
</style>
<template>
<div>
<md-dialog :md-active="value">
@ -145,9 +167,7 @@ export default {
this.refreshInterval = localStorage.refreshInterval ?? 5;
},
onConfirmReset() {
axios
.post(`${BASE_URL}/reset`)
.then(() => this.fetchSettingsData());
axios.post(`${BASE_URL}/reset`).then(() => this.fetchSettingsData());
},
},
created() {
@ -157,9 +177,3 @@ export default {
},
};
</script>
<style>
.reset-button {
margin: 0;
}
</style>

View File

@ -1,3 +1,43 @@
<style>
.spinner-label {
width: 1.5em;
display: inline-block;
text-align: center;
}
.custom-input {
margin: 0;
padding-top: 0;
line-height: 32px;
font-weight: 400;
text-align: center;
max-width: 68px;
border: 0;
font-family: Quicksand, Noto Sans, -apple-system, BlinkMacSystemFont,
sans-serif;
font-size: 14px;
}
.custom-layout {
max-width: 235px;
margin: 0 auto;
}
.text-center {
text-align: center;
}
</style>
<style scoped>
.md-icon-button {
width: 32px;
min-width: 24px;
height: 32px;
margin: 0 10px;
}
.md-icon {
font-size: 18px !important;
}
</style>
<template>
<div class="md-layout text-center spinner-layout custom-layout">
<div class="md-layout-item text-center">
@ -7,7 +47,12 @@
</div>
<div class="md-layout-item md-size-30">
<input :value="value" @change="inputChange" class="custom-input" @keypress="isNumber" />
<input
:value="value"
@change="inputChange"
class="custom-input"
@keypress="isNumber"
/>
<!-- <label class="md-display-1 spinner-label">{{ this.value }}</label> -->
</div>
<div class="md-layout-item">
@ -42,40 +87,13 @@ export default {
}
},
inputChange(event) {
this.$emit("input", Number(event.target.value));
this.$emit("input", Number(event.target.value));
//this.$emit("input-change", Number(event.target.value));
},
},
created() {
this.count = 0;
}
},
};
</script>
<style>
.spinner-label {
width: 1.5em;
display: inline-block;
text-align: center;
}
.custom-input {
margin: 0;
padding-top: 0;
line-height: 42px;
text-align: center;
max-width: 73px;
border: 0;
font-family: Roboto, Noto Sans, -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 17px;
}
.custom-layout {
max-width: 235px;
margin: 0 auto;
}
.text-center {
text-align: center;
}
</style>

View File

@ -1,3 +1,34 @@
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
.md-field {
margin: 4px 0 12px;
}
.md-error {
color: rgb(233, 90, 90);
}
th:nth-child(2),
th:nth-child(3),
th:nth-child(4) {
text-align: center !important;
}
</style>
<style scoped>
.md-title {
font-size: 24px;
}
.md-icon {
font-size: 18px !important;
}
.md-icon-button {
width: 32px;
min-width: 24px;
height: 32px;
margin: 0 12px;
}
</style>
<template>
<div>
<md-table
@ -182,12 +213,11 @@ export default {
this.timer = setInterval(this.fetchTenantData, this.getRefreshInterval());
},
getRefreshInterval() {
const interval = localStorage.refreshInterval != null ? localStorage.refreshInterval * 1000 : 5000;
console.log(
`Update refresh interval ${
interval
}ms`
);
const interval =
localStorage.refreshInterval != null
? localStorage.refreshInterval * 1000
: 5000;
console.log(`Update refresh interval ${interval}ms`);
return interval;
},
throttledOccupancyUpdate: _.debounce(
@ -230,21 +260,3 @@ export default {
},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
.md-field {
margin: 4px 0 12px;
}
.md-error {
color: rgb(233, 90, 90);
}
th:nth-child(2),
th:nth-child(3),
th:nth-child(4) {
text-align: center !important;
}
</style>

View File

@ -1,13 +1,15 @@
<template>
<div>
<md-toolbar id="toolbar">
<md-button class="md-icon-button" @click="showSettings = true">
<md-icon>settings</md-icon>
</md-button>
<Settings v-model="showSettings" />
<img id="logo" src="../assets/logo.svg" />
<div class="md-toolbar-section-end" v-if="date">
<span class="md-body-2">Last update</span><span class="md-caption">{{date}}</span>
<span class="md-body-2">Last update:</span
><span class="md-caption">{{ date }}</span>
<md-button class="md-icon-button" @click="showSettings = true">
<md-icon>settings</md-icon>
</md-button>
<Settings v-model="showSettings" />
</div>
</md-toolbar>
</div>
@ -35,4 +37,12 @@ export default {
#toolbar {
margin-bottom: 24px;
}
#logo {
width: 160px;
max-width: 160px;
margin-left: 8px;
}
.md-caption {
margin-left: 8px;
}
</style>