feat: firmware upload on the cluster view
This commit is contained in:
@@ -401,6 +401,52 @@ p {
|
||||
}
|
||||
}
|
||||
|
||||
/* Deploy Button */
|
||||
.deploy-btn {
|
||||
background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
|
||||
border: 1px solid rgba(74, 222, 128, 0.3);
|
||||
color: var(--accent-primary);
|
||||
padding: 0.75rem 1.25rem;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.deploy-btn:hover {
|
||||
background: linear-gradient(135deg, rgba(74, 222, 128, 0.3) 0%, rgba(74, 222, 128, 0.15) 100%);
|
||||
border-color: rgba(74, 222, 128, 0.4);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2);
|
||||
}
|
||||
|
||||
.deploy-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.deploy-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.deploy-btn.loading {
|
||||
opacity: 0.8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Cluster Header Right */
|
||||
.cluster-header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.members-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
@@ -3588,9 +3634,609 @@ select.param-input:focus {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* Firmware Upload Drawer Styles */
|
||||
.firmware-upload-drawer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.firmware-upload-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.firmware-upload-header h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.firmware-upload-controls {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-secondary);
|
||||
}
|
||||
|
||||
.file-input-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.file-input-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.upload-btn-compact {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||
border: 1px solid var(--border-secondary);
|
||||
color: var(--text-secondary);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.upload-btn-compact:hover {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
/* Compact Deploy Button */
|
||||
.deploy-btn-compact {
|
||||
background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
|
||||
border: 1px solid rgba(74, 222, 128, 0.3);
|
||||
color: var(--accent-primary);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.deploy-btn-compact:hover {
|
||||
background: linear-gradient(135deg, rgba(74, 222, 128, 0.3) 0%, rgba(74, 222, 128, 0.15) 100%);
|
||||
border-color: rgba(74, 222, 128, 0.4);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.2);
|
||||
}
|
||||
|
||||
.deploy-btn-compact:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.deploy-btn-compact:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.deploy-btn-compact.loading {
|
||||
opacity: 0.8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.file-info {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-tertiary);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.file-info.has-file {
|
||||
color: var(--text-secondary);
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.target-nodes-section {
|
||||
padding: 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-secondary);
|
||||
}
|
||||
|
||||
.target-nodes-section h3 {
|
||||
margin: 0 0 1.5rem 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.target-nodes-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.target-node-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 0.7rem;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-primary);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.target-node-item .node-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.target-node-item .node-info .node-name {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.target-node-item .node-info .node-ip {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-tertiary);
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.target-node-item .node-status {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 0.5rem;
|
||||
min-width: 140px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 8px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.status-indicator.ready {
|
||||
background: rgba(76, 175, 80, 0.2);
|
||||
color: var(--accent-success);
|
||||
border: 1px solid rgba(76, 175, 80, 0.3);
|
||||
}
|
||||
|
||||
.status-indicator.pending {
|
||||
background: rgba(255, 152, 0, 0.2);
|
||||
color: #ff9800;
|
||||
border: 1px solid rgba(255, 152, 0, 0.3);
|
||||
}
|
||||
|
||||
.status-indicator.uploading {
|
||||
background: rgba(33, 150, 243, 0.2);
|
||||
color: #2196f3;
|
||||
border: 1px solid rgba(33, 150, 243, 0.3);
|
||||
}
|
||||
|
||||
.status-indicator.success {
|
||||
background: rgba(76, 175, 80, 0.2);
|
||||
color: var(--accent-success);
|
||||
border: 1px solid rgba(76, 175, 80, 0.3);
|
||||
}
|
||||
|
||||
.status-indicator.error {
|
||||
background: rgba(244, 67, 54, 0.2);
|
||||
color: #f44336;
|
||||
border: 1px solid rgba(244, 67, 54, 0.3);
|
||||
}
|
||||
|
||||
/* Ultra-compact layout for upload progress */
|
||||
.upload-progress-info ~ .target-nodes-section .target-node-item {
|
||||
padding: 0.375rem 0.5rem;
|
||||
gap: 0.5rem;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 0.125rem;
|
||||
}
|
||||
|
||||
.upload-progress-info ~ .target-nodes-section .target-node-item .node-info {
|
||||
gap: 0.0625rem;
|
||||
}
|
||||
|
||||
.upload-progress-info ~ .target-nodes-section .target-node-item .node-info .node-name {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.0;
|
||||
}
|
||||
|
||||
.upload-progress-info ~ .target-nodes-section .target-node-item .node-info .node-ip {
|
||||
font-size: 0.7rem;
|
||||
line-height: 1.0;
|
||||
}
|
||||
|
||||
.upload-progress-info ~ .target-nodes-section .target-node-item .node-status {
|
||||
min-width: 70px;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.upload-progress-info ~ .target-nodes-section .status-indicator {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 0.65rem;
|
||||
min-width: 70px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.upload-progress-info ~ .target-nodes-section .target-nodes-list {
|
||||
gap: 0.125rem;
|
||||
}
|
||||
|
||||
.target-node-item .progress-time {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-tertiary);
|
||||
font-style: italic;
|
||||
line-height: 1.2;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* Responsive design for target nodes */
|
||||
@media (max-width: 768px) {
|
||||
.target-node-item {
|
||||
padding: 0.75rem 1rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.target-node-item .node-status {
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
padding: 0.4rem 0.6rem;
|
||||
font-size: 0.75rem;
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
.target-node-item .node-info .node-name {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.target-node-item .node-info .node-ip {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.target-node-item {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.target-node-item .node-status {
|
||||
align-items: flex-start;
|
||||
min-width: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
min-width: auto;
|
||||
width: fit-content;
|
||||
}
|
||||
}
|
||||
|
||||
/* Upload progress info styles */
|
||||
.upload-progress-info {
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-secondary);
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.upload-progress-info .overall-progress {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.upload-progress-info .progress-bar-container {
|
||||
flex: 1;
|
||||
height: 8px;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.upload-progress-info .progress-bar {
|
||||
height: 100%;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.upload-progress-info .progress-text {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
min-width: 120px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.upload-progress-info .progress-summary {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.target-node-item .node-ip {
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
#firmware-progress-container {
|
||||
flex: 1;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
/* Firmware Upload Progress Styles */
|
||||
.firmware-upload-progress {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.progress-header {
|
||||
padding: 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-secondary);
|
||||
}
|
||||
|
||||
.progress-header h3 {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.progress-info {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.overall-progress {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.progress-bar-container {
|
||||
flex: 1;
|
||||
height: 8px;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
transition: width 0.3s ease;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.progress-text {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.progress-summary {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.progress-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.75rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-secondary);
|
||||
}
|
||||
|
||||
.progress-node-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.progress-node-info .node-name {
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.progress-node-info .node-ip {
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.progress-status {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.progress-status.success {
|
||||
background: rgba(74, 222, 128, 0.2);
|
||||
color: var(--accent-primary);
|
||||
border: 1px solid rgba(74, 222, 128, 0.3);
|
||||
}
|
||||
|
||||
.progress-status.error {
|
||||
background: rgba(248, 113, 113, 0.2);
|
||||
color: var(--accent-error);
|
||||
border: 1px solid rgba(248, 113, 113, 0.3);
|
||||
}
|
||||
|
||||
.progress-status.uploading {
|
||||
background: rgba(251, 191, 36, 0.2);
|
||||
color: var(--accent-warning);
|
||||
border: 1px solid rgba(251, 191, 36, 0.3);
|
||||
}
|
||||
|
||||
.progress-time {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-tertiary);
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||
}
|
||||
|
||||
/* Firmware Upload Progress Overlay */
|
||||
.firmware-upload-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(4px);
|
||||
z-index: 9998; /* Lower than drawer (1000) but higher than main content */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.25s ease; /* Smooth transition when drawer opens/closes */
|
||||
}
|
||||
|
||||
/* When drawer is open, adjust overlay to only cover left side */
|
||||
.firmware-upload-overlay.drawer-open {
|
||||
width: calc(100% - clamp(33.333vw, 650px, 90vw));
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.overlay-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 2rem;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-primary);
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
||||
max-width: 400px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.overlay-spinner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.overlay-spinner .spinner {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
color: var(--accent-primary);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
.overlay-text {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.overlay-subtext {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Only enable drawer on wider screens; on small keep inline cards */
|
||||
@media (max-width: 1023px) {
|
||||
.details-drawer { display: none; }
|
||||
|
||||
/* On mobile, overlay covers full screen since drawer is not used */
|
||||
.firmware-upload-overlay.drawer-open {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive adjustments for firmware upload controls */
|
||||
@media (max-width: 768px) {
|
||||
.file-input-wrapper {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.file-input-left {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.upload-btn-compact,
|
||||
.deploy-btn-compact {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.file-info {
|
||||
text-align: center;
|
||||
order: -1; /* Show file info first on mobile */
|
||||
}
|
||||
}
|
||||
|
||||
/* Terminal Panel - bottom-centered modal style */
|
||||
@@ -4854,9 +5500,9 @@ html {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.node-status {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.node-labels {
|
||||
margin-bottom: 0.75rem;
|
||||
|
||||
Reference in New Issue
Block a user