Admin wears the Control Room: light workspace, dark rail and topbar, Instrument scheme
The /admin console now looks like the member screens instead of the dark-navy site.css back office (Marty: "the admin should be the same color as the site"). Same recipe as /tools (2026-10-08): cr.css is the design system, site.css loads inside @layer legacy so the cr tokens win, tools.css restyles the shared legacy panes, and the new admin.css does the admin-only parts. - admin.html: page wrapped in #page; the pane menu (nav.bo-menu, same data-pane buttons and ids) is a dark rail with the Collapse toggle and Site links; topbar carries the crumb, #boTitle, #chainLine readout, admin who pill and Log out; a status strip with the chain and a Central clock; the sign-in card centred on the light workspace. Inline <style> moved to admin.css; the two dark-only inline backgrounds switched to panel tokens. Cache tags: admin.css/admin.js ?v=20261012a. - admin.css: rail buttons mirror cr .rail a (wide and icon-only, phone bottom bar scrolls with icon + label), tables with mono headers and hover rows, status pills and the house tag in the light scheme, drip steps, rates and kv forms, label-wrapped inputs, blue action buttons, phone grids. - admin.js: rail collapse remembers cr.rail like the member shell, strip clock, strip chain line, error text uses var(--bad) instead of #ff8a8a. Member rail and cr-shell.js are untouched; the admin sign-in flow is the same /api/admin/auth endpoints as before. Verified locally with Playwright at 1366x900 and 390x844 on every pane plus /links as a member. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+53
-106
@@ -4,125 +4,70 @@
|
||||
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Admin | LinkSpin</title>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@500;700;800&display=swap">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700;800&family=JetBrains+Mono:wght@500;700&display=swap">
|
||||
<link rel="icon" type="image/png" href="/logo-icon.png">
|
||||
<link rel="stylesheet" href="/assets/site.css?v=ls20260916a">
|
||||
<style>
|
||||
.adm-table{width:100%;table-layout:auto}
|
||||
.adm-table th{cursor:pointer;user-select:none;white-space:nowrap}
|
||||
#trfSources th,#trfAngles th{white-space:normal;text-align:center;line-height:1.2;vertical-align:bottom}
|
||||
#trfSources td:not(:first-child),#trfAngles td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
|
||||
.adm-table th.sort-asc::after{content:' \25B2';font-size:9px;color:var(--mint)}
|
||||
.adm-table th.sort-desc::after{content:' \25BC';font-size:9px;color:var(--mint)}
|
||||
.adm-table.kv th{cursor:default;color:var(--muted);font-weight:500}
|
||||
.adm-table.kv th.sort-asc::after,.adm-table.kv th.sort-desc::after{content:''}
|
||||
.adm-table td.act,.adm-table th:last-child{width:1%;white-space:nowrap} /* the action column keeps its full width; text columns give way */
|
||||
.adm-table td:first-child{overflow-wrap:anywhere;word-break:break-word}
|
||||
.adm-table th,.adm-table td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:13.5px}
|
||||
.adm-table td.when{white-space:nowrap}
|
||||
.adm-table th{color:var(--muted);font-size:11.5px;text-transform:uppercase;letter-spacing:.08em}
|
||||
.adm-table .act{white-space:nowrap}
|
||||
.adm-table .act button{margin-right:6px}
|
||||
.st{display:inline-block;border-radius:999px;padding:2px 9px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
|
||||
.st.active{background:rgba(59,157,255,.14);color:var(--mint)}
|
||||
.st.paused{background:rgba(255,178,56,.14);color:var(--amber)}
|
||||
.st.out{background:rgba(255,255,255,.08);color:var(--muted)}
|
||||
.house-tag{display:inline-block;border:1px solid rgba(157,125,255,.5);color:var(--violet);border-radius:6px;padding:1px 6px;font-size:10.5px;font-weight:700;margin-left:6px;vertical-align:middle}
|
||||
.adm-form p{margin:0 0 10px}
|
||||
.adm-form label.small{display:block;margin-bottom:4px}
|
||||
.trunc{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
|
||||
textarea.json{font-family:var(--mono);font-size:12.5px;width:100%;min-height:260px}
|
||||
.ph-chips{display:inline-flex;gap:6px;flex-wrap:wrap;margin-left:6px;vertical-align:middle}
|
||||
.ph-chips .chip-t{padding:2px 10px;font-size:11.5px;font-family:var(--mono);text-transform:none;letter-spacing:0;cursor:pointer;background:transparent}
|
||||
.drip-steps{display:grid;gap:12px}
|
||||
.drip-step{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:rgba(4,8,7,.4)}
|
||||
.drip-step .ds-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
|
||||
.drip-step .ds-n{font-family:var(--mono);font-size:12px;color:var(--mint);letter-spacing:.08em}
|
||||
.drip-step .ds-when{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
|
||||
.drip-step .ds-when input{width:80px;text-align:right}
|
||||
.drip-step .ds-when b{color:var(--ink)}
|
||||
.drip-step .ds-tools{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
|
||||
.drip-step .ds-tools .btn{padding:6px 12px;font-size:12px}
|
||||
.drip-step input.ds-subject{width:100%;margin-bottom:8px;font-weight:700}
|
||||
.drip-step textarea.ds-body{width:100%;min-height:200px;font-size:13.5px;line-height:1.5}
|
||||
.rates-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px 22px}
|
||||
.rates-form .rf{display:flex;flex-direction:column;gap:4px}
|
||||
.rates-form .rf label{font-size:13px;font-weight:700}
|
||||
.rates-form .rf .hint{font-size:11.5px;color:var(--muted)}
|
||||
.rates-form .rf input[type=number]{max-width:160px}
|
||||
.rates-form .rf.wide{grid-column:1/-1}
|
||||
.rates-form .sub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
|
||||
.rates-form .sub-grid label{font-size:12px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;gap:3px}
|
||||
.rates-form table.tiers{width:auto;font-size:13px}
|
||||
.rates-form table.tiers td,.rates-form table.tiers th{padding:4px 8px;border:0}
|
||||
.rates-form table.tiers input{width:90px}
|
||||
.kv-form{display:grid;gap:8px}
|
||||
.kv-row{display:grid;grid-template-columns:220px 1fr auto;gap:10px;align-items:center}
|
||||
.kv-row .k{font-family:var(--mono);font-size:12.5px;overflow-wrap:anywhere}
|
||||
.kv-row input[type=checkbox]{width:auto;justify-self:start}
|
||||
@media(max-width:700px){.kv-row{grid-template-columns:1fr}}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/assets/cr.css?v=20261011b">
|
||||
<style>@import url("/assets/site.css?v=ls20260916a") layer(legacy);</style>
|
||||
<link rel="stylesheet" href="/assets/tools.css?v=20261008a">
|
||||
<link rel="stylesheet" href="/assets/admin.css?v=20261012a">
|
||||
</head>
|
||||
<body class="bo-body">
|
||||
<body>
|
||||
<div id="page">
|
||||
|
||||
<!-- signed-out: admin sign-in -->
|
||||
<div id="authArea">
|
||||
<div class="wrap" style="max-width:520px">
|
||||
<section class="hero" style="padding:64px 0 10px;text-align:left">
|
||||
<p class="eyebrow">LinkSpin</p>
|
||||
<h1 style="font-size:34px">Admin <em>sign in</em></h1>
|
||||
<p class="lead" style="font-size:16px">Only the admin address can sign in here. A one-time code goes to that inbox.</p>
|
||||
<div id="authArea" class="adm-auth">
|
||||
<div class="wrap">
|
||||
<span class="adm-mark"><i></i>LinkSpin</span>
|
||||
<section class="hero">
|
||||
<p class="eyebrow">Control room</p>
|
||||
<h1>Admin <em>sign in</em></h1>
|
||||
<p class="lead">Only the admin address can sign in here. A one-time code goes to that inbox.</p>
|
||||
</section>
|
||||
<div class="card">
|
||||
<p><input id="adEmail" type="email" placeholder="Admin email" autocomplete="email" style="width:100%"></p>
|
||||
<p id="adCodeRow" hidden><input id="adCode" inputmode="numeric" placeholder="6-digit code from your email" style="width:100%"></p>
|
||||
<p><input id="adEmail" class="field" type="email" placeholder="Admin email" autocomplete="email" style="width:100%"></p>
|
||||
<p id="adCodeRow" hidden><input id="adCode" class="field mono" inputmode="numeric" placeholder="6-digit code from your email" style="width:100%"></p>
|
||||
<p id="adErr" class="small" style="color:var(--bad)" hidden></p>
|
||||
<p style="margin:0;display:flex;gap:10px">
|
||||
<button class="btn" id="adSend" type="button">Send code</button>
|
||||
<button class="btn" id="adVerify" type="button" hidden>Sign in</button>
|
||||
<button class="btn pri" id="adSend" type="button">Send code</button>
|
||||
<button class="btn pri" id="adVerify" type="button" hidden>Sign in</button>
|
||||
</p>
|
||||
<p class="small muted" style="margin:14px 0 0"><a href="/links">Back to the member area</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- signed-in: admin shell -->
|
||||
<div id="adminArea" class="bo" hidden>
|
||||
<aside class="bo-side" id="boSide">
|
||||
<a class="logo" href="/"><span class="wordmark"><svg viewBox="0 0 24 24" fill="none" stroke="#8cc8ff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12a8 8 0 0 1 14-5.3"/><path d="M18 3v4h-4"/><path d="M20 12a8 8 0 0 1-14 5.3"/><path d="M6 21v-4h4"/></svg>Link<b>Spin</b></span></a>
|
||||
<span class="byline">Brought to you by the <b>Crypto Team Build Network</b></span>
|
||||
<nav class="bo-menu" aria-label="Admin menu">
|
||||
<button data-pane="overview" class="on" type="button"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="8" rx="2"/><rect x="13" y="3" width="8" height="8" rx="2"/><rect x="3" y="13" width="8" height="8" rx="2"/><rect x="13" y="13" width="8" height="8" rx="2"/></svg>Overview</button>
|
||||
<button data-pane="house" type="button"><svg viewBox="0 0 24 24"><path d="M3 11l14-5v12L3 13v-2z"/><path d="M17 8a4 4 0 0 1 0 8M7 13v5a2 2 0 0 0 4 0v-3"/></svg>House ads</button>
|
||||
<button data-pane="campaigns" type="button"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h10"/></svg>All campaigns</button>
|
||||
<button data-pane="members" type="button"><svg viewBox="0 0 24 24"><circle cx="12" cy="7" r="3.2"/><circle cx="5" cy="17" r="2.6"/><circle cx="19" cy="17" r="2.6"/><path d="M12 10v3M12 13l-5 2M12 13l5 2"/></svg>Members</button>
|
||||
<button data-pane="reports" type="button"><svg viewBox="0 0 24 24"><path d="M12 3l9 16H3z"/><path d="M12 10v4M12 17v.5"/></svg>Reports<span class="pill" id="repBadge" hidden></span></button>
|
||||
<button data-pane="traffic" type="button"><svg viewBox="0 0 24 24"><path d="M3 17l6-6 4 4 8-8"/><path d="M14 7h7v7"/></svg>Traffic</button>
|
||||
<button data-pane="zones" type="button"><svg viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 10h18M8 15h8"/></svg>Zones</button>
|
||||
<button data-pane="domains" type="button"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></svg>Link domains</button>
|
||||
<button data-pane="blog" type="button"><svg viewBox="0 0 24 24"><path d="M4 4h12l4 4v12H4z"/><path d="M8 12h8M8 16h8M8 8h4"/></svg>Blog</button>
|
||||
<button data-pane="releases" type="button"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h7"/><circle cx="18" cy="17" r="3"/></svg>Releases</button>
|
||||
<button data-pane="pnl" type="button"><svg viewBox="0 0 24 24"><path d="M4 19V5M4 19h16"/><path d="M8 15l3-4 3 2 5-6"/></svg>P&L</button>
|
||||
<button data-pane="settings" type="button"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/></svg>Settings</button>
|
||||
<!-- signed-in: admin shell (Control Room frame: dark rail + topbar, light workspace) -->
|
||||
<div id="adminArea" class="app wide adm" hidden>
|
||||
<nav class="rail bo-menu" aria-label="Admin menu">
|
||||
<a class="mark" href="/" aria-label="LinkSpin home" title="LinkSpin home"></a>
|
||||
<button data-pane="overview" class="nb on" type="button" title="Overview"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="8" rx="2"/><rect x="13" y="3" width="8" height="8" rx="2"/><rect x="3" y="13" width="8" height="8" rx="2"/><rect x="13" y="13" width="8" height="8" rx="2"/></svg><span class="lbl">Overview</span></button>
|
||||
<button data-pane="house" class="nb" type="button" title="House ads"><svg viewBox="0 0 24 24"><path d="M3 11l14-5v12L3 13v-2z"/><path d="M17 8a4 4 0 0 1 0 8M7 13v5a2 2 0 0 0 4 0v-3"/></svg><span class="lbl">House ads</span></button>
|
||||
<button data-pane="campaigns" class="nb" type="button" title="All campaigns"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h10"/></svg><span class="lbl">All campaigns</span></button>
|
||||
<button data-pane="members" class="nb" type="button" title="Members"><svg viewBox="0 0 24 24"><circle cx="12" cy="7" r="3.2"/><circle cx="5" cy="17" r="2.6"/><circle cx="19" cy="17" r="2.6"/><path d="M12 10v3M12 13l-5 2M12 13l5 2"/></svg><span class="lbl">Members</span></button>
|
||||
<button data-pane="reports" class="nb" type="button" title="Reports"><svg viewBox="0 0 24 24"><path d="M12 3l9 16H3z"/><path d="M12 10v4M12 17v.5"/></svg><span class="lbl">Reports</span><span class="pill" id="repBadge" hidden></span></button>
|
||||
<button data-pane="traffic" class="nb" type="button" title="Traffic"><svg viewBox="0 0 24 24"><path d="M3 17l6-6 4 4 8-8"/><path d="M14 7h7v7"/></svg><span class="lbl">Traffic</span></button>
|
||||
<button data-pane="zones" class="nb" type="button" title="Zones"><svg viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 10h18M8 15h8"/></svg><span class="lbl">Zones</span></button>
|
||||
<button data-pane="domains" class="nb" type="button" title="Link domains"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></svg><span class="lbl">Link domains</span></button>
|
||||
<button data-pane="blog" class="nb" type="button" title="Blog"><svg viewBox="0 0 24 24"><path d="M4 4h12l4 4v12H4z"/><path d="M8 12h8M8 16h8M8 8h4"/></svg><span class="lbl">Blog</span></button>
|
||||
<button data-pane="releases" class="nb" type="button" title="Releases"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h7"/><circle cx="18" cy="17" r="3"/></svg><span class="lbl">Releases</span></button>
|
||||
<button data-pane="pnl" class="nb" type="button" title="P&L"><svg viewBox="0 0 24 24"><path d="M4 19V5M4 19h16"/><path d="M8 15l3-4 3 2 5-6"/></svg><span class="lbl">P&L</span></button>
|
||||
<button data-pane="settings" class="nb" type="button" title="Settings"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/></svg><span class="lbl">Settings</span></button>
|
||||
<span class="sp"></span>
|
||||
<span class="rcap">Site</span>
|
||||
<a href="/links" class="rsec" title="Member area" aria-label="Member area"><svg viewBox="0 0 24 24"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></svg><span class="lbl">Member area</span></a>
|
||||
<a href="/ledger" class="rsec" target="_blank" rel="noopener" title="Live ledger" aria-label="Live ledger"><svg viewBox="0 0 24 24"><path d="M4 19V9M10 19V5M16 19v-8M22 19H2"/></svg><span class="lbl">Live ledger</span></a>
|
||||
<a href="/" class="rsec" target="_blank" rel="noopener" title="Home page" aria-label="Home page"><svg viewBox="0 0 24 24"><path d="M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z"/></svg><span class="lbl">Home page</span></a>
|
||||
<button class="railtog" type="button" id="crRailTog" title="Collapse or expand the menu" aria-label="Collapse or expand the menu"><svg viewBox="0 0 24 24"><path d="M15 6l-6 6 6 6"/></svg><span class="lbl">Collapse</span></button>
|
||||
</nav>
|
||||
<div class="bo-links">
|
||||
<span class="bo-cap">Site</span>
|
||||
<a href="/links">Member area</a>
|
||||
<a href="/ledger" target="_blank" rel="noopener">Live ledger</a>
|
||||
<a href="/" target="_blank" rel="noopener">Home page</a>
|
||||
<div class="main">
|
||||
<div class="topbar">
|
||||
<button id="boBurger" aria-label="Menu" type="button" hidden>☰</button>
|
||||
<div><div class="crumb">Admin</div><h1 id="boTitle">Overview</h1></div>
|
||||
<span class="readout" id="chainLine"></span>
|
||||
<span class="grow"></span>
|
||||
<span class="who" title="Signed in as admin"><i>AD</i><span id="adWho">…</span></span>
|
||||
<a href="#" id="adLogout" class="btn sm">Log out</a>
|
||||
</div>
|
||||
<div class="bo-foot">
|
||||
<span id="adWho" class="small muted">…</span>
|
||||
<a href="#" id="adLogout" class="small">Log out</a>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="bo-main">
|
||||
<header class="bo-top">
|
||||
<button id="boBurger" aria-label="Menu" type="button">☰</button>
|
||||
<h2 id="boTitle" style="margin:0">Overview</h2>
|
||||
<span class="small muted" id="chainLine"></span>
|
||||
</header>
|
||||
<main class="bo-content">
|
||||
|
||||
<div class="pane" id="pane-overview">
|
||||
@@ -241,7 +186,7 @@
|
||||
<div class="card" id="memSearchCard">
|
||||
<div class="card-head"><h3>Find a member</h3><span class="sub">matches as you type; Enter opens the first match</span></div>
|
||||
<div style="display:flex;gap:8px;flex-wrap:wrap"><input id="memSearch" autocomplete="off" placeholder="Start typing a name, username, email, member # or wallet…" style="flex:1;min-width:240px"><button type="button" class="btn small" id="memOpen">Open</button></div>
|
||||
<div id="memHits" hidden style="margin-top:6px;border:1px solid var(--line);border-radius:10px;overflow:hidden"></div>
|
||||
<div id="memHits" hidden style="margin-top:6px;border:1px solid var(--line);border-radius:8px;overflow:hidden"></div>
|
||||
<p class="small" id="memSearchMsg" hidden style="margin:8px 0 0"></p>
|
||||
</div>
|
||||
<div class="card" id="memCard" hidden>
|
||||
@@ -427,7 +372,7 @@
|
||||
<label class="small">Closing (after the notes, e.g. your sign-off)<textarea id="updClosing" rows="2" style="width:100%" placeholder="See you Monday. Marty"></textarea></label>
|
||||
<label class="small">Audience<select id="updAudience"></select></label>
|
||||
<div style="display:flex;gap:8px;flex-wrap:wrap"><button type="button" class="btn small sec" id="updSaveDraft">Save draft</button><button type="button" class="btn small sec" id="updPreview">Preview</button><button type="button" class="btn small sec" id="updTest">Send test to me</button><button type="button" class="btn small" id="updSend">Send</button></div>
|
||||
<pre id="updPre" class="small" hidden style="white-space:pre-wrap;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:10px;padding:10px;max-height:320px;overflow:auto"></pre>
|
||||
<pre id="updPre" class="small" hidden style="white-space:pre-wrap;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:10px;max-height:320px;overflow:auto"></pre>
|
||||
</div>
|
||||
<div>
|
||||
<div class="small muted" style="margin:0 0 6px">Release notes to include (newest first; notes since your last send are pre-ticked)</div>
|
||||
@@ -500,10 +445,12 @@
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<div class="strip"><span>admin console</span><span>chain <b id="stripChain">·</b></span><span><a href="/links">member area</a></span><span><a href="/ledger" target="_blank" rel="noopener">live ledger</a></span><span><a href="/" target="_blank" rel="noopener">home</a></span><span class="grow"></span><span id="stClock"></span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/common.js?v=20261009a"></script>
|
||||
<script src="/assets/admin.js?v=20261010a"></script>
|
||||
<script src="/assets/admin.js?v=20261012a"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/* /admin inside the Control Room (2026-10-12, "the admin should be the same color as the site"). cr.css is the design
|
||||
system, site.css sits in the "legacy" layer, tools.css restyles the shared legacy panes (cards, tables, inputs,
|
||||
chips, buttons, toast); this file does the admin-only parts: the pane menu as a dark rail, the topbar, the
|
||||
sign-in card, and the admin tables, pills, drip steps and forms in the INSTRUMENT light scheme. */
|
||||
|
||||
/* ── sign-in ── */
|
||||
.adm-auth{min-height:100vh;display:grid;place-items:center;padding:24px 16px}
|
||||
.adm-auth .wrap{width:100%;max-width:460px;margin:0;padding:0}
|
||||
.adm-auth .hero{padding:0 0 14px;text-align:left}
|
||||
.adm-auth .hero h1{font-family:var(--display);font-size:34px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px;color:var(--ink)}
|
||||
.adm-auth .hero h1 em{color:var(--accent-hi)}
|
||||
.adm-auth .hero p.lead{font-size:14px;color:var(--ink-2);margin:0}
|
||||
.adm-auth .card{padding:18px}
|
||||
.adm-auth .card p{margin:0 0 10px}
|
||||
.adm-auth .adm-mark{display:inline-flex;align-items:center;gap:10px;margin-bottom:14px;font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
|
||||
.adm-auth .adm-mark i{position:relative;width:24px;height:24px;border-radius:50%;border:3px solid var(--accent);border-right-color:transparent}
|
||||
.adm-auth .adm-mark i::after{content:"";position:absolute;right:-5px;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--sig);box-shadow:0 0 0 3px rgba(255,106,26,.25)}
|
||||
|
||||
/* ── rail: the admin pane menu, same chrome as the member rail (admin-only page; the member NAV is untouched) ── */
|
||||
.adm .rail{overflow-y:auto;scrollbar-width:none}
|
||||
.adm .rail::-webkit-scrollbar{display:none}
|
||||
.adm .rail .nb{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--chrome-sub);font:600 13px/1 var(--body);letter-spacing:.02em;text-align:left;cursor:pointer;flex:none}
|
||||
.adm .rail .nb svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
|
||||
.adm .rail .nb:hover{color:#fff;background:transparent}
|
||||
.adm .rail .nb.on{background:rgba(31,111,235,.22);color:#fff}
|
||||
.adm .rail .nb.on::before{content:"";position:absolute;left:-10px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--sig)}
|
||||
.adm .rail .nb .lbl{display:none;white-space:nowrap}
|
||||
.adm .rail .nb .pill{position:absolute;top:4px;right:4px;margin:0;min-width:16px;height:16px;border-radius:8px;background:var(--sig);color:#fff;font:700 10px/16px var(--mono);padding:0 4px;text-align:center}
|
||||
.app.wide .rail .nb{width:auto;justify-content:flex-start;gap:12px;padding:0 10px}
|
||||
.app.wide .rail .nb .lbl{display:inline}
|
||||
.app.wide .rail .nb .pill{position:static;margin-left:auto}
|
||||
.adm .rail .rcap{font-family:var(--mono);font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--chrome-sub);opacity:.7;padding:10px 10px 4px;display:none}
|
||||
.app.wide .rail .rcap{display:block}
|
||||
|
||||
/* ── topbar + strip ── */
|
||||
.adm .topbar #boBurger{display:none}
|
||||
.adm .topbar h1{color:var(--chrome-ink)}
|
||||
.adm .topbar .readout:empty{display:none}
|
||||
.adm .topbar .who{cursor:default}
|
||||
.adm .topbar .who:hover{border-color:var(--chrome-line)}
|
||||
.adm .topbar .who #adWho{font-size:12px;color:var(--chrome-ink);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
||||
.adm .topbar a.btn{color:var(--ink)}
|
||||
.adm .strip a{color:var(--chrome-sub);text-decoration:none} .adm .strip a:hover{color:var(--chrome-ink)}
|
||||
|
||||
/* ── content ── */
|
||||
.adm .bo-content{max-width:1280px}
|
||||
.adm .pane>.grid:first-child{margin-top:0}
|
||||
.adm .card p{margin:0 0 10px} .adm .card p:last-child{margin-bottom:0}
|
||||
.adm .card h3+p,.adm .card-head+p{margin-top:6px}
|
||||
.adm .bo-content .btn:not(.sec):not(.ghost):not(.pri){background:linear-gradient(180deg,#3A83F0,var(--accent));color:#fff;border-color:var(--accent-hi);box-shadow:0 8px 18px -10px rgba(31,111,235,.9),0 1px 0 rgba(255,255,255,.3) inset}
|
||||
.adm .bo-content .btn:not(.sec):not(.ghost):not(.pri):hover{background:linear-gradient(180deg,#4A8FF3,#2A77ED)}
|
||||
.adm .btn.small.ghost{background:transparent;box-shadow:none;border-color:transparent;color:var(--accent-hi)}
|
||||
.adm .btn.small.ghost:hover{border-color:var(--line-strong)}
|
||||
.adm .btn.sec:hover{border-color:var(--accent);color:var(--accent-hi)}
|
||||
.adm label.small{display:grid;gap:4px;font-size:11.5px;font-weight:700;color:var(--ink-2);line-height:1.35}
|
||||
.adm label.small .muted{font-weight:500}
|
||||
.adm label.small input:not([type=checkbox]):not([type=radio]),.adm label.small select,.adm label.small textarea{width:100%;min-width:0}
|
||||
.adm .adm-form label.small{display:block;margin-bottom:4px}
|
||||
.adm .small{font-size:12.5px}
|
||||
.adm .card .sub{color:var(--muted)}
|
||||
.adm .badge.amber{background:var(--warn-soft);color:var(--warn);border-color:rgba(194,65,12,.35)}
|
||||
.adm code{font-family:var(--mono);font-size:11.5px;background:var(--panel-2);border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:var(--ink)}
|
||||
.adm pre.small{background:var(--panel-2)!important;color:var(--ink);font-family:var(--mono);font-size:12px}
|
||||
.adm #memHits{background:#fff}
|
||||
.adm #memHits button:hover{background:var(--accent-soft)}
|
||||
.adm .statx .nv{font-size:26px}
|
||||
.adm .chip.flat{margin-top:6px}
|
||||
|
||||
/* tables */
|
||||
.adm-table{width:100%;table-layout:auto;border-collapse:collapse}
|
||||
.adm-table th{cursor:pointer;user-select:none;white-space:nowrap}
|
||||
#trfSources th,#trfAngles th{white-space:normal;text-align:center;line-height:1.2;vertical-align:bottom}
|
||||
#trfSources td:not(:first-child),#trfAngles td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
|
||||
.adm-table th.sort-asc::after{content:' \25B2';font-size:9px;color:var(--accent)}
|
||||
.adm-table th.sort-desc::after{content:' \25BC';font-size:9px;color:var(--accent)}
|
||||
.adm-table.kv th{cursor:default;color:var(--muted);font-weight:500;text-transform:none;letter-spacing:0;font-family:var(--body);font-size:12.5px}
|
||||
.adm-table.kv th.sort-asc::after,.adm-table.kv th.sort-desc::after{content:''}
|
||||
.adm-table td.act,.adm-table th:last-child{width:1%;white-space:nowrap}
|
||||
.adm-table td:first-child{overflow-wrap:anywhere}
|
||||
.adm-table th,.adm-table td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink)}
|
||||
.adm-table tr:hover td{background:rgba(31,111,235,.04)}
|
||||
.adm-table td.when{white-space:nowrap}
|
||||
.adm-table th{color:var(--muted);font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;background:var(--panel-2)}
|
||||
.adm-table .act{white-space:nowrap}
|
||||
.adm-table .act button,.adm-table .act .btn{margin-right:6px}
|
||||
.adm-table a{color:var(--accent-hi)}
|
||||
.tablewrap{border:1px solid var(--line);border-radius:8px;background:#fff;overflow-x:auto}
|
||||
.tablewrap:empty,.tablewrap:has(> table:empty){display:none}
|
||||
|
||||
/* status pills */
|
||||
.st{display:inline-block;border-radius:4px;padding:1px 7px;font:700 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--line-strong);color:var(--ink-2);background:var(--panel-2)}
|
||||
.st.active,.st.running,.st.released,.st.done{background:var(--ok-soft);color:var(--ok);border-color:rgba(14,138,92,.4)}
|
||||
.st.paused,.st.pending,.st.queued,.st.draft{background:var(--warn-soft);color:var(--warn);border-color:rgba(194,65,12,.4)}
|
||||
.st.out,.st.ended,.st.finished{background:var(--panel-2);color:var(--muted);border-color:var(--line-strong)}
|
||||
.st.rejected,.st.burned,.st.failed{background:var(--bad-soft);color:var(--bad);border-color:rgba(185,28,28,.4)}
|
||||
.house-tag{display:inline-block;white-space:nowrap;overflow-wrap:normal;word-break:normal;border:1px solid rgba(109,74,255,.45);color:#6D4AFF;background:#EEE9FF;border-radius:4px;padding:0 6px;font:700 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;margin-left:6px;vertical-align:middle}
|
||||
|
||||
/* forms */
|
||||
.adm-form p{margin:0 0 10px}
|
||||
.trunc{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
|
||||
textarea.json{font-family:var(--mono);font-size:12px;width:100%;min-height:260px}
|
||||
.ph-chips{display:inline-flex;gap:6px;flex-wrap:wrap;margin-left:6px;vertical-align:middle}
|
||||
.ph-chips .chip-t{padding:2px 10px;font-size:11px;font-family:var(--mono);text-transform:none;letter-spacing:0;cursor:pointer;background:#fff}
|
||||
.drip-steps{display:grid;gap:12px}
|
||||
.drip-step{border:1px solid var(--line);border-radius:8px;padding:14px 16px;background:var(--panel-2)}
|
||||
.drip-step .ds-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
|
||||
.drip-step .ds-n{font-family:var(--mono);font-size:11px;font-weight:700;color:var(--accent-hi);letter-spacing:.08em;text-transform:uppercase}
|
||||
.drip-step .ds-when{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
|
||||
.drip-step .ds-when input{width:80px;text-align:right}
|
||||
.drip-step .ds-when b{color:var(--ink)}
|
||||
.drip-step .ds-tools{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
|
||||
.drip-step .ds-tools .btn{padding:4px 10px;font-size:11px}
|
||||
.drip-step input.ds-subject{width:100%;margin-bottom:8px;font-weight:700}
|
||||
.drip-step textarea.ds-body{width:100%;min-height:200px;font-size:13px;line-height:1.5}
|
||||
.drip-step input,.drip-step textarea{background:#fff}
|
||||
.rates-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px 22px}
|
||||
.rates-form .rf{display:flex;flex-direction:column;gap:4px}
|
||||
.rates-form .rf label{font-size:12.5px;font-weight:700;color:var(--ink)}
|
||||
.rates-form .rf .hint{font-size:11.5px;color:var(--muted)}
|
||||
.rates-form .rf input[type=number]{max-width:160px}
|
||||
.rates-form .rf.wide{grid-column:1/-1}
|
||||
.rates-form .sub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
|
||||
.rates-form .sub-grid label{font-size:11.5px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;gap:3px}
|
||||
.rates-form table.tiers{width:auto;font-size:13px}
|
||||
.rates-form table.tiers td,.rates-form table.tiers th{padding:4px 8px;border:0}
|
||||
.rates-form table.tiers input{width:90px}
|
||||
.kv-form{display:grid;gap:8px}
|
||||
.kv-row{display:grid;grid-template-columns:220px 1fr auto;gap:10px;align-items:center}
|
||||
.kv-row .k{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere;color:var(--ink-2)}
|
||||
.kv-row input[type=checkbox]{width:auto;justify-self:start}
|
||||
.ed-bar button{font-size:12px}
|
||||
|
||||
/* phone: the rail is a scrolling bottom bar with icon + label (twelve admin panes do not fit side by side) */
|
||||
@media (max-width:760px){
|
||||
.adm .rail{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:2px;scrollbar-width:none}
|
||||
.adm .rail .nb,.app.wide .rail .nb{flex-direction:column;justify-content:center;gap:3px;width:auto;min-width:62px;height:50px;padding:0 6px;border-radius:8px}
|
||||
.adm .rail .nb .lbl,.app.wide .rail .nb .lbl{display:inline;font-size:9.5px;letter-spacing:0}
|
||||
.adm .rail .nb .pill,.app.wide .rail .nb .pill{position:absolute;top:2px;right:6px;margin:0}
|
||||
.adm .rail .nb.on::before{display:none}
|
||||
.adm .rail .rcap,.adm .rail a.rsec{display:none}
|
||||
.adm .main{padding-bottom:72px;min-height:100vh}
|
||||
.adm .topbar .who{display:none}
|
||||
.adm .topbar h1{font-size:20px}
|
||||
.adm .grid.c2,.adm .grid.c3{grid-template-columns:1fr}
|
||||
.adm .pane>.grid[style*="minmax(200px"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
|
||||
.adm .statx{padding:10px 12px} .adm .statx .nv{font-size:22px}
|
||||
.adm .pane [style*="grid-template-columns:1fr auto"]{grid-template-columns:1fr!important}
|
||||
.adm .bo-content{padding:12px 14px 20px}
|
||||
.kv-row{grid-template-columns:1fr} .kv-row .btn{justify-self:start}
|
||||
.adm .pane [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
|
||||
.trunc{max-width:160px}
|
||||
}
|
||||
+10
-1
@@ -59,6 +59,14 @@
|
||||
document.addEventListener('click', e => { const g = e.target.closest('[data-goto]'); if (g) setPane(g.dataset.goto); });
|
||||
window.addEventListener('hashchange', () => setPane(location.hash.slice(1)));
|
||||
$('boBurger').addEventListener('click', () => $('adminArea').classList.toggle('side-open'));
|
||||
// Control Room frame (2026-10-12): the rail collapse remembers the member shell's choice; the strip clock ticks Central
|
||||
(function () {
|
||||
const app = $('adminArea'), tog = $('crRailTog');
|
||||
try { app.classList.toggle('wide', localStorage.getItem('cr.rail') !== 'narrow'); } catch (e) {}
|
||||
if (tog) tog.addEventListener('click', () => { const wide = !app.classList.contains('wide'); app.classList.toggle('wide', wide); try { localStorage.setItem('cr.rail', wide ? 'wide' : 'narrow'); } catch (e) {} });
|
||||
const clock = () => { const c = $('stClock'); if (!c) return; try { c.textContent = new Date().toLocaleTimeString('en-US', { timeZone: 'America/Chicago', hour: 'numeric', minute: '2-digit' }) + ' CT'; } catch (e) { c.textContent = ''; } };
|
||||
clock(); setInterval(clock, 30000);
|
||||
})();
|
||||
|
||||
async function render() {
|
||||
let me = { admin: false };
|
||||
@@ -70,6 +78,7 @@
|
||||
try {
|
||||
const c = await IAP.getConfig();
|
||||
$('chainLine').textContent = c.chainName + (c.rehearsal ? ' · rehearsal' : '');
|
||||
if ($('stripChain')) $('stripChain').textContent = c.chainName + (c.rehearsal ? ' (rehearsal)' : '');
|
||||
} catch (e) {}
|
||||
setPane(location.hash.slice(1) || 'overview');
|
||||
}
|
||||
@@ -538,7 +547,7 @@
|
||||
const r = await api('/api/admin/promos', { code: $('pcCode').value, credits: $('pcCredits').value, partner: $('pcPartner').value, maxUses: $('pcMax').value, expires: $('pcExpires').value || null, active: true });
|
||||
msg.textContent = 'Saved ' + r.code.code + ': ' + r.code.credits + ' credits.'; msg.style.color = 'var(--mint)';
|
||||
$('pcCode').value = ''; $('pcCredits').value = ''; $('pcPartner').value = ''; loadPromos();
|
||||
} catch (e) { msg.textContent = e.message; msg.style.color = '#ff8a8a'; }
|
||||
} catch (e) { msg.textContent = e.message; msg.style.color = 'var(--bad)'; }
|
||||
});
|
||||
async function loadTraffic() {
|
||||
loadPromos().catch(e => IAP.status(e.message, 'bad'));
|
||||
|
||||
Reference in New Issue
Block a user