Electron CI Build + Version Info Modal
CI Pipeline: - New electron-build stage (electronuserland/builder:wine) builds Windows installer - New electron-deploy stage copies artifacts to container /data/downloads/ - Triggers on electron/ or VERSION changes + manual trigger - bump-version now syncs electron/package.json via jq Version Modal: - Click version badge to open info modal - Shows Hub Version, Desktop App Version, Server status - Hint when versions differ (update available) - Download link when not using Electron app - Escape + overlay click to close Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
76a2487d70
commit
0ef2a2899a
3 changed files with 242 additions and 3 deletions
|
|
@ -336,6 +336,113 @@ html, body {
|
|||
max-width: 300px;
|
||||
}
|
||||
|
||||
/* ── Version Info Modal ── */
|
||||
.hub-version-clickable {
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
padding: 2px 8px;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.hub-version-clickable:hover {
|
||||
color: var(--accent);
|
||||
background: rgba(230, 126, 34, 0.1);
|
||||
}
|
||||
.hub-version-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
.hub-version-modal {
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
width: 340px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
|
||||
overflow: hidden;
|
||||
animation: hub-modal-in 200ms ease;
|
||||
}
|
||||
@keyframes hub-modal-in {
|
||||
from { opacity: 0; transform: scale(0.95) translateY(8px); }
|
||||
to { opacity: 1; transform: scale(1) translateY(0); }
|
||||
}
|
||||
.hub-version-modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
}
|
||||
.hub-version-modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.hub-version-modal-close:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
.hub-version-modal-body {
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.hub-version-modal-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.hub-version-modal-label {
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.hub-version-modal-value {
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.hub-version-modal-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--danger);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.hub-version-modal-dot.online {
|
||||
background: var(--success);
|
||||
}
|
||||
.hub-version-modal-link {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
}
|
||||
.hub-version-modal-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.hub-version-modal-hint {
|
||||
font-size: 11px;
|
||||
color: var(--accent);
|
||||
padding: 6px 10px;
|
||||
background: rgba(230, 126, 34, 0.1);
|
||||
border-radius: var(--radius);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ── Main Content Area ── */
|
||||
.hub-content {
|
||||
flex: 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue