initial commit
This commit is contained in:
commit
0eb9b55717
11 changed files with 3969 additions and 0 deletions
213
renderer/app.css
Normal file
213
renderer/app.css
Normal file
|
|
@ -0,0 +1,213 @@
|
|||
/* Simple, dense, operator-oriented UI.
|
||||
No framework — just hand-tuned CSS. */
|
||||
|
||||
:root {
|
||||
--bg: #0e1116;
|
||||
--bg-elev: #161b22;
|
||||
--bg-elev-2: #1f2630;
|
||||
--fg: #e7edf3;
|
||||
--fg-dim: #8a94a3;
|
||||
--border: #2a313c;
|
||||
--accent: #3ea6ff;
|
||||
--accent-hover: #65baff;
|
||||
--ok: #3fb950;
|
||||
--warn: #d29922;
|
||||
--danger: #f85149;
|
||||
--danger-hover: #ff6a62;
|
||||
--info: #58a6ff;
|
||||
--mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
code { font-family: var(--mono); background: var(--bg-elev-2); padding: 1px 4px; border-radius: 3px; font-size: 12px; }
|
||||
.muted { color: var(--fg-dim); }
|
||||
.small { font-size: 12px; }
|
||||
.hidden { display: none !important; }
|
||||
.error { color: var(--danger); }
|
||||
.row { display: flex; gap: 8px; align-items: center; }
|
||||
.inline { display: inline-flex; align-items: center; gap: 6px; }
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 16px;
|
||||
background: var(--bg-elev);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.topbar .brand { font-weight: 600; letter-spacing: 0.3px; }
|
||||
.topbar .session { margin-left: auto; color: var(--fg-dim); font-family: var(--mono); font-size: 12px; }
|
||||
|
||||
.view { display: flex; gap: 0; height: calc(100vh - 45px); }
|
||||
#view-login { justify-content: center; align-items: flex-start; padding-top: 60px; }
|
||||
|
||||
.card {
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 24px;
|
||||
width: 440px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.card h1 { margin: 0 0 4px; font-size: 18px; }
|
||||
.card p { margin: 0 0 8px; }
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
color: var(--fg-dim);
|
||||
font-size: 12px;
|
||||
}
|
||||
label.inline { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); }
|
||||
|
||||
input[type="text"], input[type="password"], input[type="url"],
|
||||
input[type="number"], input[type="search"], input[type="datetime-local"],
|
||||
select {
|
||||
background: var(--bg-elev-2);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--fg);
|
||||
padding: 7px 9px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
font-family: inherit;
|
||||
outline: none;
|
||||
}
|
||||
input:focus, select:focus { border-color: var(--accent); }
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
padding: 7px 14px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-elev-2);
|
||||
color: var(--fg);
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover:not(:disabled) { border-color: var(--accent); }
|
||||
button:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
button.primary { background: var(--accent); color: #001828; border-color: var(--accent); font-weight: 600; }
|
||||
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
|
||||
button.ghost { background: transparent; }
|
||||
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); font-weight: 600; }
|
||||
button.danger:hover:not(:disabled) { background: var(--danger-hover); border-color: var(--danger-hover); }
|
||||
|
||||
.panel-left {
|
||||
width: 320px;
|
||||
padding: 16px;
|
||||
border-right: 1px solid var(--border);
|
||||
background: var(--bg-elev);
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.panel-left h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); margin: 12px 0 0; }
|
||||
.panel-left h2:first-child { margin-top: 0; }
|
||||
|
||||
.panel-main {
|
||||
flex: 1;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.panel-main h2 { margin: 0; font-size: 15px; }
|
||||
.fleet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
|
||||
|
||||
.selected-summary {
|
||||
background: var(--bg-elev-2);
|
||||
padding: 8px 10px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.fleet-table-wrap {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.fleet-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
}
|
||||
.fleet-table thead th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: var(--bg-elev);
|
||||
text-align: left;
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-weight: 600;
|
||||
z-index: 1;
|
||||
}
|
||||
.fleet-table tbody td {
|
||||
padding: 6px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 320px;
|
||||
}
|
||||
.fleet-table tbody tr:hover { background: var(--bg-elev-2); }
|
||||
.fleet-table tbody tr.selected { background: rgba(62, 166, 255, 0.12); }
|
||||
|
||||
.status-ok { color: var(--ok); }
|
||||
.status-warn { color: var(--warn); }
|
||||
.status-err { color: var(--danger); }
|
||||
.status-info { color: var(--info); }
|
||||
.status-pending { color: var(--fg-dim); }
|
||||
|
||||
/* Compact FEC counter readout under the health pill in the preview
|
||||
table. Each line is "tail=value" so the operator can correlate with
|
||||
the same names used by the PON Manager UI (Pre-FEC BER etc.). */
|
||||
.fec-cell { white-space: normal; max-width: 280px; }
|
||||
|
||||
/* Verify-view table cells contain stacked before/after blocks; let
|
||||
them wrap and align to the top so before/after lines line up. */
|
||||
#verify-table tbody td { white-space: normal; vertical-align: top; }
|
||||
#verify-table .delta-arrow { color: var(--fg-dim); font-size: 11px; }
|
||||
#verify-table .before-line, #verify-table .after-line { display: block; }
|
||||
#verify-table .before-line { color: var(--fg-dim); font-size: 11px; }
|
||||
.fec-pill { font-weight: 600; }
|
||||
.fec-counters {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
color: var(--fg-dim);
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.fec-counters .pre { color: var(--warn); }
|
||||
.fec-counters .post { color: var(--danger); }
|
||||
.fec-counters .ok { color: var(--fg-dim); }
|
||||
|
||||
.slot-arrow {
|
||||
display: inline-block;
|
||||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--bg-elev-2);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue