mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-07-25 14:31:38 +02:00
v2.4.3
This commit is contained in:
@@ -9,6 +9,28 @@
|
||||
|
||||
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* Text colors */
|
||||
--text-primary: #333333;
|
||||
--text-secondary: #666666;
|
||||
--text-muted: #999999;
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9fa;
|
||||
--bg-hover: #e9ecef;
|
||||
--bg-light: lightblue;
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #ccc;
|
||||
--border-light: #dee2e6;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #007bff;
|
||||
--accent-hover: #0056b3;
|
||||
}
|
||||
|
||||
.tagcontainer {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
@@ -19,7 +41,7 @@
|
||||
height: 300px;
|
||||
overflow-y: auto;
|
||||
margin-right: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.tags-label {
|
||||
@@ -37,7 +59,7 @@
|
||||
}
|
||||
|
||||
.tags:hover {
|
||||
background-color: lightblue;
|
||||
background-color: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.tag-icon {
|
||||
|
||||
@@ -4,6 +4,40 @@
|
||||
|
||||
{% block header_scripts %}
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* Text colors */
|
||||
--text-primary: #2f3640;
|
||||
--text-secondary: #64748b;
|
||||
--text-muted: #8893a7;
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9ff;
|
||||
--bg-light: #f0f0ff;
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #e8e9ff;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #5b5fcf;
|
||||
--accent-hover: #4b4fbf;
|
||||
--accent-focus: rgba(91,95,207,0.1);
|
||||
--accent-shadow: rgba(91,95,207,0.3);
|
||||
|
||||
/* Status colors */
|
||||
--warning-bg: #fff3cd;
|
||||
--warning-border: #ffeaa7;
|
||||
--warning-color: #856404;
|
||||
--warning-accent: #f39c12;
|
||||
|
||||
/* Shadow colors */
|
||||
--shadow-light: rgba(0,0,0,0.08);
|
||||
|
||||
/* Neutral colors */
|
||||
--neutral-disabled: #94a3b8;
|
||||
}
|
||||
|
||||
/* Angular cloak to prevent flashing */
|
||||
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
|
||||
display: none !important;
|
||||
@@ -48,14 +82,14 @@
|
||||
border-radius: 12px;
|
||||
padding: 30px;
|
||||
margin-bottom: 25px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 2px 8px var(--shadow-light);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -68,13 +102,13 @@
|
||||
content: '';
|
||||
width: 4px;
|
||||
height: 24px;
|
||||
background: #5b5fcf;
|
||||
background: var(--accent-color);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #64748b;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
@@ -92,7 +126,7 @@
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
@@ -106,18 +140,18 @@
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
font-size: 14px;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
background: #f8f9ff;
|
||||
color: #2f3640;
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
outline: none;
|
||||
border-color: #5b5fcf;
|
||||
border-color: var(--accent-color);
|
||||
background: white;
|
||||
box-shadow: 0 0 0 3px rgba(91,95,207,0.1);
|
||||
box-shadow: 0 0 0 3px var(--accent-focus);
|
||||
}
|
||||
|
||||
.form-help {
|
||||
@@ -131,7 +165,7 @@
|
||||
|
||||
.form-help i {
|
||||
font-size: 13px;
|
||||
color: #5b5fcf;
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
@@ -142,7 +176,7 @@
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #5b5fcf;
|
||||
background: var(--accent-color);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 30px;
|
||||
@@ -159,13 +193,13 @@
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #4b4fbf;
|
||||
background: var(--accent-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(91,95,207,0.3);
|
||||
box-shadow: 0 5px 15px var(--accent-shadow);
|
||||
}
|
||||
|
||||
.btn-primary:disabled {
|
||||
background: #94a3b8;
|
||||
background: var(--neutral-disabled);
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
@@ -176,7 +210,7 @@
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border: 2px solid #ffffff;
|
||||
border: 2px solid var(--bg-primary);
|
||||
border-radius: 50%;
|
||||
border-top-color: transparent;
|
||||
animation: spin 0.8s linear infinite;
|
||||
@@ -188,8 +222,8 @@
|
||||
|
||||
/* Info Box */
|
||||
.info-box {
|
||||
background: #f0f0ff;
|
||||
border: 1px solid #e8e9ff;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 25px;
|
||||
@@ -198,7 +232,7 @@
|
||||
.info-box-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -206,25 +240,25 @@
|
||||
}
|
||||
|
||||
.info-box-title i {
|
||||
color: #5b5fcf;
|
||||
color: var(--accent-color);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.info-box-content {
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.info-box-content strong {
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Warning Box */
|
||||
.warning-box {
|
||||
background: #fff3cd;
|
||||
border: 1px solid #ffeaa7;
|
||||
background: var(--warning-bg);
|
||||
border: 1px solid var(--warning-border);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 25px;
|
||||
@@ -233,7 +267,7 @@
|
||||
.warning-box-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #856404;
|
||||
color: var(--warning-color);
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -241,13 +275,13 @@
|
||||
}
|
||||
|
||||
.warning-box-title i {
|
||||
color: #f39c12;
|
||||
color: var(--warning-accent);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.warning-box-content {
|
||||
font-size: 13px;
|
||||
color: #856404;
|
||||
color: var(--warning-color);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@@ -329,7 +363,7 @@
|
||||
.toggle-label span {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
@@ -345,7 +379,7 @@
|
||||
|
||||
.toggle-help i {
|
||||
font-size: 13px;
|
||||
color: #5b5fcf;
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
|
||||
@@ -4,6 +4,72 @@
|
||||
|
||||
{% block header_scripts %}
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* Text colors */
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #475569;
|
||||
--text-muted: #64748b;
|
||||
--text-on-gradient: rgba(255, 255, 255, 0.9);
|
||||
--text-terminal: #e2e8f0;
|
||||
--text-console: #10b981;
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9ff;
|
||||
--bg-light: #f3f4f6;
|
||||
--bg-hover: #f8f9ff;
|
||||
--bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #e8e9ff;
|
||||
--border-light: #f1f5f9;
|
||||
--border-terminal: #334155;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #667eea;
|
||||
--accent-hover: #5a67d8;
|
||||
--accent-bg: #f3e8ff;
|
||||
--accent-focus: rgba(102, 126, 234, 0.1);
|
||||
--accent-shadow: rgba(102, 126, 234, 0.3);
|
||||
|
||||
/* Status colors */
|
||||
--success-bg: #d1fae5;
|
||||
--success-color: #065f46;
|
||||
--success-border: #a7f3d0;
|
||||
--success-accent: #10b981;
|
||||
|
||||
--danger-bg: #fee2e2;
|
||||
--danger-color: #991b1b;
|
||||
--danger-border: #fecaca;
|
||||
--danger-accent: #ef4444;
|
||||
--danger-hover: #dc2626;
|
||||
|
||||
--warning-bg: #fef3c7;
|
||||
--warning-color: #92400e;
|
||||
--warning-border: #fde68a;
|
||||
|
||||
--info-bg: #dbeafe;
|
||||
--info-color: #1e40af;
|
||||
--info-border: #bfdbfe;
|
||||
|
||||
/* Shadow colors */
|
||||
--shadow-light: rgba(0,0,0,0.05);
|
||||
--shadow-medium: rgba(0,0,0,0.08);
|
||||
--shadow-color: rgba(0,0,0,0.1);
|
||||
|
||||
/* Console/Terminal colors */
|
||||
--console-bg: #1e293b;
|
||||
--console-text: #10b981;
|
||||
--console-border: #334155;
|
||||
--console-scrollbar: #64748b;
|
||||
--console-scrollbar-hover: #94a3b8;
|
||||
|
||||
/* Neutral colors */
|
||||
--neutral-bg: #64748b;
|
||||
--neutral-hover: #475569;
|
||||
--neutral-shadow: rgba(100, 116, 139, 0.3);
|
||||
}
|
||||
.modern-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
@@ -14,12 +80,12 @@
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
padding: 3rem 0;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
border-radius: 20px;
|
||||
animation: fadeInDown 0.5s ease-out;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.page-header::before {
|
||||
@@ -89,29 +155,29 @@
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 1.125rem;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
color: var(--text-on-gradient);
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.log-viewer-panel {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 1px 3px var(--shadow-light), 0 10px 40px var(--shadow-medium);
|
||||
border: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
animation: fadeInUp 0.5s ease-out;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
background: #1e293b;
|
||||
color: white;
|
||||
background: var(--console-bg, #1e293b);
|
||||
color: var(--bg-primary);
|
||||
padding: 1rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #334155;
|
||||
border-bottom: 1px solid var(--console-border);
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
@@ -120,18 +186,18 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
color: #e2e8f0;
|
||||
color: var(--text-terminal);
|
||||
}
|
||||
|
||||
.panel-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: #334155;
|
||||
background: var(--console-border);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.log-stats {
|
||||
@@ -145,18 +211,18 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
color: #94a3b8;
|
||||
color: var(--text-muted, #94a3b8);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
color: #e2e8f0;
|
||||
color: var(--text-terminal);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.log-controls {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-secondary);
|
||||
padding: 1rem 1.5rem;
|
||||
border-bottom: 1px solid #e8e9ff;
|
||||
border-bottom: 1px solid var(--border-color, #e8e9ff);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -178,7 +244,7 @@
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: 0.5rem 1rem 0.5rem 2.5rem;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
font-size: 0.875rem;
|
||||
transition: all 0.3s ease;
|
||||
@@ -186,8 +252,8 @@
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||
border-color: var(--accent-color, #667eea);
|
||||
box-shadow: 0 0 0 3px var(--accent-focus, rgba(102, 126, 234, 0.1));
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
@@ -195,12 +261,12 @@
|
||||
left: 0.75rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #94a3b8;
|
||||
color: var(--text-muted, #94a3b8);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.log-content {
|
||||
background: #1e293b;
|
||||
background: var(--console-bg, #1e293b);
|
||||
padding: 1.5rem;
|
||||
min-height: 600px;
|
||||
max-height: 700px;
|
||||
@@ -211,9 +277,9 @@
|
||||
.log-textarea {
|
||||
width: 100%;
|
||||
background: transparent;
|
||||
color: #10b981;
|
||||
color: var(--console-text, #10b981);
|
||||
font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
|
||||
font-size: 0.875rem;
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.6;
|
||||
border: none;
|
||||
outline: none;
|
||||
@@ -222,7 +288,7 @@
|
||||
}
|
||||
|
||||
.log-textarea::placeholder {
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.log-line-numbers {
|
||||
@@ -231,13 +297,13 @@
|
||||
top: 1.5rem;
|
||||
width: 50px;
|
||||
text-align: right;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
|
||||
font-size: 0.875rem;
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.6;
|
||||
user-select: none;
|
||||
padding-right: 1rem;
|
||||
border-right: 1px solid #334155;
|
||||
border-right: 1px solid var(--console-border);
|
||||
}
|
||||
|
||||
.log-content-wrapper {
|
||||
@@ -245,9 +311,9 @@
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-secondary);
|
||||
padding: 1.5rem;
|
||||
border-top: 1px solid #e8e9ff;
|
||||
border-top: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -268,43 +334,43 @@
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #667eea;
|
||||
color: white;
|
||||
background: var(--accent-color);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #5a67d8;
|
||||
background: var(--accent-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
||||
box-shadow: 0 4px 12px var(--accent-shadow);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: #ef4444;
|
||||
color: white;
|
||||
background: var(--danger-accent);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
background: #dc2626;
|
||||
background: var(--danger-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
|
||||
box-shadow: 0 4px 12px var(--danger-shadow, rgba(239, 68, 68, 0.3));
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: #64748b;
|
||||
color: white;
|
||||
background: var(--neutral-bg);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #475569;
|
||||
background: var(--neutral-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
|
||||
box-shadow: 0 4px 12px var(--neutral-shadow);
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #667eea;
|
||||
border: 2px solid var(--bg-light, #f3f3f3);
|
||||
border-top: 2px solid var(--accent-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
display: inline-block;
|
||||
@@ -326,15 +392,15 @@
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
border: 1px solid #a7f3d0;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
border: 1px solid var(--success-border);
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
border: 1px solid #fecaca;
|
||||
background: var(--danger-bg);
|
||||
color: var(--danger-color);
|
||||
border: 1px solid var(--danger-border);
|
||||
}
|
||||
|
||||
.alert-icon {
|
||||
@@ -344,12 +410,12 @@
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 4rem 2rem;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
font-size: 4rem;
|
||||
color: #94a3b8;
|
||||
color: var(--text-muted, #94a3b8);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
@@ -357,12 +423,12 @@
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
@@ -371,25 +437,25 @@
|
||||
}
|
||||
|
||||
.log-content::-webkit-scrollbar-track {
|
||||
background: #334155;
|
||||
background: var(--console-border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.log-content::-webkit-scrollbar-thumb {
|
||||
background: #64748b;
|
||||
background: var(--neutral-bg);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.log-content::-webkit-scrollbar-thumb:hover {
|
||||
background: #94a3b8;
|
||||
background: var(--console-scrollbar-hover);
|
||||
}
|
||||
|
||||
/* Log Level Colors */
|
||||
.log-error { color: #ef4444; }
|
||||
.log-warning { color: #f59e0b; }
|
||||
.log-info { color: #3b82f6; }
|
||||
.log-debug { color: #8b5cf6; }
|
||||
.log-success { color: #10b981; }
|
||||
.log-error { color: var(--danger-accent); }
|
||||
.log-warning { color: var(--warning-color); }
|
||||
.log-info { color: var(--info-color); }
|
||||
.log-debug { color: var(--debug-color, #8b5cf6); }
|
||||
.log-success { color: var(--success-accent); }
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
@@ -466,7 +532,7 @@
|
||||
<span class="stat-value">{% trans "Last 50 lines" %}</span>
|
||||
</div>
|
||||
<div ng-hide="logFileLoading" class="stat-item">
|
||||
<i class="fas fa-check-circle" style="color: #10b981;"></i>
|
||||
<i class="fas fa-check-circle" style="color: var(--success-accent, #10b981);"></i>
|
||||
<span>{% trans "Live" %}</span>
|
||||
</div>
|
||||
<div ng-show="!logFileLoading" class="loading-spinner"></div>
|
||||
|
||||
@@ -8,6 +8,66 @@
|
||||
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
||||
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* LiteSpeed-specific gradient colors */
|
||||
--ls-gradient-start: #667eea;
|
||||
--ls-gradient-end: #764ba2;
|
||||
|
||||
/* Text colors */
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #475569;
|
||||
--text-muted: #64748b;
|
||||
--text-on-gradient: rgba(255, 255, 255, 0.9);
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9ff;
|
||||
--bg-light: #f3f4f6;
|
||||
--bg-hover: #f8f9ff;
|
||||
--bg-gradient: linear-gradient(135deg, var(--ls-gradient-start) 0%, var(--ls-gradient-end) 100%);
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #e8e9ff;
|
||||
--border-light: #f1f5f9;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #667eea;
|
||||
--accent-hover: #764ba2;
|
||||
--accent-bg: #f3e8ff;
|
||||
--accent-focus: rgba(102, 126, 234, 0.1);
|
||||
--accent-shadow: rgba(102, 126, 234, 0.3);
|
||||
|
||||
/* Status colors */
|
||||
--success-bg: #d1fae5;
|
||||
--success-color: #065f46;
|
||||
--success-border: #a7f3d0;
|
||||
--success-accent: #4ade80;
|
||||
--success-dark: #10b981;
|
||||
|
||||
--danger-bg: #fee2e2;
|
||||
--danger-color: #991b1b;
|
||||
--danger-border: #fecaca;
|
||||
--danger-accent: #dc2626;
|
||||
--danger-hover: #b91c1c;
|
||||
|
||||
--warning-bg: #fef3c7;
|
||||
--warning-color: #92400e;
|
||||
--warning-border: #fde68a;
|
||||
|
||||
--info-bg: #dbeafe;
|
||||
--info-color: #1e40af;
|
||||
--info-border: #bfdbfe;
|
||||
|
||||
/* Shadow colors */
|
||||
--shadow-light: rgba(0,0,0,0.05);
|
||||
--shadow-medium: rgba(0,0,0,0.08);
|
||||
--shadow-color: rgba(0,0,0,0.1);
|
||||
|
||||
/* Console colors */
|
||||
--console-bg: #1e293b;
|
||||
--console-text: #10b981;
|
||||
}
|
||||
.modern-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
@@ -18,12 +78,12 @@
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
padding: 3rem 0;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
border-radius: 20px;
|
||||
animation: fadeInDown 0.5s ease-out;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.page-header::before {
|
||||
@@ -66,7 +126,7 @@
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 1.125rem;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
color: var(--text-on-gradient);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -86,7 +146,7 @@
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: #4ade80;
|
||||
background: var(--success-accent);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
@@ -98,10 +158,10 @@
|
||||
}
|
||||
|
||||
.info-card {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 1px 3px var(--shadow-light), 0 10px 40px var(--shadow-medium);
|
||||
border: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
transition: all 0.3s ease;
|
||||
animation: fadeInUp 0.5s ease-out;
|
||||
@@ -109,12 +169,12 @@
|
||||
|
||||
.info-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 20px 60px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 4px 6px var(--shadow-light), 0 20px 60px var(--shadow-color);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
background: var(--bg-gradient);
|
||||
color: var(--bg-primary);
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -152,24 +212,24 @@
|
||||
padding: 1rem;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
border-bottom: 2px solid #e8e9ff;
|
||||
border-bottom: 2px solid var(--border-color);
|
||||
}
|
||||
|
||||
.process-table td {
|
||||
padding: 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #1e293b;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
color: var(--text-primary);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.process-id {
|
||||
font-family: 'Monaco', 'Consolas', monospace;
|
||||
font-weight: 600;
|
||||
color: #667eea;
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.process-badge {
|
||||
@@ -181,18 +241,18 @@
|
||||
}
|
||||
|
||||
.badge-main {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
||||
.badge-worker {
|
||||
background: #dbeafe;
|
||||
color: #1e40af;
|
||||
background: var(--info-bg);
|
||||
color: var(--info-color);
|
||||
}
|
||||
|
||||
.badge-lscgid {
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
background: var(--warning-bg);
|
||||
color: var(--warning-color);
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
@@ -220,18 +280,18 @@
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #764ba2;
|
||||
background: var(--accent-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
||||
box-shadow: 0 4px 12px var(--accent-shadow);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: #dc2626;
|
||||
background: var(--danger-accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
background: #b91c1c;
|
||||
background: var(--danger-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
|
||||
}
|
||||
@@ -243,7 +303,7 @@
|
||||
}
|
||||
|
||||
.version-info {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
@@ -252,7 +312,7 @@
|
||||
.version-header {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -266,19 +326,19 @@
|
||||
}
|
||||
|
||||
.module-item {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
font-size: 0.875rem;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.module-item:hover {
|
||||
background: #667eea;
|
||||
color: white;
|
||||
border-color: #667eea;
|
||||
border-color: var(--accent-color);
|
||||
}
|
||||
|
||||
.alert {
|
||||
@@ -307,38 +367,38 @@
|
||||
|
||||
.alert-message {
|
||||
font-size: 0.875rem;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: #d1fae5;
|
||||
border: 1px solid #a7f3d0;
|
||||
color: #065f46;
|
||||
background: var(--success-bg);
|
||||
border: 1px solid var(--success-border);
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
||||
.alert-error {
|
||||
background: #fee2e2;
|
||||
border: 1px solid #fecaca;
|
||||
color: #991b1b;
|
||||
background: var(--danger-bg);
|
||||
border: 1px solid var(--danger-border);
|
||||
color: var(--danger-color);
|
||||
}
|
||||
|
||||
.alert-warning {
|
||||
background: #fef3c7;
|
||||
border: 1px solid #fde68a;
|
||||
color: #92400e;
|
||||
background: var(--warning-bg);
|
||||
border: 1px solid var(--warning-border);
|
||||
color: var(--warning-color);
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background: #dbeafe;
|
||||
border: 1px solid #bfdbfe;
|
||||
color: #1e40af;
|
||||
background: var(--info-bg);
|
||||
border: 1px solid var(--info-border);
|
||||
color: var(--info-color);
|
||||
}
|
||||
|
||||
.license-panel {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 1px 3px var(--shadow-light), 0 10px 40px var(--shadow-medium);
|
||||
border: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
animation: fadeInUp 0.5s ease-out 0.2s;
|
||||
animation-fill-mode: both;
|
||||
@@ -361,26 +421,26 @@
|
||||
}
|
||||
|
||||
.license-option:hover {
|
||||
border-color: #667eea;
|
||||
background: #f3e8ff;
|
||||
border-color: var(--accent-color);
|
||||
background: var(--accent-bg);
|
||||
}
|
||||
|
||||
.license-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background: #f3e8ff;
|
||||
background: var(--accent-bg);
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 1rem;
|
||||
color: #667eea;
|
||||
color: var(--accent-color);
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.license-label {
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.form-group {
|
||||
@@ -390,7 +450,7 @@
|
||||
.form-label {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
@@ -398,24 +458,24 @@
|
||||
.form-control {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
font-size: 0.875rem;
|
||||
transition: all 0.3s ease;
|
||||
background: #fff;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||
border-color: var(--accent-color);
|
||||
box-shadow: 0 0 0 3px var(--accent-focus);
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #667eea;
|
||||
border-top: 2px solid var(--accent-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
display: inline-block;
|
||||
@@ -423,8 +483,8 @@
|
||||
}
|
||||
|
||||
.console-output {
|
||||
background: #1e293b;
|
||||
color: #10b981;
|
||||
background: var(--console-bg);
|
||||
color: var(--console-text);
|
||||
font-family: 'Monaco', 'Consolas', monospace;
|
||||
font-size: 0.875rem;
|
||||
padding: 1.5rem;
|
||||
@@ -643,7 +703,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 style="font-size: 0.875rem; font-weight: 600; color: #475569; margin: 1.5rem 0 1rem 0; text-transform: uppercase; letter-spacing: 0.05em;">
|
||||
<h4 style="font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin: 1.5rem 0 1rem 0; text-transform: uppercase; letter-spacing: 0.05em;">
|
||||
{{ modules }}
|
||||
</h4>
|
||||
<div class="module-list">
|
||||
@@ -779,7 +839,7 @@
|
||||
<div class="alert alert-warning">
|
||||
<i class="fas fa-exclamation-triangle alert-icon"></i>
|
||||
<div class="alert-content">
|
||||
<div class="alert-title" style="color: #dc2626;">{% trans "Important Warning" %}</div>
|
||||
<div class="alert-title" style="color: var(--danger-accent);">{% trans "Important Warning" %}</div>
|
||||
<div class="alert-message">
|
||||
{% trans "You cannot revert back to OpenLiteSpeed if you choose not to purchase a LiteSpeed Enterprise license after the 15 day trial period. We recommend you test the Enterprise trial on a separate server." %}
|
||||
</div>
|
||||
|
||||
@@ -8,6 +8,62 @@
|
||||
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
||||
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* Text colors */
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #475569;
|
||||
--text-muted: #64748b;
|
||||
--text-on-gradient: rgba(255, 255, 255, 0.9);
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9ff;
|
||||
--bg-light: #f3f4f6;
|
||||
--bg-hover: #f8f9ff;
|
||||
--bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #e8e9ff;
|
||||
--border-light: #f1f5f9;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #667eea;
|
||||
--accent-hover: #764ba2;
|
||||
--accent-bg: #f3e8ff;
|
||||
--accent-focus: rgba(102, 126, 234, 0.1);
|
||||
--accent-shadow: rgba(102, 126, 234, 0.3);
|
||||
|
||||
/* Status colors */
|
||||
--success-bg: #d1fae5;
|
||||
--success-color: #065f46;
|
||||
--success-border: #a7f3d0;
|
||||
--success-accent: #10b981;
|
||||
--success-hover: #059669;
|
||||
|
||||
--danger-bg: #fee2e2;
|
||||
--danger-color: #991b1b;
|
||||
--danger-border: #fecaca;
|
||||
--danger-accent: #dc2626;
|
||||
--danger-hover: #b91c1c;
|
||||
|
||||
--warning-bg: #fef3c7;
|
||||
--warning-color: #92400e;
|
||||
--warning-border: #fde68a;
|
||||
|
||||
--info-bg: #dbeafe;
|
||||
--info-color: #1e40af;
|
||||
--info-border: #bfdbfe;
|
||||
|
||||
/* Shadow colors */
|
||||
--shadow-light: rgba(0,0,0,0.05);
|
||||
--shadow-medium: rgba(0,0,0,0.08);
|
||||
--shadow-color: rgba(0,0,0,0.1);
|
||||
|
||||
/* Console colors */
|
||||
--console-bg: #1e293b;
|
||||
--console-text: #10b981;
|
||||
}
|
||||
.modern-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
@@ -18,12 +74,12 @@
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
padding: 3rem 0;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
border-radius: 20px;
|
||||
animation: fadeInDown 0.5s ease-out;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.page-header::before {
|
||||
@@ -66,7 +122,7 @@
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 1.125rem;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
color: var(--text-on-gradient);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -95,18 +151,18 @@
|
||||
}
|
||||
|
||||
.tabs-container {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 1px 3px var(--shadow-light), 0 10px 40px var(--shadow-medium);
|
||||
border: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
animation: fadeInUp 0.5s ease-out;
|
||||
}
|
||||
|
||||
.modern-tabs {
|
||||
display: flex;
|
||||
background: #f8f9ff;
|
||||
border-bottom: 1px solid #e8e9ff;
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@@ -116,7 +172,7 @@
|
||||
border: none;
|
||||
background: none;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
transition: all 0.3s ease;
|
||||
@@ -126,13 +182,13 @@
|
||||
}
|
||||
|
||||
.tab-item:hover {
|
||||
color: #667eea;
|
||||
color: var(--accent-color);
|
||||
background: rgba(102, 126, 234, 0.05);
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
color: #667eea;
|
||||
background: white;
|
||||
color: var(--accent-color);
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.tab-item.active::after {
|
||||
@@ -142,7 +198,7 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
@@ -171,7 +227,7 @@
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
font-size: 0.875rem;
|
||||
transition: all 0.3s ease;
|
||||
@@ -179,8 +235,8 @@
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||
border-color: var(--accent-color);
|
||||
box-shadow: 0 0 0 3px var(--accent-focus);
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
@@ -188,7 +244,7 @@
|
||||
left: 0.75rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #94a3b8;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.control-group {
|
||||
@@ -199,10 +255,10 @@
|
||||
|
||||
.select-control {
|
||||
padding: 0.75rem 2.5rem 0.75rem 1rem;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
font-size: 0.875rem;
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
||||
background-position: right 0.5rem center;
|
||||
@@ -230,24 +286,24 @@
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #764ba2;
|
||||
background: var(--accent-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
||||
box-shadow: 0 4px 12px var(--accent-shadow);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: #10b981;
|
||||
background: var(--success-accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-success:hover {
|
||||
background: #059669;
|
||||
background: var(--success-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
background: #3b82f6;
|
||||
background: var(--info-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
@@ -258,24 +314,24 @@
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: white;
|
||||
color: #64748b;
|
||||
border: 1px solid #e8e9ff;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-muted);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-secondary);
|
||||
border-color: #cbd5e1;
|
||||
}
|
||||
|
||||
.package-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.package-table thead {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-secondary);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
@@ -285,18 +341,18 @@
|
||||
padding: 1rem;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
border-bottom: 2px solid #e8e9ff;
|
||||
border-bottom: 2px solid var(--border-color);
|
||||
}
|
||||
|
||||
.package-table td {
|
||||
padding: 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #1e293b;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
color: var(--text-primary);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.package-table tbody tr {
|
||||
@@ -304,12 +360,12 @@
|
||||
}
|
||||
|
||||
.package-table tbody tr:hover {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.package-name {
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
color: var(--text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -320,7 +376,7 @@
|
||||
padding: 0.125rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
background: #f3e8ff;
|
||||
color: #667eea;
|
||||
color: var(--accent-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -334,8 +390,8 @@
|
||||
}
|
||||
|
||||
.upgrade-badge {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
@@ -400,7 +456,7 @@
|
||||
|
||||
.pagination-info {
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.pagination-controls {
|
||||
@@ -411,7 +467,7 @@
|
||||
|
||||
.page-select {
|
||||
padding: 0.5rem 1rem;
|
||||
border: 1px solid #e8e9ff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
@@ -432,7 +488,7 @@
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
max-width: 800px;
|
||||
width: 90%;
|
||||
@@ -443,8 +499,8 @@
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
background: var(--bg-gradient);
|
||||
color: var(--bg-primary);
|
||||
padding: 1.5rem 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -499,8 +555,8 @@
|
||||
}
|
||||
|
||||
.detail-output {
|
||||
background: #f8f9ff;
|
||||
border: 1px solid #e8e9ff;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
padding: 1.5rem;
|
||||
font-family: 'Monaco', 'Consolas', monospace;
|
||||
@@ -513,7 +569,7 @@
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 4rem 2rem;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
@@ -526,7 +582,7 @@
|
||||
justify-content: center;
|
||||
margin: 0 auto 1rem;
|
||||
font-size: 2rem;
|
||||
color: #94a3b8;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.alert {
|
||||
@@ -541,8 +597,8 @@
|
||||
|
||||
.alert-info {
|
||||
background: #dbeafe;
|
||||
border: 1px solid #bfdbfe;
|
||||
color: #1e40af;
|
||||
border: 1px solid var(--info-border);
|
||||
color: var(--info-color);
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
|
||||
@@ -4,6 +4,61 @@
|
||||
|
||||
{% block header_scripts %}
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* Text colors */
|
||||
--text-primary: #2f3640;
|
||||
--text-secondary: #64748b;
|
||||
--text-muted: #8893a7;
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9ff;
|
||||
--bg-light: #f3f4f6;
|
||||
--bg-hover: #f8f9ff;
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #e8e9ff;
|
||||
--border-light: #f1f5f9;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #5856d6;
|
||||
--accent-hover: #4b4fbf;
|
||||
--accent-bg: #f3e8ff;
|
||||
--accent-focus: rgba(88, 86, 214, 0.1);
|
||||
--accent-shadow: rgba(88, 86, 214, 0.3);
|
||||
|
||||
/* Status colors */
|
||||
--success-bg: #d1fae5;
|
||||
--success-color: #065f46;
|
||||
--success-border: #a7f3d0;
|
||||
--success-accent: #10b981;
|
||||
--success-hover: #059669;
|
||||
|
||||
--danger-bg: #fee2e2;
|
||||
--danger-color: #991b1b;
|
||||
--danger-border: #fecaca;
|
||||
--danger-accent: #ef4444;
|
||||
|
||||
--warning-bg: #fef3c7;
|
||||
--warning-color: #92400e;
|
||||
--warning-accent: #f59e0b;
|
||||
--warning-hover: #d97706;
|
||||
|
||||
--info-bg: #dbeafe;
|
||||
--info-color: #1e40af;
|
||||
--info-border: #bfdbfe;
|
||||
|
||||
/* Shadow colors */
|
||||
--shadow-light: rgba(0,0,0,0.08);
|
||||
--shadow-medium: rgba(0,0,0,0.1);
|
||||
|
||||
/* Neutral colors */
|
||||
--neutral-bg: #6b7280;
|
||||
--neutral-hover: #4b5563;
|
||||
--neutral-shadow: rgba(107, 114, 128, 0.3);
|
||||
}
|
||||
|
||||
/* Services Status Specific Styles */
|
||||
.services-wrapper {
|
||||
background: transparent;
|
||||
@@ -17,18 +72,18 @@
|
||||
|
||||
/* Page Header */
|
||||
.page-header {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 12px;
|
||||
padding: 25px;
|
||||
margin-bottom: 25px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 2px 8px var(--shadow-light);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 10px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -45,7 +100,7 @@
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
box-shadow: 0 4px 12px rgba(88,86,214,0.3);
|
||||
box-shadow: 0 4px 12px var(--accent-shadow);
|
||||
}
|
||||
|
||||
.page-header p {
|
||||
@@ -56,18 +111,18 @@
|
||||
|
||||
/* Content Section */
|
||||
.content-section {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 12px;
|
||||
padding: 25px;
|
||||
margin-bottom: 25px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 2px 8px var(--shadow-light);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -90,8 +145,8 @@
|
||||
}
|
||||
|
||||
.service-card {
|
||||
background: white;
|
||||
border: 1px solid #e8e9ff;
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 12px;
|
||||
padding: 25px;
|
||||
transition: all 0.3s ease;
|
||||
@@ -101,16 +156,16 @@
|
||||
|
||||
.service-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.1);
|
||||
border-color: #5856d6;
|
||||
box-shadow: 0 8px 24px var(--shadow-medium);
|
||||
border-color: var(--accent-color);
|
||||
}
|
||||
|
||||
.service-card.running {
|
||||
border-top: 4px solid #10b981;
|
||||
border-top: 4px solid var(--success-accent);
|
||||
}
|
||||
|
||||
.service-card.stopped {
|
||||
border-top: 4px solid #ef4444;
|
||||
border-top: 4px solid var(--danger-accent);
|
||||
}
|
||||
|
||||
.service-icon {
|
||||
@@ -139,7 +194,7 @@
|
||||
.service-name {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: #2f3640;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
@@ -154,22 +209,22 @@
|
||||
}
|
||||
|
||||
.service-status.running {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
||||
.service-status.running i {
|
||||
color: #10b981;
|
||||
color: var(--success-accent);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
.service-status.stopped {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
background: var(--danger-bg);
|
||||
color: var(--danger-color);
|
||||
}
|
||||
|
||||
.service-status.stopped i {
|
||||
color: #ef4444;
|
||||
color: var(--danger-accent);
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
@@ -191,7 +246,7 @@
|
||||
}
|
||||
|
||||
.service-stats strong {
|
||||
color: #5856d6;
|
||||
color: var(--accent-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -220,36 +275,36 @@
|
||||
}
|
||||
|
||||
.action-btn.start {
|
||||
background: #10b981;
|
||||
background: var(--success-accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.action-btn.start:hover:not(:disabled) {
|
||||
background: #059669;
|
||||
background: var(--success-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(16,185,129,0.3);
|
||||
}
|
||||
|
||||
.action-btn.stop {
|
||||
background: #f59e0b;
|
||||
background: var(--warning-accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.action-btn.stop:hover:not(:disabled) {
|
||||
background: #d97706;
|
||||
background: var(--warning-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(245,158,11,0.3);
|
||||
}
|
||||
|
||||
.action-btn.restart {
|
||||
background: #6b7280;
|
||||
background: var(--neutral-bg);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.action-btn.restart:hover:not(:disabled) {
|
||||
background: #4b5563;
|
||||
background: var(--neutral-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(107,114,128,0.3);
|
||||
box-shadow: 0 4px 12px var(--neutral-shadow);
|
||||
}
|
||||
|
||||
/* Alert Messages */
|
||||
@@ -273,31 +328,31 @@
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
border: 1px solid #a7f3d0;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
border: 1px solid var(--success-border);
|
||||
}
|
||||
|
||||
.alert-success .alert-icon {
|
||||
color: #10b981;
|
||||
color: var(--success-accent);
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
border: 1px solid #fecaca;
|
||||
background: var(--danger-bg);
|
||||
color: var(--danger-color);
|
||||
border: 1px solid var(--danger-border);
|
||||
}
|
||||
|
||||
.alert-danger .alert-icon {
|
||||
color: #ef4444;
|
||||
color: var(--danger-accent);
|
||||
}
|
||||
|
||||
/* Loading Spinner */
|
||||
.loading-spinner {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 3px solid #e8e9ff;
|
||||
border-top-color: #5856d6;
|
||||
border: 3px solid var(--border-color);
|
||||
border-top-color: var(--accent-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
display: inline-block;
|
||||
@@ -335,7 +390,7 @@
|
||||
.overview-value {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #5856d6;
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
|
||||
@@ -8,6 +8,62 @@
|
||||
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
||||
|
||||
<style>
|
||||
/* CSS Variables for Dark Mode Support */
|
||||
:root {
|
||||
/* Text colors */
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #475569;
|
||||
--text-muted: #64748b;
|
||||
--text-on-gradient: rgba(255, 255, 255, 0.9);
|
||||
|
||||
/* Background colors */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9ff;
|
||||
--bg-light: #f3f4f6;
|
||||
--bg-hover: #f8f9ff;
|
||||
--bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
|
||||
/* Border colors */
|
||||
--border-color: #e8e9ff;
|
||||
--border-light: #f1f5f9;
|
||||
|
||||
/* Accent colors */
|
||||
--accent-color: #667eea;
|
||||
--accent-hover: #764ba2;
|
||||
--accent-bg: #f3e8ff;
|
||||
--accent-focus: rgba(102, 126, 234, 0.1);
|
||||
--accent-shadow: rgba(102, 126, 234, 0.3);
|
||||
|
||||
/* Status colors */
|
||||
--success-bg: #d1fae5;
|
||||
--success-color: #065f46;
|
||||
--success-border: #a7f3d0;
|
||||
--success-accent: #4ade80;
|
||||
--success-dark: #10b981;
|
||||
|
||||
--danger-bg: #fee2e2;
|
||||
--danger-color: #991b1b;
|
||||
--danger-border: #fecaca;
|
||||
--danger-accent: #dc2626;
|
||||
--danger-hover: #b91c1c;
|
||||
|
||||
--warning-bg: #fef3c7;
|
||||
--warning-color: #92400e;
|
||||
--warning-border: #fde68a;
|
||||
|
||||
--info-bg: #dbeafe;
|
||||
--info-color: #1e40af;
|
||||
--info-border: #bfdbfe;
|
||||
|
||||
/* Shadow colors */
|
||||
--shadow-light: rgba(0,0,0,0.05);
|
||||
--shadow-medium: rgba(0,0,0,0.08);
|
||||
--shadow-color: rgba(0,0,0,0.1);
|
||||
|
||||
/* Console colors */
|
||||
--console-bg: #1e293b;
|
||||
--console-text: #10b981;
|
||||
}
|
||||
.modern-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
@@ -18,12 +74,12 @@
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
padding: 3rem 0;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
border-radius: 20px;
|
||||
animation: fadeInDown 0.5s ease-out;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.page-header::before {
|
||||
@@ -66,7 +122,7 @@
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 1.125rem;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
color: var(--text-on-gradient);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -85,7 +141,7 @@
|
||||
.refresh-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: #4ade80;
|
||||
background: var(--success-accent);
|
||||
border-radius: 50%;
|
||||
animation: pulse 1.5s infinite;
|
||||
}
|
||||
@@ -98,10 +154,10 @@
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 1px 3px var(--shadow-light), 0 10px 40px var(--shadow-medium);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 1.5rem;
|
||||
transition: all 0.3s ease;
|
||||
animation: fadeInUp 0.5s ease-out;
|
||||
@@ -111,7 +167,7 @@
|
||||
|
||||
.stat-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 20px 60px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 4px 6px var(--shadow-light), 0 20px 60px var(--shadow-color);
|
||||
}
|
||||
|
||||
.stat-card::before {
|
||||
@@ -121,7 +177,7 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
}
|
||||
|
||||
.stat-header {
|
||||
@@ -133,7 +189,7 @@
|
||||
|
||||
.stat-title {
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -143,12 +199,12 @@
|
||||
.stat-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: #f3e8ff;
|
||||
background: var(--accent-bg);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #667eea;
|
||||
color: var(--accent-color);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@@ -167,7 +223,7 @@
|
||||
.stat-value {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
@@ -176,18 +232,18 @@
|
||||
}
|
||||
|
||||
.processes-panel {
|
||||
background: white;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
||||
border: 1px solid #e8e9ff;
|
||||
box-shadow: 0 1px 3px var(--shadow-light), 0 10px 40px var(--shadow-medium);
|
||||
border: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
animation: fadeInUp 0.5s ease-out 0.2s;
|
||||
animation-fill-mode: both;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
background: var(--bg-gradient);
|
||||
color: var(--bg-primary);
|
||||
padding: 1.5rem 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -250,7 +306,7 @@
|
||||
.modern-table thead {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-hover);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
@@ -258,18 +314,18 @@
|
||||
padding: 1rem;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
border-bottom: 1px solid #e8e9ff;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.modern-table td {
|
||||
padding: 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #1e293b;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
color: var(--text-primary);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.modern-table tbody tr {
|
||||
@@ -277,7 +333,7 @@
|
||||
}
|
||||
|
||||
.modern-table tbody tr:hover {
|
||||
background: #f8f9ff;
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.process-user {
|
||||
@@ -289,14 +345,14 @@
|
||||
.user-avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: #e8e9ff;
|
||||
background: var(--border-color);
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #667eea;
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.process-state {
|
||||
@@ -308,23 +364,23 @@
|
||||
}
|
||||
|
||||
.state-running {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
||||
.state-sleeping {
|
||||
background: #dbeafe;
|
||||
color: #1e40af;
|
||||
background: var(--info-bg);
|
||||
color: var(--info-color);
|
||||
}
|
||||
|
||||
.state-stopped {
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
background: var(--warning-bg);
|
||||
color: var(--warning-color);
|
||||
}
|
||||
|
||||
.state-zombie {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
background: var(--danger-bg);
|
||||
color: var(--danger-color);
|
||||
}
|
||||
|
||||
.cpu-usage {
|
||||
@@ -336,7 +392,7 @@
|
||||
.usage-bar {
|
||||
width: 60px;
|
||||
height: 6px;
|
||||
background: #e5e7eb;
|
||||
background: var(--bg-light);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
@@ -344,7 +400,7 @@
|
||||
|
||||
.usage-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
||||
background: var(--bg-gradient);
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
@@ -363,7 +419,7 @@
|
||||
.kill-button {
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
background: #dc2626;
|
||||
background: var(--danger-accent);
|
||||
color: white;
|
||||
border: none;
|
||||
font-size: 0.75rem;
|
||||
@@ -376,7 +432,7 @@
|
||||
}
|
||||
|
||||
.kill-button:hover {
|
||||
background: #b91c1c;
|
||||
background: var(--danger-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
|
||||
}
|
||||
@@ -398,7 +454,7 @@
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid #f3f3f3;
|
||||
border-top: 3px solid #667eea;
|
||||
border-top: 3px solid var(--accent-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@@ -414,18 +470,18 @@
|
||||
}
|
||||
|
||||
.metric-high {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
background: var(--danger-bg);
|
||||
color: var(--danger-color);
|
||||
}
|
||||
|
||||
.metric-medium {
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
background: var(--warning-bg);
|
||||
color: var(--warning-color);
|
||||
}
|
||||
|
||||
.metric-low {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
background: var(--success-bg);
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
@@ -537,7 +593,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e8e9ff;">
|
||||
<div style="font-size: 0.75rem; color: #64748b;">
|
||||
<div style="font-size: 0.75rem; color: var(--text-muted);">
|
||||
<strong>{% trans "Model:" %}</strong> {$ modelName || '-' $}<br>
|
||||
<strong>{% trans "Cache:" %}</strong> {$ cacheSize || '-' $}
|
||||
</div>
|
||||
@@ -560,15 +616,15 @@
|
||||
<span class="stat-label">{% trans "Total" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #10b981;">{$ runningProcesses || '0' $}</span>
|
||||
<span class="stat-value" style="color: var(--success-dark);">{$ runningProcesses || '0' $}</span>
|
||||
<span class="stat-label">{% trans "Running" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #3b82f6;">{$ sleepingProcesses || '0' $}</span>
|
||||
<span class="stat-value" style="color: var(--info-color);">{$ sleepingProcesses || '0' $}</span>
|
||||
<span class="stat-label">{% trans "Sleeping" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #ef4444;">
|
||||
<span class="stat-value" style="color: var(--danger-accent);">
|
||||
<span ng-if="zombieProcesses > 0">{$ zombieProcesses $}</span>
|
||||
<span ng-if="!zombieProcesses || zombieProcesses == 0">0</span>
|
||||
</span>
|
||||
@@ -623,11 +679,11 @@
|
||||
<span class="stat-label">{% trans "Total" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #10b981;">{$ freeMemory || '-' $}</span>
|
||||
<span class="stat-value" style="color: var(--success-dark);">{$ freeMemory || '-' $}</span>
|
||||
<span class="stat-label">{% trans "Free" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #ef4444;">{$ usedMemory || '-' $}</span>
|
||||
<span class="stat-value" style="color: var(--danger-accent);">{$ usedMemory || '-' $}</span>
|
||||
<span class="stat-label">{% trans "Used" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
@@ -653,11 +709,11 @@
|
||||
<span class="stat-label">{% trans "Total" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #10b981;">{$ swapFreeMemory || '-' $}</span>
|
||||
<span class="stat-value" style="color: var(--success-dark);">{$ swapFreeMemory || '-' $}</span>
|
||||
<span class="stat-label">{% trans "Free" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value" style="color: #ef4444;">{$ swapUsedMemory || '-' $}</span>
|
||||
<span class="stat-value" style="color: var(--danger-accent);">{$ swapUsedMemory || '-' $}</span>
|
||||
<span class="stat-label">{% trans "Used" %}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
@@ -730,7 +786,7 @@
|
||||
<tbody>
|
||||
<tr ng-repeat="process in processes | filter:search">
|
||||
<td>
|
||||
<span style="font-weight: 600; color: #667eea;">{$ process.PID $}</span>
|
||||
<span style="font-weight: 600; color: var(--accent-color);">{$ process.PID $}</span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="process-user">
|
||||
|
||||
@@ -26,7 +26,7 @@ EXPIRE = 3
|
||||
### Version
|
||||
|
||||
VERSION = '2.4'
|
||||
BUILD = 2
|
||||
BUILD = 3
|
||||
|
||||
|
||||
def serverStatusHome(request):
|
||||
|
||||
Reference in New Issue
Block a user