8b3d9a312e
CI / Lint + build + test (push) Failing after 5m15s
Operator pastes `curl -fsSL $ORCH/register/quick.sh | sudo bash` on the target host (pre-wipe). The script probes MAC + CPU/RAM/disks/NICs/GPUs, emits an expected-spec YAML, and POSTs to a new LAN-trusted JSON endpoint /api/v1/hosts. The register page shows the command prefilled with the orchestrator URL; the manual form moves into a collapsible "Register manually" disclosure.
246 lines
6.8 KiB
CSS
246 lines
6.8 KiB
CSS
:root {
|
|
--bg: #0f1115;
|
|
--bg-elev: #171a21;
|
|
--bg-elev-2: #1f232c;
|
|
--border: #2a2f3a;
|
|
--text: #e5e8ef;
|
|
--text-dim: #9aa2b1;
|
|
--accent: #6aa9ff;
|
|
--accent-strong: #3c82f6;
|
|
--success: #35c27b;
|
|
--warn: #e4a94b;
|
|
--danger: #e56466;
|
|
--radius: 8px;
|
|
--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 15px/1.45 var(--font);
|
|
}
|
|
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
padding: 12px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-elev);
|
|
}
|
|
.topbar .brand { font-weight: 700; letter-spacing: .2px; }
|
|
.topbar nav { display: flex; gap: 16px; flex: 1; }
|
|
.topbar nav a { color: var(--text-dim); }
|
|
.topbar nav a:hover { color: var(--text); text-decoration: none; }
|
|
.topbar .session { display: flex; align-items: center; gap: 12px; }
|
|
.topbar .heartbeat { color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
|
|
.topbar .logout-form { margin: 0; }
|
|
|
|
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
|
|
|
|
button, .button, .button-secondary {
|
|
appearance: none;
|
|
font: inherit;
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-elev-2);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
button:hover, .button:hover { border-color: var(--accent); }
|
|
button:disabled { opacity: .5; cursor: not-allowed; }
|
|
button.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
|
|
button.danger:hover { background: rgba(229,100,102,.1); }
|
|
.button-secondary { background: transparent; }
|
|
|
|
.error {
|
|
background: rgba(229,100,102,.12);
|
|
border: 1px solid var(--danger);
|
|
color: var(--danger);
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.dashboard-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.dashboard-header h1 { font-size: 20px; margin: 0; }
|
|
|
|
.empty {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text-dim);
|
|
}
|
|
.empty .button { margin-top: 12px; }
|
|
|
|
.tile-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.tile {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.tile-head { display: flex; justify-content: space-between; align-items: center; }
|
|
.tile-name { font-weight: 600; }
|
|
.tile-status { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
|
|
.tile-idle .tile-status { color: var(--text-dim); }
|
|
|
|
.tile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 0; font-size: 13px; }
|
|
.tile-meta div { display: flex; justify-content: space-between; align-items: baseline; }
|
|
.tile-meta dt { color: var(--text-dim); }
|
|
.tile-meta dd { margin: 0; font-family: var(--mono); }
|
|
|
|
.tile-actions { display: flex; gap: 8px; }
|
|
.tile-actions .inline { margin: 0; flex: 0; }
|
|
|
|
.tile-meta dd.bad { color: var(--danger); }
|
|
|
|
.tile-hold {
|
|
background: rgba(229,100,102,.08);
|
|
border: 1px solid rgba(229,100,102,.35);
|
|
border-radius: var(--radius);
|
|
padding: 8px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.tile-hold .hold-title {
|
|
font-size: 12px;
|
|
color: var(--danger);
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
}
|
|
.tile-hold .hold-ssh {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
word-break: break-all;
|
|
user-select: all;
|
|
}
|
|
|
|
.tile-log {
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 8px 10px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.tile-log:empty { display: none; }
|
|
.tile-log .log-line { white-space: pre-wrap; }
|
|
.tile-log .log-warn { color: var(--warn); }
|
|
.tile-log .log-error { color: var(--danger); }
|
|
|
|
.tile-fail { border-color: rgba(229,100,102,.6); }
|
|
.tile-pass { border-color: rgba(53,194,123,.5); }
|
|
.tile-active { border-color: var(--accent); }
|
|
|
|
.form-wrap { max-width: 640px; }
|
|
.form-wrap h1 { font-size: 20px; }
|
|
|
|
.host-form { display: flex; flex-direction: column; gap: 14px; }
|
|
.host-form label { display: flex; flex-direction: column; gap: 4px; color: var(--text-dim); font-size: 13px; }
|
|
.host-form input,
|
|
.host-form textarea {
|
|
font: inherit;
|
|
font-family: var(--mono);
|
|
color: var(--text);
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 8px 10px;
|
|
}
|
|
.host-form textarea { resize: vertical; min-height: 96px; }
|
|
.host-form .grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
|
|
.host-form .actions { display: flex; gap: 10px; margin-top: 4px; }
|
|
|
|
.login-card {
|
|
max-width: 360px;
|
|
margin: 12vh auto;
|
|
padding: 28px;
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
.login-card h1 { margin: 0 0 16px; font-size: 22px; }
|
|
.login-card label { display: flex; flex-direction: column; gap: 4px; color: var(--text-dim); font-size: 13px; }
|
|
.login-card input {
|
|
font: inherit;
|
|
color: var(--text);
|
|
background: var(--bg-elev-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.login-card button { width: 100%; background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
|
|
.login-card button:hover { background: var(--accent); border-color: var(--accent); }
|
|
|
|
body.bare main { max-width: none; }
|
|
|
|
.quick-register {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px 18px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.quick-register h2 { margin: 0 0 8px; font-size: 16px; }
|
|
.quick-register p { margin: 6px 0; font-size: 13px; color: var(--text-dim); }
|
|
.quick-register p b { color: var(--text); }
|
|
.quick-register .muted { color: var(--text-dim); font-weight: 400; }
|
|
.quick-register code { font-family: var(--mono); }
|
|
.quick-register .one-liner {
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 10px 12px;
|
|
margin: 8px 0;
|
|
overflow-x: auto;
|
|
user-select: all;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
.quick-register .one-liner code { white-space: pre; }
|
|
|
|
.manual-register { margin-top: 16px; }
|
|
.manual-register summary {
|
|
cursor: pointer;
|
|
color: var(--text-dim);
|
|
font-size: 13px;
|
|
padding: 6px 0;
|
|
}
|
|
.manual-register summary:hover { color: var(--text); }
|
|
.manual-register[open] summary { margin-bottom: 12px; }
|