diff --git a/static/counter/0.gif b/static/counter/0.gif new file mode 100644 index 0000000..3512b00 Binary files /dev/null and b/static/counter/0.gif differ diff --git a/static/counter/1.gif b/static/counter/1.gif new file mode 100644 index 0000000..b292edd Binary files /dev/null and b/static/counter/1.gif differ diff --git a/static/counter/2.gif b/static/counter/2.gif new file mode 100644 index 0000000..6d3a68a Binary files /dev/null and b/static/counter/2.gif differ diff --git a/static/counter/3.gif b/static/counter/3.gif new file mode 100644 index 0000000..1b91cb3 Binary files /dev/null and b/static/counter/3.gif differ diff --git a/static/counter/4.gif b/static/counter/4.gif new file mode 100644 index 0000000..7dec2c2 Binary files /dev/null and b/static/counter/4.gif differ diff --git a/static/counter/5.gif b/static/counter/5.gif new file mode 100644 index 0000000..e89449d Binary files /dev/null and b/static/counter/5.gif differ diff --git a/static/counter/6.gif b/static/counter/6.gif new file mode 100644 index 0000000..3869b82 Binary files /dev/null and b/static/counter/6.gif differ diff --git a/static/counter/7.gif b/static/counter/7.gif new file mode 100644 index 0000000..5b29513 Binary files /dev/null and b/static/counter/7.gif differ diff --git a/static/counter/8.gif b/static/counter/8.gif new file mode 100644 index 0000000..e75867a Binary files /dev/null and b/static/counter/8.gif differ diff --git a/static/counter/9.gif b/static/counter/9.gif new file mode 100644 index 0000000..1c59260 Binary files /dev/null and b/static/counter/9.gif differ diff --git a/static/style/style.css b/static/style/style.css new file mode 100644 index 0000000..1d7105e --- /dev/null +++ b/static/style/style.css @@ -0,0 +1,30 @@ +* { + background-color: black; + color: white; +} + + +.counter { + display: flex; +} + +.counter-image { + image-rendering: pixelated; + image-rendering: -moz-crisp-edges; + image-rendering: crisp-edges; + flex-grow: 200; +} + +.worker table{ + border: 1px solid white; + border-collapse: collapse; + border-spacing: 5px; +} + +.worker td{ + border: 1px solid white; +} + +.worker tr{ + border: 1px solid white; +} \ No newline at end of file diff --git a/tmpl/index.tmpl b/tmpl/index.tmpl new file mode 100644 index 0000000..6fe9aa2 --- /dev/null +++ b/tmpl/index.tmpl @@ -0,0 +1,83 @@ + + + + + + +

Morffix

+ +
+ {{range $c := .Counter}} + {{$c}} + {{end}} +
+ +
+ {{range $w := .Workers}} +
+

{{ $w.Name }}

+ + + + + + + + + + + + + + {{if $w.Connected}} + + + + + + + + + + + + + + + + + {{end}} +
+ Address + + {{ $w.Address }} +
+ Connected + + {{ $w.Connected }} +
+ ConnectionChanged + + {{ $w.ConnectionChanged }} +
+ CPUs + + {{ $w.Status.CPUCount }} +
+ CPU Usage + + {{ $w.Status.CPUUsage }}% +
+ Memory + + {{ $w.Status.MemoryTotal }} GB +
+ Memory Usage + + {{ $w.Status.MemoryUsage }}% +
+
+ {{end}} +
+ + \ No newline at end of file