Skip to content

Commit

Permalink
Merge branch 'issue3024' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Nov 20, 2024
2 parents fb25a6f + 21d17c2 commit 9e945f1
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 57 deletions.
2 changes: 1 addition & 1 deletion conf/glances.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ history_size=1200
# Set the the Curses and WebUI interface left menu plugin list (comma-separated)
#left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
# Limit the number of processes to display (in the WebUI)
max_processes_display=25
#max_processes_display=25
# Options for WebUI
#------------------
# Set URL prefix for the WebUI and the API
Expand Down
42 changes: 24 additions & 18 deletions glances/outputs/static/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ body {
color: $glances-fg;
font-family: $glances-fonts;
font-size: $glances-fonts-size;
overflow: hidden;
}

.title {
Expand Down Expand Up @@ -77,6 +78,26 @@ body {
font-weight: bold !important;
}

// Layout

.header {
height: 30px;
}

.top {
height: 140px;
}

.left-sidebar {
overflow-y: auto;
height: calc(100vh - 30px - 140px);
}

.right-sidebar {
overflow-y: auto;
height: calc(100vh - 30px - 140px);
}

// Table

.table {
Expand Down Expand Up @@ -119,23 +140,6 @@ body {
background: $glances-link-hover-color;
}

// Separator

.separator {
overflow: hidden;
height: 5px;
}

.separator:after {
content: '';
display: block;
margin: -25px auto 0;
width: 100%;
height: 24px;
border-radius: 125px / 12px;
box-shadow: 0 0 8px #555555;
}

// Plugins

.plugin {
Expand Down Expand Up @@ -270,6 +274,8 @@ body {
}

#processlist {
overflow-y: auto;
height: 600px;
* > td:nth-child(-n+12) {
width: 5em;
}
Expand All @@ -280,7 +286,7 @@ body {
width: 7em;
}
* > td:nth-child(7) {
width: 6em;
width: 7em;
}
* > td:nth-child(9),td:nth-child(10) {
width: 2em;
Expand Down
14 changes: 6 additions & 8 deletions glances/outputs/static/js/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<glances-help v-else-if="args.help_tag"></glances-help>
<main v-else>
<div class="container-fluid margin-bottom">
<div class="container-fluidheader">
<div class="row justify-content-between">
<div class="col-auto" v-if="!args.disable_system">
<glances-plugin-system :data="data"></glances-plugin-system>
Expand All @@ -25,8 +25,7 @@
</div>
</div>
</div>
<div class="row separator" v-if="args.enable_separator"></div>
<div class="container-fluid margin-top margin-bottom">
<div class="container-fluid top">
<div class="row justify-content-between">
<!-- Quicklook -->
<div class="col-3 d-none d-lg-block d-xl-block d-xxl-block" v-if="!args.disable_quicklook">
Expand Down Expand Up @@ -64,17 +63,16 @@
</div>
</div>
</div>
<div class="row separator" v-if="args.enable_separator"></div>
<div class="container-fluid margin-top">
<div class="container-fluid">
<div class="row">
<div class="col-3 sidebar" v-if="!args.disable_left_sidebar">
<div class="col-3 left-sidebar" v-if="!args.disable_left_sidebar">
<template v-for="plugin in leftMenu">
<component v-if="!args[`disable_${plugin}`]" :is="`glances-plugin-${plugin}`"
:id="`plugin-${plugin}`" class="plugin" :data="data">
:id="`plugin-${plugin}`" :data="data">
</component>
</template>
</div>
<div class="col">
<div class="col right-sidebar">
<glances-plugin-vms v-if="!args.disable_vms" :data="data"></glances-plugin-vms>
<glances-plugin-containers v-if="!args.disable_containers" :data="data"></glances-plugin-containers>
<glances-plugin-process :data="data"></glances-plugin-process>
Expand Down
34 changes: 9 additions & 25 deletions glances/outputs/static/js/components/plugin-quicklook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@
<tr v-if="!args.percpu">
<td scope="col">CPU</td>
<td scope="col" class="progress">
<div
:class="`progress-bar progress-bar-${getDecoration('cpu')}`"
role="progressbar"
:aria-valuenow="cpu"
aria-valuemin="0"
aria-valuemax="100"
:style="`width: ${cpu}%;`"
>
<div :class="`progress-bar progress-bar-${getDecoration('cpu')}`" role="progressbar"
:aria-valuenow="cpu" aria-valuemin="0" aria-valuemax="100" :style="`width: ${cpu}%;`">
&nbsp;
</div>
</td>
Expand All @@ -29,30 +23,20 @@
<tr v-if="args.percpu" v-for="(percpu, percpuId) in percpus" :key="percpuId">
<td scope="col">CPU{{ percpu.number }}</td>
<td scope="col" class="progress">
<div
:class="`progress-bar progress-bar-${getDecoration('cpu')}`"
role="progressbar"
:aria-valuenow="percpu.total"
aria-valuemin="0"
aria-valuemax="100"
:style="`width: ${percpu.total}%;`"
>
<div :class="`progress-bar progress-bar-${getDecoration('cpu')}`" role="progressbar"
:aria-valuenow="percpu.total" aria-valuemin="0" aria-valuemax="100"
:style="`width: ${percpu.total}%;`">
&nbsp;
</div>
</td>
<td scope="col" class="text-end">{{ percpu.total }}%</td>
</tr>
<tr v-for="(key) in stats_list_after_cpu">
<tr v-if="!args.percpu" v-for="(key) in stats_list_after_cpu">
<td scope="col">{{ key.toUpperCase() }}</td>
<td scope="col" class="progress">
<div
:class="`progress-bar progress-bar-${getDecoration(key)}`"
role="progressbar"
:aria-valuenow="stats[key]"
aria-valuemin="0"
aria-valuemax="100"
:style="`width: ${stats[key]}%;`"
>
<div :class="`progress-bar progress-bar-${getDecoration(key)}`" role="progressbar"
:aria-valuenow="stats[key]" aria-valuemin="0" aria-valuemax="100"
:style="`width: ${stats[key]}%;`">
&nbsp;
</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion glances/outputs/static/public/browser.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions glances/outputs/static/public/glances.js

Large diffs are not rendered by default.

0 comments on commit 9e945f1

Please sign in to comment.