mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-01-30 13:54:18 -05:00
This commit introduces a complete web-based dashboard for monitoring storage device performance metrics in real-time. Features: - Real-time monitoring with auto-refresh every 5 seconds - Comprehensive metrics collection (disk usage, I/O stats, IOPS, SMART data) - Interactive visualizations using Chart.js - Modern dark-themed responsive UI - Python Flask backend with REST API - System information and uptime tracking - Historical performance trend charts Tech Stack: - Backend: Python 3.8+, Flask, psutil, pySMART - Frontend: HTML5, CSS3, JavaScript ES6+, Chart.js - Cross-platform support with startup scripts for Linux/Windows The dashboard provides system administrators and monitoring enthusiasts with a powerful tool to track storage performance, identify bottlenecks, and monitor disk health. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
387 lines
6.9 KiB
CSS
387 lines
6.9 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #2563eb;
|
|
--secondary-color: #1e40af;
|
|
--success-color: #10b981;
|
|
--warning-color: #f59e0b;
|
|
--danger-color: #ef4444;
|
|
--bg-color: #0f172a;
|
|
--card-bg: #1e293b;
|
|
--text-color: #e2e8f0;
|
|
--text-muted: #94a3b8;
|
|
--border-color: #334155;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
header {
|
|
background: var(--card-bg);
|
|
padding: 25px;
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 28px;
|
|
background: linear-gradient(135deg, var(--primary-color), #06b6d4);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.header-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
#last-update {
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--secondary-color);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.section {
|
|
background: var(--card-bg);
|
|
padding: 25px;
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.section h2 {
|
|
font-size: 22px;
|
|
margin-bottom: 20px;
|
|
color: var(--text-color);
|
|
border-bottom: 2px solid var(--border-color);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.section h3 {
|
|
font-size: 16px;
|
|
margin-bottom: 15px;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.system-info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.info-card {
|
|
background: var(--bg-color);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.info-card .label {
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.info-card .value {
|
|
color: var(--text-color);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.partitions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.partition-card {
|
|
background: var(--bg-color);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.partition-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.partition-name {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.partition-type {
|
|
background: var(--border-color);
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.partition-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.partition-info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.partition-info-row .label {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.partition-info-row .value {
|
|
color: var(--text-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 24px;
|
|
background: var(--border-color);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--primary-color), #06b6d4);
|
|
transition: width 0.5s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.progress-fill.warning {
|
|
background: linear-gradient(90deg, var(--warning-color), #fbbf24);
|
|
}
|
|
|
|
.progress-fill.danger {
|
|
background: linear-gradient(90deg, var(--danger-color), #f87171);
|
|
}
|
|
|
|
.charts-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.chart-container {
|
|
background: var(--bg-color);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.chart-container canvas {
|
|
max-height: 300px;
|
|
}
|
|
|
|
.table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead {
|
|
background: var(--bg-color);
|
|
}
|
|
|
|
th {
|
|
padding: 12px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
border-bottom: 2px solid var(--border-color);
|
|
}
|
|
|
|
td {
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: var(--bg-color);
|
|
}
|
|
|
|
.smart-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.smart-card {
|
|
background: var(--bg-color);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.smart-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.smart-model {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.health-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.health-badge.good {
|
|
background: var(--success-color);
|
|
color: white;
|
|
}
|
|
|
|
.health-badge.warning {
|
|
background: var(--warning-color);
|
|
color: white;
|
|
}
|
|
|
|
.health-badge.bad {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
}
|
|
|
|
.smart-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.smart-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.smart-row .label {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.smart-row .value {
|
|
color: var(--text-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 30px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.info-message {
|
|
padding: 20px;
|
|
background: var(--bg-color);
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.error-message {
|
|
padding: 15px;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid var(--danger-color);
|
|
border-radius: 8px;
|
|
color: var(--danger-color);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.header-info {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.charts-grid,
|
|
.partitions-grid,
|
|
.smart-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|