first commit

This commit is contained in:
KodekaTeam committed 2026-06-02 00:17:50 +07:00
1 parent abb09fbea8
commit 72f6d49818
355 files changed
+121239 -3

No files matched your search

+714
View File
@@ -0,0 +1,714 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
@import "tailwindcss";
:root {
--bg-primary: #0c0e16;
--bg-secondary: #0c0e16;
--bg-card: #0c0e16;
--bg-card-hover: #161820;
--bg-sidebar: #060913;
--bg-input: #11151f;
--border: #1c1f25;
--border-hover: #1d2029;
--text-primary: #e2e8f0;
--text-secondary: #8b9ec7;
--text-danger: #ef4444;
--text-muted: #8c93a3;
--accent-blue: #3b82f6;
--accent-blue-glow: rgba(59, 130, 246, 0.15);
--accent-green: #10b981;
--accent-green-glow: rgba(16, 185, 129, 0.15);
--accent-yellow: #f59e0b;
--accent-red: #ef4444;
--accent-purple: #8b5cf6;
--accent-cyan: #06b6d4;
--terminal-surface: #070b12;
--terminal-header: #0d1224;
--terminal-row-hover: rgba(59, 130, 246, 0.04);
--terminal-timestamp: #2d3f5a;
--terminal-body: #8b9ec7;
--metrics-surface: rgba(15, 23, 42, 0.34);
--metrics-surface-strong: linear-gradient(
180deg,
rgba(40, 53, 83, 0.74) 0%,
rgba(15, 23, 42, 0.42) 100%
);
--metrics-surface-soft: rgba(15, 23, 42, 0.24);
--metrics-shell: linear-gradient(
180deg,
rgba(11, 14, 24, 0.96) 0%,
rgba(26, 29, 37, 0.96) 100%
);
--metrics-border: rgba(148, 163, 184, 0.14);
--metrics-border-muted: rgba(148, 163, 184, 0.18);
--metrics-grid: rgba(148, 163, 184, 0.12);
--metrics-tooltip-bg: rgba(15, 23, 42, 0.94);
--metrics-tooltip-text: #e2e8f0;
--metrics-tooltip-label: #94a3b8;
--metrics-axis: #64748b;
--metrics-server-accent: #60a5fa;
--metrics-error-text: #fca5a5;
--metrics-error-border: rgba(239, 68, 68, 0.18);
--metrics-error-bg: rgba(127, 29, 29, 0.16);
--scrollbar-track: #0d1224;
--scrollbar-thumb: #1e2a3d;
--font--body:
IBM Plex Sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
--font--input:
General Sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
--font--code: "JetBrains Mono", monospace;
--font--terminal: "JetBrains Mono", monospace;
}
html[data-theme="light"] {
--bg-primary: #f4f7fb;
--bg-secondary: #ffffff;
--bg-card: #ffffff;
--bg-card-hover: #eef3fb;
--bg-sidebar: #eaf0f7;
--bg-input: #f6f9fc;
--border: #d8e1ef;
--border-hover: #bcc8db;
--text-primary: #0f172a;
--text-secondary: #334155;
--text-muted: #64748b;
--terminal-surface: #fbfdff;
--terminal-header: #eef4fb;
--terminal-row-hover: rgba(59, 130, 246, 0.08);
--terminal-timestamp: #64748b;
--terminal-body: #334155;
--metrics-surface: rgba(255, 255, 255, 0.96);
--metrics-surface-strong: linear-gradient(
180deg,
rgba(255, 255, 255, 0.98) 0%,
rgba(246, 249, 252, 0.98) 100%
);
--metrics-surface-soft: rgba(246, 249, 252, 0.92);
--metrics-shell: linear-gradient(
180deg,
rgba(255, 255, 255, 0.98) 0%,
rgba(244, 247, 251, 0.98) 100%
);
--metrics-border: rgba(148, 163, 184, 0.22);
--metrics-border-muted: rgba(148, 163, 184, 0.28);
--metrics-grid: rgba(148, 163, 184, 0.2);
--metrics-tooltip-bg: rgba(255, 255, 255, 0.98);
--metrics-tooltip-text: #0f172a;
--metrics-tooltip-label: #475569;
--metrics-axis: #64748b;
--metrics-server-accent: #2563eb;
--metrics-error-text: #b91c1c;
--metrics-error-border: rgba(239, 68, 68, 0.24);
--metrics-error-bg: rgba(254, 242, 242, 0.96);
--scrollbar-track: #e2e8f0;
--scrollbar-thumb: #cbd5e1;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: var(--font--body);
font-size: 14px;
line-height: 1.5;
overflow: hidden;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-hover);
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Animations */
@keyframes pulse-dot {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
@keyframes slide-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-4px);
}
}
@keyframes glow-pulse {
0%,
100% {
box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}
50% {
box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}
}
@keyframes gradient-shift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes spin-slow {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.animate-slide-in {
animation: slide-in 0.3s ease-out;
}
.animate-pulse-dot {
animation: pulse-dot 2s ease-in-out infinite;
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
.animate-glow {
animation: glow-pulse 2s ease-in-out infinite;
}
.animate-spin-slow {
animation: spin-slow 3s linear infinite;
}
/* Card styles */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 5px;
transition: all 0.2s ease;
}
.card:hover {
border-color: var(--border-hover);
}
.ui-responsive-toolbar {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.ui-inline-cluster {
display: flex;
align-items: center;
gap: 10px;
flex: 1 1 320px;
min-width: 0;
}
.ui-inline-label {
white-space: nowrap;
flex-shrink: 0;
}
.ui-chip-scroll {
display: flex;
gap: 6px;
overflow-x: auto;
padding-bottom: 4px;
flex: 1 1 0;
min-width: 0;
}
.ui-chip-scroll > * {
white-space: nowrap;
flex-shrink: 0;
}
.ui-pill-switch {
display: flex;
gap: 4px;
background: var(--bg-input);
border-radius: 8px;
padding: 3px;
overflow-x: auto;
max-width: 100%;
}
.ui-pill-switch > * {
white-space: nowrap;
flex-shrink: 0;
}
.ui-tab-shell {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.ui-tab-scroll {
display: flex;
gap: 4px;
background: var(--bg-card);
border-radius: 10px;
padding: 4px;
border: 1px solid var(--border);
overflow-x: auto;
max-width: 100%;
}
.ui-tab-scroll > * {
white-space: nowrap;
flex-shrink: 0;
}
.ui-toolbar-actions {
margin-left: auto;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
flex-wrap: wrap;
}
.ui-toolbar-note {
margin-left: auto;
text-align: right;
flex: 1 1 240px;
}
@media (max-width: 768px) {
.ui-responsive-toolbar,
.ui-tab-shell {
align-items: stretch;
}
.ui-inline-cluster,
.ui-toolbar-note,
.ui-toolbar-actions {
flex-basis: 100%;
}
.ui-toolbar-note {
margin-left: 0;
text-align: left;
}
.ui-toolbar-actions {
margin-left: 0;
justify-content: stretch;
}
.ui-toolbar-actions > button,
.ui-toolbar-actions > a {
flex: 1 1 160px;
justify-content: center;
}
.ui-pill-switch,
.ui-tab-scroll {
width: 100%;
}
}
/* Gradient text */
.gradient-text {
background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
background-size: 200% 200%;
animation: gradient-shift 4s ease infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Status badges */
.badge-online {
--badge-color: #10b981;
--badge-bg: rgba(16, 185, 129, 0.12);
--badge-border: rgba(16, 185, 129, 0.86);
}
.badge-offline {
--badge-color: #ef4444;
--badge-bg: rgba(239, 68, 68, 0.12);
--badge-border: rgba(239, 68, 68, 0.86);
}
.badge-warning {
--badge-color: #f59e0b;
--badge-bg: rgba(245, 158, 11, 0.12);
--badge-border: rgba(245, 158, 11, 0.88);
}
.badge-info {
--badge-color: #3b82f6;
--badge-bg: rgba(59, 130, 246, 0.12);
--badge-border: rgba(59, 130, 246, 0.88);
}
.ui-badge {
/* --badge-color: var(--text-secondary);
--badge-bg: rgba(148, 163, 184, 0.1);
--badge-border: rgba(148, 163, 184, 0.5); */
display: inline-flex;
align-items: center;
justify-content: center;
max-width: 100%;
min-height: 24px;
padding: 3px 11px;
border: 1px solid var(--badge-border);
border-radius: 999px;
background: var(--badge-bg);
color: var(--badge-color);
font-size: 11px;
font-weight: 600;
line-height: 1.25;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}
/* Progress bars */
.progress-bar {
height: 4px;
border-radius: 2px;
background: var(--bg-input);
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 2px;
transition: width 0.5s ease;
}
/* Sidebar nav items */
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: 8px;
cursor: pointer;
transition: all 0.15s ease;
color: var(--text-secondary);
font-size: 13px;
font-weight: 500;
text-decoration: none;
position: relative;
}
.nav-item:hover {
background: rgba(59, 130, 246, 0.08);
color: var(--text-primary);
}
.nav-item.active {
background: rgba(59, 130, 246, 0.12);
color: #3b82f6;
border-left: 2px solid #3b82f6;
padding-left: 10px;
}
.nav-item.active .nav-icon {
color: #3b82f6;
}
/* Table styles */
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table thead th {
padding: 10px 16px;
text-align: left;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
}
.data-table tbody tr {
border-bottom: 1px solid rgba(30, 42, 61, 0.5);
transition: background 0.15s ease;
}
.data-table tbody tr:hover {
background: rgba(59, 130, 246, 0.04);
}
.data-table tbody td {
padding: 12px 16px;
font-size: 13px;
color: var(--text-secondary);
}
/* Button styles */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 7px 14px;
border-radius: 3px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
border: none;
outline: none;
}
.btn-sm {
max-height: 35px;
padding: 6px 12px;
border-radius: 3px;
font-size: 12px;
font-weight: 600;
}
.btn-primary {
background: #1d4ed8;
color: white;
cursor: pointer;
}
.btn-primary:hover {
background: #1e40af;
/* transform: translateY(-1px); */
/* box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); */
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border);
cursor: pointer;
}
.btn-ghost:hover {
background: var(--bg-card-hover);
color: var(--text-primary);
border-color: var(--border-hover);
}
.btn-warning {
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
border: 1px solid rgba(245, 158, 11, 0.3);
cursor: pointer;
}
.btn-warning:hover {
background: #f59e0b;
color: white;
}
.btn-danger {
background: rgba(173, 39, 39, 0.15);
color: #dd2222;
border: 1px solid rgba(173, 39, 39, 0.3);
cursor: pointer;
}
.btn-danger:hover {
background: #ef4444;
color: white;
}
.btn-success {
background: rgba(16, 185, 129, 0.15);
color: #10b981;
border: 1px solid rgba(16, 185, 129, 0.3);
cursor: pointer;
}
.btn-success:hover {
background: #10b981;
color: white;
}
.btn-normal {
background: #e2e8f0;
color: #121213;
border: 1px solid rgba(255, 255, 255, 0.3);
cursor: pointer;
}
.btn-normal:hover {
background: #d7dadf;
color: #0f172a;
}
/* Input styles */
.input {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 12px;
color: var(--text-primary);
font-size: 13px;
font-family: var(--font--input);
transition: all 0.2s ease;
width: 100%;
}
.input:focus {
outline: none;
border-color: none;
box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.input::placeholder {
color: var(--text-muted);
}
/* Modal overlay */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: slide-in 0.2s ease-out;
padding: 16px;
overflow: hidden;
isolation: isolate;
contain: layout paint style;
}
.modal {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px;
width: 100%;
max-width: 480px;
max-height: calc(100vh - 32px);
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb) transparent;
/* box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); */
contain: content;
}
.modal::-webkit-scrollbar {
width: 12px;
}
.modal::-webkit-scrollbar-track {
background: transparent;
margin: 12px 6px 12px 0;
}
.modal::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 999px;
border: 3px solid transparent;
background-clip: padding-box;
}
.modal::-webkit-scrollbar-thumb:hover {
background: var(--border-hover);
border: 3px solid transparent;
background-clip: padding-box;
}
/* Floating particles background */
.particles-bg {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
border-radius: 50%;
background: rgba(59, 130, 246, 0.3);
animation: float 4s ease-in-out infinite;
}
/* Terminal font */
.terminal-text {
font-family: "JetBrains Mono", monospace;
font-size: 12px;
}
.terminal-pane {
cursor: text;
}
.terminal-pane .terminal-pane__xterm,
.terminal-pane .xterm {
width: 100%;
height: 100%;
}
.terminal-pane .xterm-viewport,
.terminal-pane .xterm-screen,
.terminal-pane .xterm-helpers,
.terminal-pane .xterm-helper-textarea,
.terminal-pane .xterm-accessibility {
width: 100%;
height: 100%;
}
/* Tooltip */
.tooltip {
position: relative;
}
.tooltip-content {
position: absolute;
top: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(-2px);
background: var(--bg-card);
color: var(--text-primary);
padding: 6px 10px;
border-radius: 6px;
font-size: 11px;
line-height: 1.3;
white-space: nowrap;
border: 1px solid var(--border);
pointer-events: none;
opacity: 0;
transition:
opacity 0.15s,
transform 0.15s;
z-index: 100;
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}
.tooltip:hover .tooltip-content {
opacity: 1;
transform: translateX(-50%) translateY(0);
}