From 85481da71c1b65f4eb4e28dfe824385ce0624475 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Fri, 29 Dec 2023 19:36:53 +0100 Subject: [PATCH] Showing the full arguments on the command column of the TASKS Section of the Web UI. #2634 --- glances/main.py | 4 -- glances/outputs/static/css/style.scss | 8 +-- glances/outputs/static/js/App.vue | 2 +- .../js/components/plugin-processlist.vue | 52 +++++++++---------- glances/outputs/static/public/glances.js | 4 +- glances/plugins/help/__init__.py | 29 +++++++---- 6 files changed, 53 insertions(+), 46 deletions(-) diff --git a/glances/main.py b/glances/main.py index 534bd4a54c..bcfb27a7fb 100644 --- a/glances/main.py +++ b/glances/main.py @@ -622,10 +622,6 @@ def init_client_server(self, args): if args.disable_autodiscover: logger.info("Auto discover mode is disabled") - # In web server mode - if args.webserver: - args.process_short_name = True - # Server or client login/password if args.username_prompt: # Every username needs a password diff --git a/glances/outputs/static/css/style.scss b/glances/outputs/static/css/style.scss index e7656b91a1..bd008f5855 100644 --- a/glances/outputs/static/css/style.scss +++ b/glances/outputs/static/css/style.scss @@ -19,11 +19,11 @@ body { display: table-cell; text-align: right; } -.width-50 { - width: 50px; +.width-60 { + width: 60px; } -.width-75 { - width: 75px; +.width-80 { + width: 80px; } .width-100 { width: 100px; diff --git a/glances/outputs/static/js/App.vue b/glances/outputs/static/js/App.vue index 58d74358c1..bf065c9122 100644 --- a/glances/outputs/static/js/App.vue +++ b/glances/outputs/static/js/App.vue @@ -339,7 +339,7 @@ export default { }); // SLASH => Enable/disable short processes name - hotkeys('/', () => { + hotkeys('shift+S', () => { this.store.args.process_short_name = !this.store.args.process_short_name; }); diff --git a/glances/outputs/static/js/components/plugin-processlist.vue b/glances/outputs/static/js/components/plugin-processlist.vue index ca9951bc23..842ad6f722 100644 --- a/glances/outputs/static/js/components/plugin-processlist.vue +++ b/glances/outputs/static/js/components/plugin-processlist.vue @@ -3,17 +3,17 @@
-
CPU%
-
MEM%
- - -
PID
+ + +
PID
USER @@ -23,19 +23,19 @@ @click="$emit('update:sorter', 'timemillis')"> TIME+
- -
NI
-
S
- +
S
+ -
-
+
{{ process.cpu_percent == -1 ? '?' : $filters.number(process.cpu_percent, 1) }}
-
+
{{ process.memory_percent == -1 ? '?' : $filters.number(process.memory_percent, 1) }}
-
+
{{ $filters.bytes(process.memvirt) }}
-
+
{{ $filters.bytes(process.memres) }}
-
+
{{ process.pid }}
@@ -71,20 +71,20 @@ .{{ $filters.leftPad(process.timeplus.milliseconds, 2, '0') }}
- -