feat: initialize unidesk platform

This commit is contained in:
Codex
2026-05-04 11:09:35 +00:00
commit caa80ee5e7
56 changed files with 3273 additions and 0 deletions
+329
View File
@@ -0,0 +1,329 @@
:root {
--bg: #111820;
--panel: #17212b;
--panel-2: #1d2a35;
--line: #30404d;
--line-soft: #24323e;
--text: #dce7ec;
--muted: #8496a3;
--accent: #e2a329;
--accent-2: #4bb7aa;
--danger: #d86b55;
--ok: #6fbe73;
--rail: #0c1218;
--shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
font-family: "DIN Condensed", "Aptos Narrow", "Liberation Sans Narrow", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
margin: 0;
color: var(--text);
background:
linear-gradient(135deg, rgba(226, 163, 41, 0.08), transparent 28%),
linear-gradient(315deg, rgba(75, 183, 170, 0.08), transparent 30%),
repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 36px),
var(--bg);
font-size: 13px;
letter-spacing: 0.01em;
}
button, input, select, textarea {
font: inherit;
}
.shell {
display: grid;
grid-template-columns: 176px minmax(0, 1fr);
min-height: 100vh;
}
.rail {
position: sticky;
top: 0;
height: 100vh;
padding: 12px 10px;
border-right: 1px solid var(--line);
background: linear-gradient(180deg, #0a1015, var(--rail));
}
.brand {
display: flex;
align-items: center;
gap: 9px;
height: 40px;
padding: 0 5px 12px;
border-bottom: 1px solid var(--line-soft);
margin-bottom: 10px;
}
.brand-mark {
display: grid;
place-items: center;
width: 32px;
height: 26px;
border: 1px solid var(--accent);
color: var(--accent);
font-weight: 800;
letter-spacing: 0.08em;
}
.brand-text {
font-size: 15px;
text-transform: uppercase;
letter-spacing: 0.14em;
}
.module, .tab, .dispatch-form button {
border: 1px solid transparent;
color: var(--muted);
background: transparent;
cursor: pointer;
}
.module {
display: block;
width: 100%;
padding: 8px 10px;
margin: 4px 0;
text-align: left;
border-left: 3px solid transparent;
}
.module:hover, .module.active {
color: var(--text);
background: rgba(255,255,255,0.045);
border-left-color: var(--accent);
}
.workspace {
min-width: 0;
padding: 12px 14px 16px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
min-height: 54px;
padding: 0 0 10px;
border-bottom: 1px solid var(--line);
}
.eyebrow {
margin: 0 0 2px;
color: var(--accent);
font-size: 10px;
letter-spacing: 0.22em;
text-transform: uppercase;
}
h1, h2 { margin: 0; font-weight: 650; }
h1 { font-size: 22px; letter-spacing: 0.08em; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.09em; }
.status-strip {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 9px;
border: 1px solid var(--line);
background: rgba(0,0,0,0.14);
color: var(--muted);
white-space: nowrap;
}
.dot {
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--muted);
box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--accent); }
.dot.fail { background: var(--danger); }
.tabs {
display: flex;
gap: 6px;
padding: 10px 0;
overflow-x: auto;
}
.tab {
padding: 7px 12px;
border-color: var(--line);
background: rgba(12, 18, 24, 0.58);
color: var(--muted);
min-width: 108px;
}
.tab.active, .tab:hover {
color: var(--text);
border-color: var(--accent-2);
background: rgba(75, 183, 170, 0.12);
}
.content-grid {
display: grid;
grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.6fr);
gap: 10px;
align-items: stretch;
}
.panel {
border: 1px solid var(--line);
background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)), var(--panel);
box-shadow: var(--shadow);
min-width: 0;
}
.panel-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
height: 38px;
padding: 0 10px;
border-bottom: 1px solid var(--line);
color: var(--muted);
}
.metrics-panel { grid-column: 1 / 2; }
.table-panel[data-panel="nodes"] { grid-column: 2 / 3; }
.table-panel[data-panel="events"], .dispatch-panel { grid-column: 1 / -1; }
.metric-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
padding: 10px;
}
.metric {
padding: 10px;
min-height: 74px;
border: 1px solid var(--line-soft);
background: var(--panel-2);
}
.metric .label {
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.metric .value {
margin-top: 8px;
color: var(--text);
font-size: 24px;
font-weight: 720;
}
.metric .hint {
margin-top: 3px;
color: var(--muted);
font-size: 11px;
}
.table-wrap { overflow: auto; max-height: 46vh; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td {
padding: 7px 9px;
border-bottom: 1px solid var(--line-soft);
text-align: left;
vertical-align: top;
}
th {
position: sticky;
top: 0;
background: #121b24;
color: var(--accent);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.11em;
z-index: 1;
}
td { color: var(--text); }
.code, code {
font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
font-size: 12px;
color: #bfd7dc;
}
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 2px 7px;
border: 1px solid var(--line);
color: var(--muted);
background: rgba(0,0,0,0.18);
}
.badge.online { color: var(--ok); border-color: rgba(111, 190, 115, 0.45); }
.badge.offline { color: var(--danger); border-color: rgba(216, 107, 85, 0.45); }
.dispatch-panel { min-height: 230px; }
.dispatch-form {
display: grid;
grid-template-columns: 1fr 180px auto;
gap: 8px;
padding: 10px;
align-items: end;
}
.dispatch-form label {
display: grid;
gap: 4px;
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.dispatch-form .wide { grid-column: 1 / -1; }
input, select, textarea {
width: 100%;
border: 1px solid var(--line);
color: var(--text);
background: #0d151c;
padding: 7px 8px;
outline: none;
}
textarea { min-height: 76px; resize: vertical; font-family: "Cascadia Mono", "IBM Plex Mono", monospace; }
.dispatch-form button {
height: 33px;
padding: 0 14px;
border-color: var(--accent);
color: #130f08;
background: var(--accent);
font-weight: 700;
}
.result-block {
margin: 0 10px 10px;
padding: 8px;
max-height: 170px;
overflow: auto;
border: 1px solid var(--line-soft);
background: #0d151c;
color: #bfd7dc;
}
@media (max-width: 980px) {
.shell { grid-template-columns: 1fr; }
.rail {
position: static;
height: auto;
display: flex;
align-items: center;
gap: 6px;
overflow-x: auto;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.brand { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; flex: 0 0 auto; }
.module { width: auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
.module.active, .module:hover { border-bottom-color: var(--accent); }
.content-grid { grid-template-columns: 1fr; }
.metrics-panel, .table-panel[data-panel="nodes"], .table-panel[data-panel="events"], .dispatch-panel { grid-column: 1; }
.dispatch-form { grid-template-columns: 1fr; }
}