Add SSE streaming for server refresh with live progress log modal
All checks were successful
Build-Publish / build (linux/amd64) (push) Successful in 4s
Build-Publish / build (linux/arm64) (push) Successful in 13s
Build-Publish / create-manifest (push) Successful in 2s
Build-Publish / publish-template (push) Successful in 15s

This commit is contained in:
j
2026-03-08 20:03:34 +13:00
parent be032e66d7
commit cb946b2259
3 changed files with 262 additions and 65 deletions

View File

@@ -512,6 +512,76 @@ main {
font-style: italic;
}
/* --- Log Modal --- */
.log-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(2px);
}
.log-modal-content {
background: #1e293b;
border: 1px solid #334155;
border-radius: 12px;
width: 500px;
max-width: 90vw;
max-height: 60vh;
display: flex;
flex-direction: column;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.log-modal-header {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 18px;
border-bottom: 1px solid #334155;
font-weight: 600;
font-size: 0.9rem;
color: #f1f5f9;
}
.log-modal-body {
padding: 12px 18px;
overflow-y: auto;
flex: 1;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 0.75rem;
line-height: 1.6;
}
.log-line {
color: #94a3b8;
}
.log-line.log-ok {
color: #22c55e;
}
.log-line.log-err {
color: #ef4444;
}
.spinner {
width: 14px;
height: 14px;
border: 2px solid #334155;
border-top-color: #3b82f6;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* --- Empty State --- */
.empty-state {