Initial Seg Data Server Net platform

This commit is contained in:
2026-06-30 11:49:36 +08:00
commit 98abafa7cc
48 changed files with 6020 additions and 0 deletions

392
frontend/src/styles.css Normal file
View File

@@ -0,0 +1,392 @@
:root {
color-scheme: dark;
--ink: #eef2e8;
--muted: #9aa89a;
--panel: #151815;
--panel-2: #1d211d;
--line: #333b32;
--field: #0d100d;
--green: #9de26f;
--amber: #d3b35b;
--red: #f07167;
--cyan: #73d2de;
--blue: #7aa2ff;
--shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
font-family: "Aptos", "Segoe UI", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-width: 1100px;
background:
linear-gradient(90deg, rgba(157, 226, 111, 0.07) 1px, transparent 1px),
linear-gradient(180deg, rgba(115, 210, 222, 0.045) 1px, transparent 1px),
#0b0d0b;
background-size: 52px 52px;
color: var(--ink);
}
button, textarea, select {
font: inherit;
}
button {
border: 0;
color: inherit;
cursor: pointer;
}
.shell {
display: grid;
grid-template-columns: 260px 1fr;
min-height: 100vh;
}
.rail {
position: sticky;
top: 0;
height: 100vh;
padding: 24px 18px;
border-right: 1px solid var(--line);
background: rgba(12, 15, 12, 0.92);
}
.brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 34px;
}
.mark {
width: 44px;
height: 44px;
display: grid;
place-items: center;
color: #0a0d0a;
background: var(--green);
border-radius: 7px;
}
.brand strong, .brand span {
display: block;
}
.brand span {
color: var(--muted);
font-size: 13px;
}
nav {
display: grid;
gap: 8px;
}
nav a {
display: flex;
align-items: center;
gap: 10px;
color: var(--muted);
padding: 11px 10px;
border-radius: 6px;
text-decoration: none;
}
nav a:hover {
color: var(--ink);
background: var(--panel-2);
}
.workspace {
padding: 26px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 22px;
}
.eyebrow {
margin: 0 0 6px;
color: var(--green);
font-size: 12px;
letter-spacing: 0;
text-transform: uppercase;
}
h1, h2 {
margin: 0;
letter-spacing: 0;
}
h1 {
font-size: 28px;
font-weight: 720;
}
h2 {
font-size: 18px;
}
.iconButton, .primary {
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 6px;
}
.iconButton {
width: 38px;
background: var(--panel-2);
border: 1px solid var(--line);
}
.primary {
padding: 0 14px;
background: var(--green);
color: #0b0d0b;
font-weight: 700;
}
.primary:disabled, .iconButton:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.alert {
padding: 12px 14px;
border: 1px solid rgba(240, 113, 103, 0.5);
background: rgba(240, 113, 103, 0.12);
border-radius: 6px;
margin-bottom: 18px;
}
.metrics, .grid {
display: grid;
gap: 16px;
}
.metrics {
grid-template-columns: repeat(4, minmax(0, 1fr));
margin-bottom: 16px;
}
.metric, .panel {
border: 1px solid var(--line);
background: rgba(21, 24, 21, 0.94);
border-radius: 8px;
box-shadow: var(--shadow);
}
.metric {
display: grid;
grid-template-columns: 28px 1fr auto;
align-items: center;
gap: 12px;
padding: 16px;
}
.metric span, .muted, small {
color: var(--muted);
}
.metric strong {
font-size: 24px;
}
.grid.two {
grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
margin-bottom: 16px;
}
.grid.three {
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-bottom: 16px;
}
.panel {
padding: 18px;
min-width: 0;
}
.panelHead {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.taskColumns {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
}
.taskGroup {
min-width: 0;
}
.taskGroup > span {
display: block;
color: var(--amber);
font-size: 12px;
margin-bottom: 8px;
}
.taskGroup button {
width: 100%;
display: block;
text-align: left;
padding: 8px;
margin-bottom: 6px;
border-radius: 5px;
background: #101310;
border: 1px solid transparent;
color: var(--muted);
font-size: 12px;
overflow-wrap: anywhere;
}
.taskGroup button.selected {
border-color: var(--green);
color: var(--ink);
background: rgba(157, 226, 111, 0.08);
}
.field {
display: grid;
gap: 8px;
margin-top: 14px;
}
.field span {
color: var(--muted);
font-size: 13px;
}
textarea {
width: 100%;
min-height: 180px;
resize: vertical;
padding: 12px;
color: var(--ink);
background: var(--field);
border: 1px solid var(--line);
border-radius: 6px;
font-family: "Cascadia Code", "JetBrains Mono", monospace;
font-size: 13px;
}
.jobList, .resultList {
display: grid;
gap: 8px;
max-height: 460px;
overflow: auto;
}
.jobRow, .resultList a {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px;
text-align: left;
padding: 10px;
border-radius: 6px;
background: #101310;
border: 1px solid var(--line);
text-decoration: none;
color: var(--ink);
}
.jobRow small {
grid-column: 1 / -1;
}
.pill {
padding: 3px 8px;
border-radius: 999px;
font-size: 12px;
border: 1px solid var(--line);
}
.pill-running { color: var(--cyan); }
.pill-success { color: var(--green); }
.pill-failed { color: var(--red); }
.pill-cancelled { color: var(--amber); }
.gpu {
display: grid;
gap: 9px;
margin-bottom: 14px;
}
.gpu strong, .gpu span {
display: block;
}
.gpu span {
color: var(--muted);
font-size: 13px;
}
meter {
width: 100%;
height: 12px;
accent-color: var(--green);
}
.bigNumber {
font-size: 54px;
font-weight: 760;
line-height: 1;
}
.chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
.chips span {
padding: 6px 9px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
background: #101310;
font-size: 12px;
}
.logPanel pre {
min-height: 340px;
max-height: 520px;
overflow: auto;
margin: 0;
padding: 14px;
color: #dbe7d8;
background: #080a08;
border: 1px solid var(--line);
border-radius: 6px;
font-family: "Cascadia Code", "JetBrains Mono", monospace;
font-size: 12px;
line-height: 1.55;
white-space: pre-wrap;
}
.resultList a:hover, .jobRow:hover {
border-color: var(--green);
}
@media (max-width: 1180px) {
body { min-width: 960px; }
.shell { grid-template-columns: 220px 1fr; }
.taskColumns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.three { grid-template-columns: 1fr; }
.grid.two { grid-template-columns: 1fr; }
}