Features: - Modular parser architecture for vendor-specific formats - Inspur/Kaytus parser supporting asset.json, devicefrusdr.log, component.log, idl.log, and syslog files - PCI Vendor/Device ID lookup for hardware identification - Web interface with tabs: Events, Sensors, Config, Serials, Firmware - Server specification summary with component grouping - Export to CSV, JSON, TXT formats - BMC alarm parsing from IDL logs (memory errors, PSU events, etc.) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
406 lines
5.9 KiB
CSS
406 lines
5.9 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #f5f5f5;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
header {
|
|
background: #2c3e50;
|
|
color: white;
|
|
padding: 1rem 2rem;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
header p {
|
|
font-size: 0.875rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
main {
|
|
max-width: 1400px;
|
|
margin: 2rem auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
/* Upload section */
|
|
.upload-area {
|
|
border: 2px dashed #ccc;
|
|
border-radius: 8px;
|
|
padding: 3rem;
|
|
text-align: center;
|
|
background: white;
|
|
transition: border-color 0.3s, background 0.3s;
|
|
}
|
|
|
|
.upload-area.dragover {
|
|
border-color: #3498db;
|
|
background: #ebf5fb;
|
|
}
|
|
|
|
.upload-area button {
|
|
background: #3498db;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.upload-area button:hover {
|
|
background: #2980b9;
|
|
}
|
|
|
|
.upload-area .hint {
|
|
font-size: 0.8rem;
|
|
color: #888;
|
|
}
|
|
|
|
#upload-status {
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
#upload-status.error {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
#upload-status.success {
|
|
color: #27ae60;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
border-bottom: 2px solid #ddd;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tab {
|
|
padding: 0.75rem 1.5rem;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
color: #666;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.tab.active {
|
|
color: #3498db;
|
|
border-bottom-color: #3498db;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
background: white;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Toolbar */
|
|
.toolbar {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar select,
|
|
.toolbar button {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.toolbar select {
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.toolbar button {
|
|
background: #27ae60;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toolbar button:hover {
|
|
background: #219a52;
|
|
}
|
|
|
|
/* Tables */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
th {
|
|
background: #f8f9fa;
|
|
font-weight: 600;
|
|
}
|
|
|
|
tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
code {
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
font-size: 0.85em;
|
|
background: #f0f0f0;
|
|
padding: 0.1em 0.3em;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Severity badges */
|
|
.severity {
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.severity.critical {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.severity.warning {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
.severity.info {
|
|
background: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
/* Category badges */
|
|
.category-badge {
|
|
display: inline-block;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
background: #95a5a6;
|
|
color: white;
|
|
}
|
|
|
|
.category-badge.board {
|
|
background: #2c3e50;
|
|
}
|
|
|
|
.category-badge.cpu {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
.category-badge.memory {
|
|
background: #3498db;
|
|
}
|
|
|
|
.category-badge.storage {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.category-badge.pcie {
|
|
background: #e67e22;
|
|
}
|
|
|
|
.category-badge.network {
|
|
background: #1abc9c;
|
|
}
|
|
|
|
.category-badge.psu {
|
|
background: #f39c12;
|
|
}
|
|
|
|
.category-badge.fru {
|
|
background: #9b59b6;
|
|
}
|
|
|
|
/* Toolbar label */
|
|
.toolbar-label {
|
|
font-size: 0.875rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* Config sections */
|
|
.config-section {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.config-section h3 {
|
|
font-size: 1rem;
|
|
color: #2c3e50;
|
|
margin-bottom: 0.5rem;
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 0.25rem;
|
|
}
|
|
|
|
/* Specification section */
|
|
.spec-section {
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
border-left: 4px solid #3498db;
|
|
}
|
|
|
|
.spec-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.spec-list li {
|
|
padding: 0.4rem 0;
|
|
border-bottom: 1px dashed #e0e0e0;
|
|
}
|
|
|
|
.spec-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.spec-category {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
min-width: 180px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.spec-qty {
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.card {
|
|
background: #f8f9fa;
|
|
padding: 1rem;
|
|
border-radius: 4px;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Sensors */
|
|
.sensor-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.sensor-group h3 {
|
|
font-size: 1rem;
|
|
color: #2c3e50;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.sensor-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.sensor-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 4px;
|
|
background: #f8f9fa;
|
|
border-left: 3px solid #27ae60;
|
|
}
|
|
|
|
.sensor-card.ok {
|
|
border-left-color: #27ae60;
|
|
}
|
|
|
|
.sensor-card.warn {
|
|
border-left-color: #f39c12;
|
|
}
|
|
|
|
.sensor-card.ns {
|
|
border-left-color: #95a5a6;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.sensor-name {
|
|
font-size: 0.75rem;
|
|
color: #666;
|
|
}
|
|
|
|
.sensor-value {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
#clear-btn {
|
|
background: #e74c3c;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#clear-btn:hover {
|
|
background: #c0392b;
|
|
}
|
|
|
|
/* Utility */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.no-data {
|
|
text-align: center;
|
|
color: #888;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.sensor-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
table {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
th, td {
|
|
padding: 0.5rem;
|
|
}
|
|
}
|