From 609fea008b0091715bcdba1239b8126069c3473e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 01:26:12 +0200 Subject: put things into proper directories --- html/index.html | 344 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 344 insertions(+) create mode 100644 html/index.html (limited to 'html/index.html') diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..5a4f56f --- /dev/null +++ b/html/index.html @@ -0,0 +1,344 @@ + + + + + + - + + + +
+
+
+

-

+

refreshed every - seconds

+
+
+ +
+
+
+
+
+

top refreshed every - seconds

+
+

+          
+
+

docker ps -a

+
+
No data has been loaded yet.
+
+
+

systemctl --system list-units --failed

+
+

+          
+
+

systemctl --system status

+
+

+          
+
+

systemctl --system list-timers --all

+
+

+          
+
+

journalctl --system -b --lines=20

+
+

+          
+
+
+
+
+
+
+ + + + + -- cgit v1.2.3 From ee66f91e68bbe489146f087d3bb12c124ce2b1c2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 01:44:19 +0200 Subject: index.html: display placeholders if no data --- html/index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'html/index.html') diff --git a/html/index.html b/html/index.html index 5a4f56f..a116867 100644 --- a/html/index.html +++ b/html/index.html @@ -25,32 +25,34 @@

top refreshed every - seconds

-

+            
Data not loaded.

docker ps -a

-
No data has been loaded yet.
+
+
Data not loaded.
+

systemctl --system list-units --failed

-

+            
Data not loaded.

systemctl --system status

-

+            
Data not loaded.

systemctl --system list-timers --all

-

+            
Data not loaded.

journalctl --system -b --lines=20

-

+            
Data not loaded.

@@ -258,7 +260,8 @@ function create_user_block(name, lbl, cmd) { .append($('', a_params) .append($('').text(cmd)))) .append($('
', {'class': 'collapse', id: collapse_id}) - .append($('
', {'class': 'pre-scrollable', id: pre_id})))
+            .append($('
', {'class': 'pre-scrollable', id: pre_id})
+                .text('Data not loaded.')))
         .append($('
')); } -- cgit v1.2.3 From 0973338dbd24ff914ad8e5694b61f0c6c706c1d9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 02:55:56 +0200 Subject: index.html: use flexbox for header Drop the weird workaround. Also, make the power buttons stack vertically on my phone. --- html/index.html | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'html/index.html') diff --git a/html/index.html b/html/index.html index a116867..659b3b4 100644 --- a/html/index.html +++ b/html/index.html @@ -10,13 +10,15 @@
-

-

-

refreshed every - seconds

-
-
-
- Reboot - Shutdown +
+
+

-

+

refreshed every - seconds

+
+
@@ -342,6 +344,18 @@ function main() { $(function() { main(); }); + +function on_resize(width) { + if (width < 576) { // xs, in Bootstrap's terms + $('#power_buttons').attr('class', 'btn-group-vertical'); + } else { + $('#power_buttons').attr('class', 'btn-group'); + } +} + +$(window).bind('resize', function() { + on_resize($(this).width()); +}).trigger('resize'); -- cgit v1.2.3 From b2f70aa8bbdafb3768a11bbca85a60f7100a3aeb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 03:15:11 +0200 Subject: index.html: add a footer --- html/index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'html/index.html') diff --git a/html/index.html b/html/index.html index 659b3b4..99a09be 100644 --- a/html/index.html +++ b/html/index.html @@ -6,8 +6,8 @@ - - -
+ +
@@ -62,6 +62,11 @@
+