feat: redesign UI to Hetzner Cloud style with light theme
This commit is contained in:
@@ -10,15 +10,15 @@
|
||||
|
||||
:root {
|
||||
/* Primary Gradient */
|
||||
--gradient-primary: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
|
||||
--gradient-primary-hover: linear-gradient(135deg, #5a6fd6 0%, #4338ca 100%);
|
||||
--gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
|
||||
--gradient-primary-hover: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
|
||||
|
||||
/* Accent colors */
|
||||
--primary: #667eea;
|
||||
--primary-dark: #5a6fd6;
|
||||
--primary-hover: #5a6fd6;
|
||||
--primary-light: rgba(102, 126, 234, 0.15);
|
||||
--secondary: #4f46e5;
|
||||
--primary: #0ea5e9;
|
||||
--primary-dark: #0284c7;
|
||||
--primary-hover: #0284c7;
|
||||
--primary-light: rgba(14, 165, 233, 0.12);
|
||||
--secondary: #0369a1;
|
||||
|
||||
/* Text on colored backgrounds */
|
||||
--text-on-primary: #ffffff;
|
||||
@@ -56,10 +56,10 @@
|
||||
--spacing-xl: 2rem;
|
||||
|
||||
/* Border radius */
|
||||
--radius-sm: 8px;
|
||||
--radius-md: 12px;
|
||||
--radius-lg: 16px;
|
||||
--radius-xl: 20px;
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 6px;
|
||||
--radius-lg: 8px;
|
||||
--radius-xl: 12px;
|
||||
--radius-full: 9999px;
|
||||
|
||||
/* Transitions */
|
||||
@@ -81,31 +81,31 @@
|
||||
============================================ */
|
||||
|
||||
[data-theme="dark"] {
|
||||
--bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
|
||||
--bg-body: #0f0f1a;
|
||||
--bg-surface: rgba(30, 30, 50, 0.95);
|
||||
--bg-surface-solid: #1e1e32;
|
||||
--bg-surface-elevated: rgba(40, 40, 65, 0.95);
|
||||
--bg-surface-hover: rgba(50, 50, 80, 0.6);
|
||||
--bg-surface-active: rgba(60, 60, 90, 0.6);
|
||||
--bg-input: rgba(20, 20, 35, 0.8);
|
||||
--bg-gradient: #0f1117;
|
||||
--bg-body: #0f1117;
|
||||
--bg-surface: rgba(26, 29, 35, 0.98);
|
||||
--bg-surface-solid: #1a1d23;
|
||||
--bg-surface-elevated: rgba(30, 33, 40, 0.98);
|
||||
--bg-surface-hover: rgba(255, 255, 255, 0.06);
|
||||
--bg-surface-active: rgba(255, 255, 255, 0.09);
|
||||
--bg-input: rgba(0, 0, 0, 0.3);
|
||||
|
||||
--border-default: rgba(100, 100, 150, 0.2);
|
||||
--border-muted: rgba(80, 80, 120, 0.15);
|
||||
--border-subtle: rgba(60, 60, 100, 0.1);
|
||||
--border-default: rgba(255, 255, 255, 0.1);
|
||||
--border-muted: rgba(255, 255, 255, 0.06);
|
||||
--border-subtle: rgba(255, 255, 255, 0.04);
|
||||
|
||||
--text-primary: #f0f0f5;
|
||||
--text-secondary: #a0a0b5;
|
||||
--text-muted: #707090;
|
||||
--text-placeholder: #505070;
|
||||
--text-primary: #f1f3f5;
|
||||
--text-secondary: #9ca3af;
|
||||
--text-muted: #6b7280;
|
||||
--text-placeholder: #4b5563;
|
||||
|
||||
--shadow-sm: none;
|
||||
--shadow-md: none;
|
||||
--shadow-lg: none;
|
||||
--shadow-xl: none;
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
|
||||
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
|
||||
--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
|
||||
|
||||
--glass-bg: rgba(30, 30, 50, 0.95);
|
||||
--glass-border: rgba(100, 100, 150, 0.15);
|
||||
--glass-bg: #1a1d23;
|
||||
--glass-border: rgba(255, 255, 255, 0.1);
|
||||
|
||||
color-scheme: dark;
|
||||
}
|
||||
@@ -115,23 +115,23 @@
|
||||
============================================ */
|
||||
|
||||
[data-theme="light"] {
|
||||
--bg-gradient: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 50%, #b39ddb 100%);
|
||||
--bg-body: #f0f2f5;
|
||||
--bg-surface: rgba(255, 255, 255, 0.95);
|
||||
--bg-gradient: #f4f5f7;
|
||||
--bg-body: #f4f5f7;
|
||||
--bg-surface: #ffffff;
|
||||
--bg-surface-solid: #ffffff;
|
||||
--bg-surface-elevated: rgba(255, 255, 255, 0.98);
|
||||
--bg-surface-hover: rgba(102, 126, 234, 0.08);
|
||||
--bg-surface-active: rgba(102, 126, 234, 0.12);
|
||||
--bg-input: rgba(255, 255, 255, 0.9);
|
||||
--bg-surface-elevated: #ffffff;
|
||||
--bg-surface-hover: rgba(0, 0, 0, 0.04);
|
||||
--bg-surface-active: rgba(0, 0, 0, 0.07);
|
||||
--bg-input: #ffffff;
|
||||
|
||||
--border-default: rgba(102, 126, 234, 0.2);
|
||||
--border-muted: rgba(102, 126, 234, 0.1);
|
||||
--border-subtle: rgba(102, 126, 234, 0.05);
|
||||
--border-default: #dde1e9;
|
||||
--border-muted: #eaecf2;
|
||||
--border-subtle: #f0f2f6;
|
||||
|
||||
--text-primary: #1a202c;
|
||||
--text-secondary: #4a5568;
|
||||
--text-muted: #718096;
|
||||
--text-placeholder: #a0aec0;
|
||||
--text-primary: #111827;
|
||||
--text-secondary: #374151;
|
||||
--text-muted: #6b7280;
|
||||
--text-placeholder: #9ca3af;
|
||||
|
||||
/* Text on colored backgrounds - same for light theme */
|
||||
--text-on-primary: #ffffff;
|
||||
@@ -140,13 +140,13 @@
|
||||
--text-on-danger: #ffffff;
|
||||
--text-on-info: #ffffff;
|
||||
|
||||
--shadow-sm: none;
|
||||
--shadow-md: none;
|
||||
--shadow-lg: none;
|
||||
--shadow-xl: none;
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
|
||||
--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
|
||||
|
||||
--glass-bg: rgba(255, 255, 255, 0.95);
|
||||
--glass-border: rgba(102, 126, 234, 0.15);
|
||||
--glass-bg: #ffffff;
|
||||
--glass-border: #dde1e9;
|
||||
|
||||
color-scheme: light;
|
||||
}
|
||||
@@ -167,8 +167,7 @@ html {
|
||||
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
background: var(--bg-gradient);
|
||||
background-attachment: fixed;
|
||||
background: var(--bg-body);
|
||||
color: var(--text-primary);
|
||||
line-height: 1.6;
|
||||
min-height: 100vh;
|
||||
@@ -216,7 +215,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
.sidebar {
|
||||
width: var(--sidebar-width);
|
||||
background: #0f0f1a;
|
||||
background: #1a1a1f;
|
||||
position: fixed;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
@@ -225,7 +224,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
flex-direction: column;
|
||||
z-index: 100;
|
||||
transition: transform var(--transition-slow), width var(--transition-slow);
|
||||
border-right: 1px solid rgba(100, 100, 150, 0.2);
|
||||
border-right: 1px solid #2d2d36;
|
||||
}
|
||||
|
||||
/* Collapsed sidebar - icons only */
|
||||
@@ -279,16 +278,16 @@ h1, h2, h3, h4, h5, h6 {
|
||||
/* Sidebar footer with toggle button - static dark */
|
||||
.sidebar-footer {
|
||||
padding: var(--spacing-md) var(--spacing-lg);
|
||||
border-top: 1px solid rgba(100, 100, 150, 0.2);
|
||||
border-top: 1px solid #2d2d36;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* Sidebar toggle button - static dark */
|
||||
.sidebar-toggle {
|
||||
width: 100%;
|
||||
background: rgba(30, 30, 50, 0.8);
|
||||
border: 1px solid rgba(100, 100, 150, 0.2);
|
||||
color: #a0a0b5;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid #2d2d36;
|
||||
color: #9ca3af;
|
||||
cursor: pointer;
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
border-radius: var(--radius-md);
|
||||
@@ -301,9 +300,9 @@ h1, h2, h3, h4, h5, h6 {
|
||||
}
|
||||
|
||||
.sidebar-toggle:hover {
|
||||
background: rgba(50, 50, 80, 0.6);
|
||||
color: #667eea;
|
||||
border-color: #667eea;
|
||||
background: rgba(255, 255, 255, 0.09);
|
||||
color: #0ea5e9;
|
||||
border-color: rgba(14, 165, 233, 0.4);
|
||||
}
|
||||
|
||||
.sidebar-toggle svg {
|
||||
@@ -328,10 +327,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
.sidebar-logo h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
background: var(--gradient-primary);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
color: #ffffff;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -354,7 +350,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-md) var(--spacing-md);
|
||||
color: #a0a0b5;
|
||||
color: #9ca3af;
|
||||
text-decoration: none;
|
||||
border-radius: var(--radius-md);
|
||||
font-weight: 500;
|
||||
@@ -363,13 +359,13 @@ h1, h2, h3, h4, h5, h6 {
|
||||
}
|
||||
|
||||
.sidebar-nav a:hover {
|
||||
background: rgba(50, 50, 80, 0.4);
|
||||
color: #667eea;
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.sidebar-nav a.active {
|
||||
background: var(--primary);
|
||||
color: #ffffff;
|
||||
background: rgba(14, 165, 233, 0.15);
|
||||
color: #0ea5e9;
|
||||
}
|
||||
|
||||
.sidebar-nav a.active svg,
|
||||
@@ -398,15 +394,13 @@ h1, h2, h3, h4, h5, h6 {
|
||||
height: 40px;
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-default);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(10px);
|
||||
background: var(--bg-surface-solid);
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
}
|
||||
|
||||
.menu-toggle:hover {
|
||||
background: var(--bg-surface-hover);
|
||||
@@ -431,7 +425,6 @@ h1, h2, h3, h4, h5, h6 {
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
transition: margin-left var(--transition-slow);
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.sidebar.collapsed + .content-wrapper,
|
||||
@@ -444,18 +437,18 @@ body.sidebar-collapsed .content-wrapper {
|
||||
============================================ */
|
||||
|
||||
header {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg) var(--spacing-xl);
|
||||
margin-bottom: var(--spacing-xl);
|
||||
background: var(--bg-surface-solid);
|
||||
border-radius: 0;
|
||||
padding: 12px 24px;
|
||||
margin-bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border: 1px solid var(--glass-border);
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--border-default);
|
||||
box-shadow: var(--shadow-sm);
|
||||
position: sticky;
|
||||
top: var(--spacing-lg);
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
@@ -604,6 +597,7 @@ header h2 {
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
@@ -611,18 +605,18 @@ main {
|
||||
============================================ */
|
||||
|
||||
.card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
transition: border-color var(--transition-fast);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
border-color: var(--border-default);
|
||||
border-color: var(--primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
@@ -659,7 +653,7 @@ main {
|
||||
stroke: currentColor;
|
||||
}
|
||||
|
||||
.card-icon.icon-blue { background: rgba(102, 126, 234, 0.15); color: #667eea; }
|
||||
.card-icon.icon-blue { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
|
||||
.card-icon.icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
|
||||
.card-icon.icon-orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
|
||||
.card-icon.icon-purple { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
|
||||
@@ -684,17 +678,17 @@ main {
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
transition: border-color var(--transition-fast);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
border-color: var(--primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
@@ -964,13 +958,12 @@ label:has(input[type="checkbox"]) span {
|
||||
============================================ */
|
||||
|
||||
.table-container {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
overflow-x: auto;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
table {
|
||||
@@ -1082,7 +1075,7 @@ table tr:hover {
|
||||
|
||||
.chart-bar {
|
||||
width: 100%;
|
||||
background: var(--gradient-primary);
|
||||
background: var(--primary);
|
||||
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
||||
transition: all var(--transition-fast);
|
||||
cursor: pointer;
|
||||
@@ -1111,17 +1104,17 @@ table tr:hover {
|
||||
}
|
||||
|
||||
.server-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
transition: border-color var(--transition-fast);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.server-card:hover {
|
||||
border-color: var(--primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.server-card-header {
|
||||
@@ -1233,15 +1226,14 @@ table tr:hover {
|
||||
|
||||
.notification-center {
|
||||
position: fixed;
|
||||
top: 100px;
|
||||
top: 60px;
|
||||
right: var(--spacing-xl);
|
||||
width: 380px;
|
||||
max-height: calc(100vh - 140px);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
max-height: calc(100vh - 100px);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -1390,10 +1382,10 @@ table tr:hover {
|
||||
min-width: 300px;
|
||||
max-width: 400px;
|
||||
padding: var(--spacing-md) var(--spacing-lg);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
animation: toastSlideIn 0.3s ease-out;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
@@ -1466,11 +1458,10 @@ table tr:hover {
|
||||
============================================ */
|
||||
|
||||
.modal-content {
|
||||
background: var(--glass-bg) !important;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border) !important;
|
||||
background: var(--bg-surface-solid) !important;
|
||||
border: 1px solid var(--border-default) !important;
|
||||
border-radius: var(--radius-lg) !important;
|
||||
box-shadow: var(--shadow-xl) !important;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
@@ -1558,7 +1549,7 @@ table tr:hover {
|
||||
============================================ */
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.content-wrapper {
|
||||
main {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
@@ -1588,14 +1579,17 @@ table tr:hover {
|
||||
|
||||
.content-wrapper {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: var(--spacing-sm);
|
||||
}
|
||||
|
||||
header {
|
||||
margin-bottom: var(--spacing-md);
|
||||
padding: var(--spacing-md);
|
||||
border-radius: var(--radius-lg);
|
||||
top: var(--spacing-sm);
|
||||
margin-bottom: 0;
|
||||
padding: 10px 16px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
@@ -1652,12 +1646,12 @@ table tr:hover {
|
||||
|
||||
/* Дополнительные брейкпоинты для мелких экранов */
|
||||
@media (max-width: 480px) {
|
||||
.content-wrapper {
|
||||
main {
|
||||
padding: var(--spacing-xs);
|
||||
}
|
||||
|
||||
header {
|
||||
padding: var(--spacing-sm);
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.card {
|
||||
@@ -1708,7 +1702,7 @@ table tr:hover {
|
||||
.bg-warning { background: var(--warning) !important; }
|
||||
|
||||
.gradient-text {
|
||||
background: var(--gradient-primary);
|
||||
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
@@ -1842,8 +1836,7 @@ table tr:hover {
|
||||
/* Alerts */
|
||||
.alert {
|
||||
border-radius: var(--radius-md) !important;
|
||||
border: none !important;
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid transparent !important;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
@@ -1893,9 +1886,8 @@ table tr:hover {
|
||||
|
||||
/* Dropdowns */
|
||||
.dropdown-menu {
|
||||
background: var(--glass-bg) !important;
|
||||
backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border) !important;
|
||||
background: var(--bg-surface-solid) !important;
|
||||
border: 1px solid var(--border-default) !important;
|
||||
border-radius: var(--radius-md) !important;
|
||||
box-shadow: var(--shadow-lg) !important;
|
||||
}
|
||||
@@ -1963,54 +1955,54 @@ a:hover {
|
||||
|
||||
/* Light theme specific overrides */
|
||||
[data-theme="light"] .card {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(102, 126, 234, 0.15);
|
||||
background: #ffffff;
|
||||
border-color: #dde1e9;
|
||||
}
|
||||
|
||||
[data-theme="light"] header {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(102, 126, 234, 0.15);
|
||||
background: #ffffff;
|
||||
border-bottom-color: #dde1e9;
|
||||
}
|
||||
|
||||
/* Sidebar stays dark in all themes */
|
||||
[data-theme="light"] .sidebar {
|
||||
background: #0f0f1a !important;
|
||||
border-right-color: rgba(100, 100, 150, 0.2) !important;
|
||||
background: #1a1a1f !important;
|
||||
border-right-color: #2d2d36 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-nav a {
|
||||
color: #a0a0b5 !important;
|
||||
color: #9ca3af !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-nav a:hover {
|
||||
background: rgba(50, 50, 80, 0.6) !important;
|
||||
color: #667eea !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-nav a.active {
|
||||
background: var(--gradient-primary) !important;
|
||||
background: rgba(255, 255, 255, 0.07) !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-nav a.active {
|
||||
background: rgba(14, 165, 233, 0.15) !important;
|
||||
color: #0ea5e9 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-footer {
|
||||
border-top-color: rgba(100, 100, 150, 0.2) !important;
|
||||
border-top-color: #2d2d36 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-toggle {
|
||||
background: rgba(30, 30, 50, 0.8) !important;
|
||||
border-color: rgba(100, 100, 150, 0.2) !important;
|
||||
color: #a0a0b5 !important;
|
||||
background: rgba(255, 255, 255, 0.05) !important;
|
||||
border-color: #2d2d36 !important;
|
||||
color: #9ca3af !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar-toggle:hover {
|
||||
background: rgba(50, 50, 80, 0.6) !important;
|
||||
color: #667eea !important;
|
||||
border-color: #667eea !important;
|
||||
background: rgba(255, 255, 255, 0.09) !important;
|
||||
color: #0ea5e9 !important;
|
||||
border-color: rgba(14, 165, 233, 0.4) !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .info-card {
|
||||
background: rgba(102, 126, 234, 0.05);
|
||||
border-color: rgba(102, 126, 234, 0.15);
|
||||
background: #f8f9fb;
|
||||
border-color: #dde1e9;
|
||||
}
|
||||
|
||||
[data-theme="light"] .form-control,
|
||||
@@ -2022,7 +2014,7 @@ a:hover {
|
||||
[data-theme="light"] select,
|
||||
[data-theme="light"] textarea {
|
||||
background: #ffffff !important;
|
||||
border-color: rgba(102, 126, 234, 0.3) !important;
|
||||
border-color: #dde1e9 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .form-control:focus,
|
||||
@@ -2030,14 +2022,14 @@ a:hover {
|
||||
[data-theme="light"] select:focus,
|
||||
[data-theme="light"] textarea:focus {
|
||||
border-color: var(--primary) !important;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
|
||||
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .table-container,
|
||||
[data-theme="light"] .stat-card,
|
||||
[data-theme="light"] .server-card {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(102, 126, 234, 0.15);
|
||||
background: #ffffff;
|
||||
border-color: #dde1e9;
|
||||
}
|
||||
|
||||
[data-theme="light"] table th {
|
||||
@@ -2045,11 +2037,11 @@ a:hover {
|
||||
}
|
||||
|
||||
[data-theme="light"] table td {
|
||||
border-bottom-color: rgba(102, 126, 234, 0.1) !important;
|
||||
border-bottom-color: #eaecf2 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .nav-tabs {
|
||||
border-bottom-color: rgba(102, 126, 234, 0.2) !important;
|
||||
border-bottom-color: #dde1e9 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .nav-tabs .nav-link {
|
||||
@@ -2057,7 +2049,7 @@ a:hover {
|
||||
}
|
||||
|
||||
[data-theme="light"] .nav-tabs .nav-link:hover {
|
||||
border-bottom-color: rgba(102, 126, 234, 0.3) !important;
|
||||
border-bottom-color: #c4c9d4 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .nav-tabs .nav-link.active {
|
||||
@@ -2066,24 +2058,24 @@ a:hover {
|
||||
}
|
||||
|
||||
[data-theme="light"] .dropdown-menu {
|
||||
background: rgba(255, 255, 255, 0.98) !important;
|
||||
border-color: rgba(102, 126, 234, 0.15) !important;
|
||||
background: #ffffff !important;
|
||||
border-color: #dde1e9 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .modal-content {
|
||||
background: rgba(255, 255, 255, 0.98) !important;
|
||||
border-color: rgba(102, 126, 234, 0.15) !important;
|
||||
background: #ffffff !important;
|
||||
border-color: #dde1e9 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .theme-toggle,
|
||||
[data-theme="light"] .notification-bell {
|
||||
background: rgba(102, 126, 234, 0.1);
|
||||
border-color: rgba(102, 126, 234, 0.2);
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
border-color: #dde1e9;
|
||||
}
|
||||
|
||||
[data-theme="light"] .theme-toggle:hover,
|
||||
[data-theme="light"] .notification-bell:hover {
|
||||
background: rgba(102, 126, 234, 0.15);
|
||||
background: rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
@@ -2345,7 +2337,7 @@ body {
|
||||
}
|
||||
|
||||
/* ── Status colours ───────────────────────────────────────────── */
|
||||
.task-status-running { color: #667eea; }
|
||||
.task-status-running { color: #0ea5e9; }
|
||||
.task-status-pending { color: #f97316; }
|
||||
.task-status-completed { color: #10b981; }
|
||||
.task-status-failed { color: #ef4444; }
|
||||
@@ -2364,9 +2356,9 @@ body {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.task-badge-running {
|
||||
background: rgba(102,126,234,.15);
|
||||
color: #667eea;
|
||||
border: 1px solid rgba(102,126,234,.3);
|
||||
background: rgba(14,165,233,.12);
|
||||
color: #0ea5e9;
|
||||
border: 1px solid rgba(14,165,233,.3);
|
||||
}
|
||||
.task-badge-pending {
|
||||
background: rgba(249,115,22,.13);
|
||||
@@ -2401,10 +2393,10 @@ body {
|
||||
height: 100%;
|
||||
border-radius: 9999px;
|
||||
transition: width .5s ease;
|
||||
background: var(--gradient-primary, linear-gradient(90deg, #667eea, #764ba2));
|
||||
background: var(--primary);
|
||||
}
|
||||
.task-progress-fill.running {
|
||||
background: linear-gradient(90deg, #667eea 0%, #a78bfa 50%, #667eea 100%);
|
||||
background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
|
||||
background-size: 200% 100%;
|
||||
animation: task-shimmer 2s linear infinite;
|
||||
}
|
||||
@@ -2465,7 +2457,7 @@ body {
|
||||
line-height: 1;
|
||||
}
|
||||
.tasks-count-badge.has-active {
|
||||
background: #667eea;
|
||||
background: #0ea5e9;
|
||||
animation: task-badge-pop .25s ease, task-pulse-dot 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@@ -2477,7 +2469,7 @@ body {
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.task-dot.running { background: #667eea; animation: task-pulse-dot 1.2s ease-in-out infinite; }
|
||||
.task-dot.running { background: #0ea5e9; animation: task-pulse-dot 1.2s ease-in-out infinite; }
|
||||
.task-dot.pending { background: #f97316; animation: task-pulse-dot 1.6s ease-in-out infinite; }
|
||||
.task-dot.completed { background: #10b981; }
|
||||
.task-dot.failed { background: #ef4444; }
|
||||
@@ -2491,13 +2483,12 @@ body {
|
||||
width: 380px;
|
||||
max-width: 96vw;
|
||||
height: 100vh;
|
||||
background: var(--glass-bg, rgba(20,20,35,.95));
|
||||
backdrop-filter: blur(20px);
|
||||
border-left: 1px solid var(--glass-border, rgba(255,255,255,.08));
|
||||
background: var(--bg-surface-solid);
|
||||
border-left: 1px solid var(--border-default);
|
||||
z-index: 1200;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: -8px 0 40px rgba(0,0,0,.45);
|
||||
box-shadow: -8px 0 40px rgba(0,0,0,.2);
|
||||
animation: task-drawer-in .25s ease;
|
||||
}
|
||||
.task-drawer-header {
|
||||
@@ -2546,25 +2537,25 @@ body {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: .85rem;
|
||||
color: #667eea;
|
||||
color: #0ea5e9;
|
||||
text-decoration: none;
|
||||
padding: .5rem;
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
transition: background .15s;
|
||||
}
|
||||
.task-drawer-footer a:hover { background: rgba(102,126,234,.1); }
|
||||
.task-drawer-footer a:hover { background: rgba(14,165,233,.08); }
|
||||
|
||||
/* ── Mini task card (drawer) ──────────────────────────────────── */
|
||||
.task-mini-card {
|
||||
background: var(--bg-surface, rgba(255,255,255,.04));
|
||||
border: 1px solid var(--border-muted, rgba(255,255,255,.06));
|
||||
border-radius: 10px;
|
||||
background: var(--bg-surface-hover);
|
||||
border: 1px solid var(--border-muted);
|
||||
border-radius: 8px;
|
||||
padding: .75rem 1rem;
|
||||
margin-bottom: .5rem;
|
||||
transition: border-color .15s;
|
||||
}
|
||||
.task-mini-card:hover { border-color: var(--border-default); }
|
||||
.task-mini-card.running { border-left: 3px solid #667eea; }
|
||||
.task-mini-card.running { border-left: 3px solid #0ea5e9; }
|
||||
.task-mini-card.pending { border-left: 3px solid #f97316; }
|
||||
.task-mini-card.completed { border-left: 3px solid #10b981; }
|
||||
.task-mini-card.failed { border-left: 3px solid #ef4444; }
|
||||
@@ -2593,19 +2584,20 @@ body {
|
||||
|
||||
/* ── Full task card (page) ────────────────────────────────────── */
|
||||
.task-card {
|
||||
background: var(--glass-bg, rgba(255,255,255,.04));
|
||||
border: 1px solid var(--glass-border, rgba(255,255,255,.08));
|
||||
border-radius: 14px;
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: 10px;
|
||||
padding: 1.25rem 1.5rem;
|
||||
margin-bottom: .75rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color .2s, box-shadow .2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
.task-card:hover {
|
||||
border-color: rgba(102,126,234,.4);
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,.2);
|
||||
border-color: var(--primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
.task-card.running { border-left: 4px solid #667eea; }
|
||||
.task-card.running { border-left: 4px solid #0ea5e9; }
|
||||
.task-card.pending { border-left: 4px solid #f97316; }
|
||||
.task-card.completed { border-left: 4px solid #10b981; }
|
||||
.task-card.failed { border-left: 4px solid #ef4444; }
|
||||
@@ -2679,7 +2671,7 @@ body {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tasks-tab:hover { color: var(--text-primary); }
|
||||
.tasks-tab.active { color: #667eea; border-bottom-color: #667eea; }
|
||||
.tasks-tab.active { color: #0ea5e9; border-bottom-color: #0ea5e9; }
|
||||
.tasks-tab .tasks-tab-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -2695,8 +2687,8 @@ body {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.tasks-tab.active .tasks-tab-count {
|
||||
background: rgba(102,126,234,.2);
|
||||
color: #667eea;
|
||||
background: rgba(14,165,233,.15);
|
||||
color: #0ea5e9;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
@@ -2725,8 +2717,8 @@ body {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
background: rgba(102,126,234,0.1);
|
||||
border: 1px solid rgba(102,126,234,0.2);
|
||||
background: rgba(14,165,233,0.1);
|
||||
border: 1px solid rgba(14,165,233,0.2);
|
||||
border-radius: var(--radius-md);
|
||||
color: #c8ccf5;
|
||||
font-size: 0.875rem;
|
||||
@@ -2739,8 +2731,8 @@ body {
|
||||
}
|
||||
|
||||
.workspace-selector-btn:hover {
|
||||
background: rgba(102,126,234,0.18);
|
||||
border-color: rgba(102,126,234,0.4);
|
||||
background: rgba(14,165,233,0.18);
|
||||
border-color: rgba(14,165,233,0.4);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -2763,10 +2755,10 @@ body {
|
||||
top: calc(100% - 4px);
|
||||
left: var(--spacing-md);
|
||||
right: var(--spacing-md);
|
||||
background: var(--bg-card, #1a1f35);
|
||||
border: 1px solid rgba(102,126,234,0.3);
|
||||
background: #22252c;
|
||||
border: 1px solid rgba(14,165,233,0.25);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.35);
|
||||
z-index: 200;
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
@@ -2790,7 +2782,7 @@ body {
|
||||
|
||||
.workspace-dropdown-item:hover,
|
||||
.workspace-dropdown-item.active {
|
||||
background: rgba(102,126,234,0.12);
|
||||
background: rgba(14,165,233,0.12);
|
||||
color: #e0e3ff;
|
||||
}
|
||||
|
||||
@@ -2925,18 +2917,18 @@ body {
|
||||
}
|
||||
|
||||
.stat-card-v2 {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.25rem 1.5rem;
|
||||
transition: border-color var(--transition-fast), transform var(--transition-fast);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
|
||||
animation: fadeIn 0.5s ease;
|
||||
}
|
||||
|
||||
.stat-card-v2:hover {
|
||||
border-color: var(--primary);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@@ -2983,12 +2975,11 @@ body {
|
||||
}
|
||||
|
||||
.resource-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.25rem 1.5rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
animation: fadeIn 0.6s ease;
|
||||
}
|
||||
|
||||
@@ -3058,12 +3049,11 @@ body {
|
||||
}
|
||||
|
||||
.dash-section {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-sm);
|
||||
animation: fadeIn 0.6s ease;
|
||||
}
|
||||
|
||||
@@ -3400,3 +3390,53 @@ body {
|
||||
.breadcrumb-nav a:hover { color: var(--primary); }
|
||||
.breadcrumb-sep { opacity: 0.4; }
|
||||
|
||||
/* ============================================
|
||||
Skeleton Loading
|
||||
============================================ */
|
||||
@keyframes skeleton-shimmer {
|
||||
0% { background-position: -300% 0; }
|
||||
100% { background-position: 300% 0; }
|
||||
}
|
||||
|
||||
.skeleton {
|
||||
color: transparent !important;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--bg-surface-hover) 25%,
|
||||
var(--border-default) 50%,
|
||||
var(--bg-surface-hover) 75%
|
||||
) !important;
|
||||
background-size: 300% 100% !important;
|
||||
animation: skeleton-shimmer 1.6s ease-in-out infinite;
|
||||
border-radius: var(--radius-sm);
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
Modal Close Button
|
||||
============================================ */
|
||||
.modal-close-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
line-height: 1;
|
||||
padding: .3rem .55rem;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background var(--transition-fast), color var(--transition-fast);
|
||||
}
|
||||
.modal-close-btn:hover {
|
||||
background: var(--bg-surface-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
Accessibility — Focus Ring
|
||||
============================================ */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,19 +10,15 @@
|
||||
const DARK_THEME = 'dark';
|
||||
const LIGHT_THEME = 'light';
|
||||
|
||||
// Get saved theme or system preference
|
||||
// Get saved theme or default to light
|
||||
function getPreferredTheme() {
|
||||
const savedTheme = localStorage.getItem(THEME_KEY);
|
||||
if (savedTheme) {
|
||||
return savedTheme;
|
||||
}
|
||||
|
||||
// Check system preference
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
|
||||
return LIGHT_THEME;
|
||||
}
|
||||
|
||||
return DARK_THEME;
|
||||
// Default to light theme (cloud panel style)
|
||||
return LIGHT_THEME;
|
||||
}
|
||||
|
||||
// Apply theme to document
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ lang }}" data-theme="dark">
|
||||
<html lang="{{ lang }}" data-theme="light">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ title or t('app_name') }}</title>
|
||||
@@ -374,7 +374,7 @@
|
||||
}
|
||||
|
||||
.custom-dialog-icon.question {
|
||||
background: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
|
||||
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
|
||||
}
|
||||
|
||||
.custom-dialog-title {
|
||||
@@ -446,14 +446,15 @@
|
||||
}
|
||||
|
||||
.custom-dialog-btn.primary {
|
||||
background: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
|
||||
background: #0ea5e9;
|
||||
color: #ffffff !important;
|
||||
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
|
||||
box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
|
||||
}
|
||||
|
||||
.custom-dialog-btn.primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
|
||||
transform: translateY(-1px);
|
||||
background: #0284c7;
|
||||
box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
|
||||
}
|
||||
|
||||
.custom-dialog-btn.secondary {
|
||||
@@ -601,7 +602,7 @@ body.update-in-progress .layout {
|
||||
<div class="sidebar-workspace-section" id="sidebarWorkspaceSection">
|
||||
<div class="sidebar-workspace-label">Workspace</div>
|
||||
<button class="workspace-selector-btn" id="sidebarWorkspaceBtn" title="Active workspace" onclick="toggleWorkspaceDropdown(event)">
|
||||
<span class="workspace-color-dot" id="sidebarWorkspaceColorDot" style="background:#667eea;"></span>
|
||||
<span class="workspace-color-dot" id="sidebarWorkspaceColorDot" style="background:#0ea5e9;"></span>
|
||||
<span class="workspace-name-text" id="sidebarWorkspaceName">—</span>
|
||||
<i class="fa-solid fa-chevron-down" id="sidebarWorkspaceChevron" style="font-size:0.65rem; opacity:0.6; transition:transform 0.2s;"></i>
|
||||
</button>
|
||||
@@ -647,7 +648,7 @@ body.update-in-progress .layout {
|
||||
<li><a href="/tasks" class="{{ 'active' if request.path.startswith('/tasks') else '' }}" title="Менеджер задач">
|
||||
<svg class="material-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 11l3 3L22 4"></path><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg>
|
||||
<span>Задачи</span>
|
||||
<span id="sidebarTasksBadge" style="display:none; background:#667eea; color:#fff; font-size:.62rem; font-weight:700; border-radius:9999px; padding:1px 6px; margin-left:auto; line-height:1.5;"></span>
|
||||
<span id="sidebarTasksBadge" style="display:none; background:#0ea5e9; color:#fff; font-size:.62rem; font-weight:700; border-radius:9999px; padding:1px 6px; margin-left:auto; line-height:1.5;"></span>
|
||||
</a></li>
|
||||
<li><a href="/settings" class="{{ 'active' if request.path.startswith('/settings') else '' }}" title="{{ t('nav_settings') }}">
|
||||
<svg class="material-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
|
||||
@@ -772,7 +773,7 @@ body.update-in-progress .layout {
|
||||
<!-- Task Drawer -->
|
||||
<div id="taskDrawer" class="task-drawer" style="display:none;">
|
||||
<div class="task-drawer-header">
|
||||
<h3><i class="fa-solid fa-list-check" style="color:#667eea; margin-right:.5rem;"></i> Задачи</h3>
|
||||
<h3><i class="fa-solid fa-list-check" style="color:var(--primary); margin-right:.5rem;"></i> Задачи</h3>
|
||||
<button class="task-drawer-close" onclick="toggleTaskDrawer()">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</button>
|
||||
@@ -1039,10 +1040,10 @@ body.update-in-progress .layout {
|
||||
if (!nameEl) return;
|
||||
if (!ws) {
|
||||
nameEl.textContent = 'Все';
|
||||
if (dotEl) { dotEl.style.background = '#667eea'; dotEl.style.opacity = '0.4'; }
|
||||
if (dotEl) { dotEl.style.background = '#0ea5e9'; dotEl.style.opacity = '0.4'; }
|
||||
} else {
|
||||
nameEl.textContent = ws.name;
|
||||
if (dotEl) { dotEl.style.background = ws.color || '#667eea'; dotEl.style.opacity = '1'; }
|
||||
if (dotEl) { dotEl.style.background = ws.color || '#0ea5e9'; dotEl.style.opacity = '1'; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1055,7 +1056,7 @@ body.update-in-progress .layout {
|
||||
if (isAdmin) {
|
||||
const allItem = document.createElement('div');
|
||||
allItem.className = 'workspace-dropdown-item' + (_activeWorkspaceId === null ? ' active' : '');
|
||||
allItem.innerHTML = `<span class="workspace-dropdown-dot" style="background:#667eea;opacity:0.4;"></span><span>Все</span>`;
|
||||
allItem.innerHTML = `<span class="workspace-dropdown-dot" style="background:#0ea5e9;opacity:0.4;"></span><span>Все</span>`;
|
||||
allItem.onclick = (e) => { e.stopPropagation(); _wsSelect(null, null, isAdmin); };
|
||||
container.appendChild(allItem);
|
||||
}
|
||||
@@ -1063,7 +1064,7 @@ body.update-in-progress .layout {
|
||||
workspaces.forEach(ws => {
|
||||
const item = document.createElement('div');
|
||||
item.className = 'workspace-dropdown-item' + (_activeWorkspaceId === ws.id ? ' active' : '');
|
||||
item.innerHTML = `<span class="workspace-dropdown-dot" style="background:${ws.color || '#667eea'};"></span><span>${ws.name}</span><small>${ws.server_count} серв.</small>`;
|
||||
item.innerHTML = `<span class="workspace-dropdown-dot" style="background:${ws.color || '#0ea5e9'};"></span><span>${ws.name}</span><small>${ws.server_count} серв.</small>`;
|
||||
item.onclick = (e) => { e.stopPropagation(); _wsSelect(ws.id, ws, isAdmin); };
|
||||
container.appendChild(item);
|
||||
});
|
||||
|
||||
@@ -45,12 +45,12 @@
|
||||
</div>
|
||||
<div class="stat-card-v2">
|
||||
<div class="stat-card-lbl">{{ t('vms') }}</div>
|
||||
<div class="stat-card-val" id="statVmCount">—</div>
|
||||
<div class="stat-card-val skeleton" id="statVmCount">—</div>
|
||||
<div class="stat-card-sub" id="statVmSub">{{ t('loading') }}…</div>
|
||||
</div>
|
||||
<div class="stat-card-v2">
|
||||
<div class="stat-card-lbl">{{ t('containers') }}</div>
|
||||
<div class="stat-card-val" id="statCtCount">—</div>
|
||||
<div class="stat-card-val skeleton" id="statCtCount">—</div>
|
||||
<div class="stat-card-sub" id="statCtSub">{{ t('loading') }}…</div>
|
||||
</div>
|
||||
<div class="stat-card-v2">
|
||||
@@ -87,7 +87,7 @@
|
||||
<div class="resource-card">
|
||||
<div class="resource-card-header">
|
||||
<span class="resource-card-title">{{ t('cpu_usage') }}</span>
|
||||
<span class="resource-pct-badge" id="cpuPct">—</span>
|
||||
<span class="resource-pct-badge skeleton" id="cpuPct">—</span>
|
||||
</div>
|
||||
<div class="resource-mini-chart">
|
||||
<canvas id="cpuMiniChart"></canvas>
|
||||
@@ -99,7 +99,7 @@
|
||||
<div class="resource-card">
|
||||
<div class="resource-card-header">
|
||||
<span class="resource-card-title">{{ t('ram_usage') }}</span>
|
||||
<span class="resource-pct-badge" id="ramPct">—</span>
|
||||
<span class="resource-pct-badge skeleton" id="ramPct">—</span>
|
||||
</div>
|
||||
<div class="resource-mini-chart">
|
||||
<canvas id="ramMiniChart"></canvas>
|
||||
@@ -111,7 +111,7 @@
|
||||
<div class="resource-card">
|
||||
<div class="resource-card-header">
|
||||
<span class="resource-card-title">{{ t('storage') }}</span>
|
||||
<span class="resource-pct-badge" id="diskPct">—</span>
|
||||
<span class="resource-pct-badge skeleton" id="diskPct">—</span>
|
||||
</div>
|
||||
<div class="resource-mini-chart">
|
||||
<canvas id="diskMiniChart"></canvas>
|
||||
@@ -397,9 +397,9 @@ async function _refreshNodeStats(onlineServers) {
|
||||
const cpuPctEl = document.getElementById('cpuPct');
|
||||
const ramPctEl = document.getElementById('ramPct');
|
||||
const diskPctEl = document.getElementById('diskPct');
|
||||
if (cpuPctEl) { cpuPctEl.textContent = avgCpu + '%'; setPctBadgeColor(cpuPctEl, avgCpu); document.getElementById('cpuBar').style.width = avgCpu + '%'; }
|
||||
if (ramPctEl) { ramPctEl.textContent = avgRam + '%'; setPctBadgeColor(ramPctEl, avgRam); document.getElementById('ramBar').style.width = avgRam + '%'; }
|
||||
if (diskPctEl) { diskPctEl.textContent = avgDisk + '%'; setPctBadgeColor(diskPctEl, avgDisk); document.getElementById('diskBar').style.width = avgDisk + '%'; }
|
||||
if (cpuPctEl) { cpuPctEl.classList.remove('skeleton'); cpuPctEl.textContent = avgCpu + '%'; setPctBadgeColor(cpuPctEl, avgCpu); document.getElementById('cpuBar').style.width = avgCpu + '%'; }
|
||||
if (ramPctEl) { ramPctEl.classList.remove('skeleton'); ramPctEl.textContent = avgRam + '%'; setPctBadgeColor(ramPctEl, avgRam); document.getElementById('ramBar').style.width = avgRam + '%'; }
|
||||
if (diskPctEl) { diskPctEl.classList.remove('skeleton'); diskPctEl.textContent = avgDisk + '%'; setPctBadgeColor(diskPctEl, avgDisk); document.getElementById('diskBar').style.width = avgDisk + '%'; }
|
||||
}
|
||||
|
||||
// Mini charts
|
||||
@@ -509,9 +509,9 @@ function renderDashboardData(data) {
|
||||
const vmSub = document.getElementById('statVmSub');
|
||||
const ctCount = document.getElementById('statCtCount');
|
||||
const ctSub = document.getElementById('statCtSub');
|
||||
if (vmCount) vmCount.textContent = totalVms;
|
||||
if (vmCount) { vmCount.classList.remove('skeleton'); vmCount.textContent = totalVms; }
|
||||
if (vmSub) vmSub.textContent = runningVms + ' ' + t('running').toLowerCase();
|
||||
if (ctCount) ctCount.textContent = totalCt;
|
||||
if (ctCount) { ctCount.classList.remove('skeleton'); ctCount.textContent = totalCt; }
|
||||
if (ctSub) ctSub.textContent = runningCt + ' ' + t('running').toLowerCase();
|
||||
|
||||
const tbody = document.getElementById('vmTableBody');
|
||||
@@ -524,7 +524,7 @@ function renderDashboardData(data) {
|
||||
});
|
||||
const shown = allVms.slice(0, 8);
|
||||
if (shown.length === 0) {
|
||||
tbody.innerHTML = `<tr><td colspan="5" style="text-align:center; color:var(--text-muted); padding:2rem 1.25rem;">${t('no_vms_found')}</td></tr>`;
|
||||
tbody.innerHTML = `<tr><td colspan="5"><div style="text-align:center;padding:3rem 1.25rem;color:var(--text-muted);"><i class="fa-solid fa-server" style="font-size:2rem;margin-bottom:.75rem;display:block;opacity:.3;"></i><div style="font-size:.875rem;">${t('no_vms_found')}</div></div></td></tr>`;
|
||||
} else {
|
||||
tbody.innerHTML = shown.map(vm => {
|
||||
const cpuPct = vm.cpu != null ? (vm.cpu * 100).toFixed(0) + '%' : '—';
|
||||
@@ -557,9 +557,9 @@ function renderDashboardData(data) {
|
||||
const cpuPctEl = document.getElementById('cpuPct');
|
||||
const ramPctEl = document.getElementById('ramPct');
|
||||
const diskPctEl = document.getElementById('diskPct');
|
||||
if (cpuPctEl) { cpuPctEl.textContent = avgCpu + '%'; setPctBadgeColor(cpuPctEl, avgCpu); document.getElementById('cpuBar').style.width = avgCpu + '%'; }
|
||||
if (ramPctEl) { ramPctEl.textContent = avgRam + '%'; setPctBadgeColor(ramPctEl, avgRam); document.getElementById('ramBar').style.width = avgRam + '%'; }
|
||||
if (diskPctEl) { diskPctEl.textContent = avgDisk + '%'; setPctBadgeColor(diskPctEl, avgDisk); document.getElementById('diskBar').style.width = avgDisk + '%'; }
|
||||
if (cpuPctEl) { cpuPctEl.classList.remove('skeleton'); cpuPctEl.textContent = avgCpu + '%'; setPctBadgeColor(cpuPctEl, avgCpu); document.getElementById('cpuBar').style.width = avgCpu + '%'; }
|
||||
if (ramPctEl) { ramPctEl.classList.remove('skeleton'); ramPctEl.textContent = avgRam + '%'; setPctBadgeColor(ramPctEl, avgRam); document.getElementById('ramBar').style.width = avgRam + '%'; }
|
||||
if (diskPctEl) { diskPctEl.classList.remove('skeleton'); diskPctEl.textContent = avgDisk + '%'; setPctBadgeColor(diskPctEl, avgDisk); document.getElementById('diskBar').style.width = avgDisk + '%'; }
|
||||
|
||||
// Mini charts from WS-provided RRD slices
|
||||
const cpuHistoryAll = [], ramHistoryAll = [], diskHistoryAll = [];
|
||||
@@ -716,7 +716,7 @@ async function openAlertsModal() {
|
||||
<i class="fa-solid fa-triangle-exclamation" style="color:var(--warning,#f59e0b);margin-right:.5rem;"></i>
|
||||
{{ t('alerts_label') }} — {{ t('last_24h') }}
|
||||
</h3>
|
||||
<button onclick="closeAlertsModal()" style="background:none;border:none;color:var(--text-muted);font-size:1.5rem;cursor:pointer;line-height:1;">×</button>
|
||||
<button onclick="closeAlertsModal()" aria-label="Закрыть" class="modal-close-btn">×</button>
|
||||
</div>
|
||||
<div id="alertsModalBody" style="overflow-y:auto;flex:1;min-height:80px;"></div>
|
||||
<div style="margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border, rgba(255,255,255,.06));text-align:right;">
|
||||
|
||||
@@ -132,7 +132,7 @@ function renderHistory(history) {
|
||||
const actionColors = {
|
||||
'allocate': '#22c55e',
|
||||
'release': '#ef4444',
|
||||
'reserve': '#4f46e5',
|
||||
'reserve': '#0ea5e9',
|
||||
'update': '#3b82f6',
|
||||
'create': '#22c55e',
|
||||
'delete': '#ef4444'
|
||||
|
||||
@@ -7,18 +7,20 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="theme-color" content="#0f172a">
|
||||
<meta name="theme-color" content="#f4f5f7">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap">
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
body {
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
||||
color: #e5e7eb;
|
||||
background: #f4f5f7;
|
||||
color: #1a1d23;
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available;
|
||||
display: flex;
|
||||
@@ -35,10 +37,11 @@
|
||||
padding: 1.5rem;
|
||||
}
|
||||
.login-card {
|
||||
background: #020617;
|
||||
border-radius: 1rem;
|
||||
padding: 2rem;
|
||||
border: 1px solid #1e293b;
|
||||
background: #ffffff;
|
||||
border-radius: 6px;
|
||||
padding: 2.25rem 2rem;
|
||||
border: 1px solid #dde1e9;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
}
|
||||
.login-header {
|
||||
text-align: center;
|
||||
@@ -46,72 +49,80 @@
|
||||
}
|
||||
.login-header h1 {
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-size: 1.75rem;
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: #1a1d23;
|
||||
}
|
||||
.login-header p {
|
||||
margin: 0;
|
||||
color: #9ca3af;
|
||||
color: #6b7280;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
color: #e5e7eb;
|
||||
margin-bottom: 0.375rem;
|
||||
color: #374151;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
background: #1e293b;
|
||||
border: 1px solid #334155;
|
||||
border-radius: 0.5rem;
|
||||
color: #e5e7eb;
|
||||
font-size: 16px; /* Предотвращает зум на iOS */
|
||||
transition: all 0.2s;
|
||||
padding: 0.625rem 0.875rem;
|
||||
background: #ffffff;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 4px;
|
||||
color: #1a1d23;
|
||||
font-size: 16px;
|
||||
font-family: inherit;
|
||||
transition: all 0.15s;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.form-group input::placeholder {
|
||||
color: #9ca3af;
|
||||
}
|
||||
.form-group input:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
|
||||
border-color: #0ea5e9;
|
||||
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
|
||||
}
|
||||
.btn {
|
||||
width: 100%;
|
||||
padding: 0.875rem 1rem;
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
padding: 0.75rem 1rem;
|
||||
background: #0ea5e9;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 1rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 600;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
min-height: 48px;
|
||||
transition: all 0.15s;
|
||||
min-height: 44px;
|
||||
touch-action: manipulation;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
.btn:hover {
|
||||
background: linear-gradient(135deg, #5a6fd6, #6a3f96);
|
||||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
||||
background: #0284c7;
|
||||
}
|
||||
.btn:active {
|
||||
background: #0369a1;
|
||||
}
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.error-message {
|
||||
background: var(--danger-light, #7f1d1d);
|
||||
border: 1px solid var(--danger, #991b1b);
|
||||
color: #fca5a5;
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fca5a5;
|
||||
color: #b91c1c;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.875rem;
|
||||
display: none;
|
||||
}
|
||||
.error-message.show {
|
||||
@@ -119,21 +130,22 @@
|
||||
}
|
||||
.loading {
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid #020617;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border: 2px solid rgba(255,255,255,0.4);
|
||||
border-radius: 50%;
|
||||
border-top-color: transparent;
|
||||
border-top-color: #fff;
|
||||
animation: spin 0.6s linear infinite;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 2rem;
|
||||
color: #6b7280;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 1.5rem;
|
||||
color: #9ca3af;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -508,9 +508,10 @@ input, select, textarea {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
input:focus, select:focus, textarea:focus {
|
||||
input:focus-visible, select:focus-visible, textarea:focus-visible {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
|
||||
}
|
||||
|
||||
small {
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
.tab-btn.active {
|
||||
color: var(--text-on-primary);
|
||||
background: var(--gradient-primary);
|
||||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
|
||||
box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
|
||||
}
|
||||
|
||||
.tab-btn i {
|
||||
@@ -628,12 +628,12 @@
|
||||
.settings-section .btn-primary {
|
||||
background: var(--gradient-primary);
|
||||
color: var(--text-on-primary);
|
||||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
||||
box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
|
||||
}
|
||||
|
||||
.settings-section .btn-primary:hover {
|
||||
filter: brightness(1.1);
|
||||
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
|
||||
box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
|
||||
}
|
||||
|
||||
.settings-section .btn-warning {
|
||||
@@ -999,7 +999,7 @@
|
||||
}
|
||||
|
||||
.notification-info {
|
||||
background: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
|
||||
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
|
||||
@@ -435,8 +435,8 @@ const TaskManager = (() => {
|
||||
['tabResultsBtn','tabLogBtn'].forEach(id => {
|
||||
const btn = document.getElementById(id);
|
||||
const isActive = btn.classList.contains('active');
|
||||
btn.style.color = isActive ? '#667eea' : 'var(--text-muted)';
|
||||
btn.style.borderBottom = isActive ? '2px solid #667eea' : '2px solid transparent';
|
||||
btn.style.color = isActive ? 'var(--primary)' : 'var(--text-muted)';
|
||||
btn.style.borderBottom = isActive ? '2px solid var(--primary)' : '2px solid transparent';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -46,9 +46,9 @@
|
||||
<div class="form-group">
|
||||
<label>Цвет</label>
|
||||
<div style="display:flex;align-items:center;gap:10px;">
|
||||
<input type="color" id="wsColor" value="#667eea" style="width:48px;height:36px;border:none;background:none;cursor:pointer;padding:0;">
|
||||
<input type="color" id="wsColor" value="#0ea5e9" style="width:48px;height:36px;border:none;background:none;cursor:pointer;padding:0;">
|
||||
<div class="ws-color-presets">
|
||||
<button class="ws-color-preset" style="background:#667eea;" onclick="document.getElementById('wsColor').value='#667eea'"></button>
|
||||
<button class="ws-color-preset" style="background:#0ea5e9;" onclick="document.getElementById('wsColor').value='#0ea5e9'"></button>
|
||||
<button class="ws-color-preset" style="background:#10b981;" onclick="document.getElementById('wsColor').value='#10b981'"></button>
|
||||
<button class="ws-color-preset" style="background:#f59e0b;" onclick="document.getElementById('wsColor').value='#f59e0b'"></button>
|
||||
<button class="ws-color-preset" style="background:#ef4444;" onclick="document.getElementById('wsColor').value='#ef4444'"></button>
|
||||
@@ -333,9 +333,9 @@ async function loadWorkspaces() {
|
||||
|
||||
grid.innerHTML = workspaces.map(ws => `
|
||||
<div class="ws-card" id="wsCard_${ws.id}">
|
||||
<div class="ws-card-accent" style="background:${ws.color || '#667eea'};"></div>
|
||||
<div class="ws-card-accent" style="background:${ws.color || '#0ea5e9'};"></div>
|
||||
<div class="ws-card-header">
|
||||
<span class="ws-card-dot" style="background:${ws.color || '#667eea'};"></span>
|
||||
<span class="ws-card-dot" style="background:${ws.color || '#0ea5e9'};"></span>
|
||||
<span class="ws-card-name">${escapeHtml(ws.name)}</span>
|
||||
${ws.is_default ? '<span class="ws-card-badge">Default</span>' : ''}
|
||||
</div>
|
||||
@@ -418,7 +418,7 @@ async function showCreateModal() {
|
||||
document.getElementById('wsModalTitle').textContent = 'Создать Workspace';
|
||||
document.getElementById('wsName').value = '';
|
||||
document.getElementById('wsDescription').value = '';
|
||||
document.getElementById('wsColor').value = '#667eea';
|
||||
document.getElementById('wsColor').value = '#0ea5e9';
|
||||
|
||||
await loadAssignLists();
|
||||
renderServerCheckboxes([]);
|
||||
@@ -441,7 +441,7 @@ async function showEditModal(id) {
|
||||
|
||||
document.getElementById('wsName').value = ws.name;
|
||||
document.getElementById('wsDescription').value = ws.description || '';
|
||||
document.getElementById('wsColor').value = ws.color || '#667eea';
|
||||
document.getElementById('wsColor').value = ws.color || '#0ea5e9';
|
||||
|
||||
await loadAssignLists();
|
||||
const selServerIds = (ws.servers || []).map(s => s.id);
|
||||
@@ -470,7 +470,7 @@ async function saveWorkspace() {
|
||||
return;
|
||||
}
|
||||
|
||||
const color = document.getElementById('wsColor').value || '#667eea';
|
||||
const color = document.getElementById('wsColor').value || '#0ea5e9';
|
||||
const description = document.getElementById('wsDescription').value.trim() || null;
|
||||
|
||||
const serverIds = [...document.querySelectorAll('#wsServersList input[type=checkbox]:checked')].map(el => parseInt(el.value));
|
||||
|
||||
Reference in New Issue
Block a user