Add advanced container stats tab with timeframes and I/O charts.
Release rolling / release (push) Has been cancelled
Release rolling / release (push) Has been cancelled
Expand server history samples with network/block rates and longer retention, and rebuild the details Stats tab with live KPIs, 1m–30m windows, auto-scale, pause, CSV export, and CPU/memory/net/disk charts.
This commit is contained in:
@@ -888,6 +888,20 @@ body {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
#container-details-view #stats-pane.tab-pane.show.active {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#container-details-view #stats-pane .detail-stats-shell {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#container-details-view .detail-fill-panel,
|
||||
#container-details-view #logs-pane > .detail-fill-panel,
|
||||
#container-details-view #terminal-pane > .detail-fill-panel {
|
||||
|
||||
+315
@@ -4611,3 +4611,318 @@
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── Advanced container stats tab ─── */
|
||||
.detail-stats-shell {
|
||||
gap: 10px !important;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#stats-pane.tab-pane.show.active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#stats-pane .detail-stats-shell {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.detail-stats-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
flex-shrink: 0;
|
||||
padding: 8px 10px;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.detail-stats-toolbar-left,
|
||||
.detail-stats-toolbar-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.detail-stats-live {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--accent-success);
|
||||
padding: 4px 8px;
|
||||
border-radius: 999px;
|
||||
background: rgba(74, 222, 128, 0.1);
|
||||
border: 1px solid rgba(74, 222, 128, 0.25);
|
||||
}
|
||||
|
||||
.detail-stats-live i {
|
||||
font-size: 0.45rem;
|
||||
animation: detail-stats-pulse 1.4s ease infinite;
|
||||
}
|
||||
|
||||
.detail-stats-live.is-paused {
|
||||
color: var(--accent-warning);
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
}
|
||||
|
||||
.detail-stats-live.is-paused i {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
@keyframes detail-stats-pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.35; }
|
||||
}
|
||||
|
||||
.detail-stats-timeframe {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
padding: 2px;
|
||||
border-radius: 9px;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.detail-stats-tf {
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 650;
|
||||
padding: 5px 10px;
|
||||
border-radius: 7px;
|
||||
cursor: pointer;
|
||||
transition: all 0.12s ease;
|
||||
}
|
||||
|
||||
.detail-stats-tf:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.detail-stats-tf.active {
|
||||
background: rgba(45, 212, 191, 0.16);
|
||||
color: var(--accent-primary);
|
||||
box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
|
||||
}
|
||||
|
||||
.detail-stats-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.detail-stats-check input {
|
||||
margin: 0;
|
||||
accent-color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.detail-stats-kpis {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.detail-stats-kpi {
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-color);
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.detail-stats-kpi-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.detail-stats-kpi-top i {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.detail-stats-kpi--cpu .detail-stats-kpi-top i { color: #34d399; }
|
||||
.detail-stats-kpi--mem .detail-stats-kpi-top i { color: #38bdf8; }
|
||||
.detail-stats-kpi--net .detail-stats-kpi-top i { color: #a78bfa; }
|
||||
.detail-stats-kpi--disk .detail-stats-kpi-top i { color: #f472b6; }
|
||||
|
||||
.detail-stats-kpi-value {
|
||||
font-size: 1.15rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--text-primary);
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.15;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.detail-stats-kpi-sub {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.25;
|
||||
min-height: 1.1em;
|
||||
}
|
||||
|
||||
.detail-stats-bar {
|
||||
height: 4px;
|
||||
border-radius: 99px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
overflow: hidden;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.detail-stats-bar i {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: 99px;
|
||||
transition: width 0.25s ease;
|
||||
}
|
||||
|
||||
.detail-stats-kpi--cpu .detail-stats-bar i {
|
||||
background: linear-gradient(90deg, #34d399, #2dd4bf);
|
||||
}
|
||||
|
||||
.detail-stats-kpi--mem .detail-stats-bar i {
|
||||
background: linear-gradient(90deg, #38bdf8, #818cf8);
|
||||
}
|
||||
|
||||
.detail-stats-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 14px;
|
||||
flex-shrink: 0;
|
||||
padding: 6px 10px;
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.detail-stats-sum-item {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.detail-stats-sum-item span {
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
font-weight: 650;
|
||||
font-size: 0.625rem;
|
||||
}
|
||||
|
||||
.detail-stats-sum-item strong {
|
||||
color: var(--text-primary);
|
||||
font-weight: 650;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.detail-stats-charts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.detail-stats-chart-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 200px;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.detail-stats-chart-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 8px 12px 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.detail-stats-chart-head h6 {
|
||||
margin: 0;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 650;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.detail-stats-chart-head h6 i {
|
||||
color: var(--accent-primary);
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.detail-stats-chart-unit {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 650;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.detail-stats-chart-wrap {
|
||||
flex: 1 1 auto;
|
||||
min-height: 160px;
|
||||
position: relative;
|
||||
padding: 4px 8px 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.detail-stats-kpis {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.detail-stats-charts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.detail-stats-kpis {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.detail-stats-toolbar-right .btn span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user