feat: introduce global config dialog
This commit is contained in:
@@ -401,6 +401,46 @@ p {
|
||||
}
|
||||
}
|
||||
|
||||
/* Config Button */
|
||||
.config-btn {
|
||||
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.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;
|
||||
gap: 0.5rem;
|
||||
backdrop-filter: var(--backdrop-blur);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.config-btn: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(-2px);
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.config-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.config-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.config-btn.loading {
|
||||
opacity: 0.8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Deploy Button */
|
||||
.deploy-btn {
|
||||
background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
|
||||
@@ -440,6 +480,218 @@ p {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* WiFi Configuration Styles */
|
||||
.wifi-config-drawer {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wifi-config-section {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.wifi-config-section h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.wifi-form {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 0.75rem;
|
||||
border: 1px solid var(--border-secondary);
|
||||
border-radius: 8px;
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
outline: none;
|
||||
border-color: #60a5fa;
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
|
||||
}
|
||||
|
||||
.form-group input::placeholder {
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.wifi-divider {
|
||||
height: 1px;
|
||||
background: var(--border-primary);
|
||||
margin: 1.5rem 0;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.affected-nodes-info {
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 0.75rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.nodes-count {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nodes-count span {
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.wifi-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.wifi-actions .config-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.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;
|
||||
}
|
||||
|
||||
.wifi-actions .config-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(-1px);
|
||||
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.2);
|
||||
}
|
||||
|
||||
.wifi-actions .config-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.wifi-actions .config-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wifi-actions .config-btn.loading {
|
||||
opacity: 0.8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Results Section */
|
||||
.results-section {
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.results-section h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.results-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.result-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.75rem;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.result-item.success {
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
border-color: rgba(34, 197, 94, 0.3);
|
||||
}
|
||||
|
||||
.result-item.error {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
.result-node {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.result-node .node-name {
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.result-node .node-ip {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.result-status .status-indicator {
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.result-status .status-indicator.success {
|
||||
background: rgba(34, 197, 94, 0.2);
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
.result-status .status-indicator.error {
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.result-error {
|
||||
margin-top: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
border-radius: 4px;
|
||||
color: #ef4444;
|
||||
font-size: 0.8rem;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Cluster Header Right */
|
||||
.cluster-header-right {
|
||||
display: flex;
|
||||
@@ -4847,8 +5099,7 @@ select.param-input:focus {
|
||||
}
|
||||
|
||||
.clear-filters-btn {
|
||||
align-self: center;
|
||||
padding: 0.5rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.primary-node-info {
|
||||
@@ -4879,6 +5130,14 @@ select.param-input:focus {
|
||||
padding: 0.75rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.config-btn,
|
||||
.deploy-btn {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
padding: 0.75rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
#cluster-members-container {
|
||||
@@ -5089,6 +5348,7 @@ html {
|
||||
.upload-btn,
|
||||
.upload-btn-compact,
|
||||
.deploy-btn,
|
||||
.config-btn,
|
||||
.cap-call-btn,
|
||||
.progress-refresh-btn,
|
||||
.clear-btn,
|
||||
@@ -5126,6 +5386,14 @@ html {
|
||||
#firmware-view .deploy-btn:hover:not(:disabled)::before {
|
||||
left: -100% !important;
|
||||
}
|
||||
|
||||
/* Disable hover effects for cluster view buttons on touch devices */
|
||||
.config-btn:hover,
|
||||
.deploy-btn:hover:not(:disabled),
|
||||
.refresh-btn:hover {
|
||||
transform: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Cluster view specific error styling */
|
||||
|
||||
Reference in New Issue
Block a user