refactor: replace Jinja templates with static frontend pages

This commit is contained in:
2026-06-16 03:35:41 +00:00
parent 2874680ffa
commit 593dece92b
39 changed files with 3532 additions and 2801 deletions
+229 -1
View File
@@ -301,10 +301,40 @@ body {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
animation: toastSlideIn 0.3s ease forwards;
display: flex;
align-items: center;
align-items: flex-start;
justify-content: space-between;
gap: 0.6rem;
word-break: break-word;
}
.toast-message .toast-text {
flex: 1;
min-width: 0;
white-space: pre-wrap;
}
.toast-message .toast-actions {
display: flex;
gap: 2px;
flex-shrink: 0;
align-items: center;
height: 1.4em;
}
.toast-message .toast-btn {
background: none;
border: none;
cursor: pointer;
color: inherit;
font-size: 14px;
padding: 0 2px;
line-height: 1;
opacity: 0.6;
transition: opacity 0.15s;
}
.toast-message .toast-btn:hover { opacity: 1; }
.toast-message.toast-success {
background: var(--success);
color: #fff;
@@ -464,6 +494,204 @@ body {
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
/* Page header */
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.page-header h1 {
font-size: 22px;
font-weight: 600;
}
.page-header .subtitle {
color: var(--text-muted);
font-size: 13px;
}
/* Stat cards */
.stat-card {
background: var(--bg-card);
border-radius: 8px;
padding: 1rem 1.25rem;
}
.stat-card .label {
font-size: 12px;
color: var(--text-muted);
margin-bottom: 4px;
}
.stat-card .value {
font-size: 28px;
font-weight: 700;
}
.stat-card .meta {
font-size: 12px;
color: var(--text-muted);
margin-top: 4px;
}
/* Status dot */
.status-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 6px;
}
.status-up { background: var(--success); }
.status-down { background: var(--danger); }
.status-pending { background: var(--warning); }
/* Badge info */
.badge-info {
background: rgba(0, 180, 216, 0.15);
color: var(--accent);
}
/* Modal actions */
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 1rem;
}
/* Section title */
.section-title {
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 1rem;
margin-top: 1.5rem;
}
.section-title:first-child { margin-top: 0; }
/* Card grid */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 1.25rem;
margin-bottom: 1.5rem;
}
.card .card-grid {
padding: 1.25rem;
}
/* Service list */
.service-list {
list-style: none;
padding: 0;
margin: 0;
}
.service-list li {
padding: 6px 0;
display: flex;
align-items: center;
gap: 8px;
}
.service-list .svc-name {
flex: 1;
}
/* Tabs */
.tabs {
display: flex;
gap: 0;
border-bottom: 1px solid var(--border);
margin-bottom: 1rem;
}
.tab {
padding: 0.75rem 1.25rem;
cursor: pointer;
color: var(--text-muted);
font-size: 14px;
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.tab:hover {
color: var(--text);
}
.tab.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Logs area */
.logs-area {
max-height: 60vh;
overflow-y: auto;
font-family: monospace;
font-size: 12px;
line-height: 1.5;
padding: 1rem;
background: #0d0d1a;
border-radius: 6px;
border: 1px solid var(--border);
}
.log-line {
padding: 2px 0;
border-bottom: 1px solid rgba(255,255,255,0.04);
}
.log-line.error { color: var(--danger); }
.log-line.warn { color: var(--warning); }
.log-line.info { color: var(--text); }
/* Auto-refresh indicator */
.refresh-active::before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--success);
margin-right: 6px;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
/* Loading / error */
.loading {
color: var(--text-muted);
padding: 2rem;
text-align: center;
}
.error-msg {
color: var(--danger);
padding: 2rem;
text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
.sidebar {