Admin Member content pane: every page, link, source, zone, ad, postback, upload, profile, broadcast, audience and video members made, in one list
- GET /api/admin/content?type=&q=&from=&to=&flagged=1&page=&per=&fresh=1 (admin only, read-only): content.js normalizes rows from each module's own adminAll() (new one-pass accessors in pages, rotator, sources, zones, postbacks, audiences, messages.adminBroadcasts, videomaker.adminJobs) plus ads.adminList and accounts.listAll; owner shown as @username, email and member #; created in Central time; totals per type; busiest hosts in the current view - Flags: open member reports on an ad, dead or parked destinations, burned link domains, failing postbacks, admin-paused zones, home-page demo links. No deny list exists yet - Row actions only reuse existing moderation routes (campaign pause/resume, zone pause/resume); "Open member" jumps to the member card; page Preview works for drafts and is never counted (admin allowed on ?preview=1) - Uploads: /uploads files now recorded with their uploader in uploads-index.json; older files get the owner from whatever uses them (campaign creative, profile, wall offer) - Credits > Your purchases: buys made from linked positions are included, labelled "Position N" - Cache tags: admin.css 20261018a, admin.js 20261018b, credits-screen.js 20261018b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -130,6 +130,42 @@ textarea.json{font-family:var(--mono);font-size:12px;width:100%;min-height:260px
|
||||
.kv-row input[type=checkbox]{width:auto;justify-self:start}
|
||||
.ed-bar button{font-size:12px}
|
||||
|
||||
/* member content (2026-10-18): type tiles, tabs, filters, busiest hosts, one row per item */
|
||||
.ct-totals{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;margin:0 0 16px}
|
||||
.ct-tile{text-align:left;cursor:pointer;font:inherit;color:inherit;display:block;width:100%}
|
||||
.ct-tile .nv{font-size:22px;font-weight:700;font-family:var(--display);color:var(--ink)}
|
||||
.ct-tile .lb{font-size:12px;font-weight:700;color:var(--ink-2);margin:2px 0}
|
||||
.ct-tile:hover{border-color:var(--accent)}
|
||||
.ct-tile.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
|
||||
.ct-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
|
||||
.ct-filters{display:flex;gap:8px 10px;flex-wrap:wrap;align-items:center}
|
||||
.ct-filters #ctQ{flex:1 1 260px;min-width:0}
|
||||
.ct-filters label.small{display:flex;align-items:center;gap:6px;font-weight:600;color:var(--ink-2)}
|
||||
.ct-filters input[type=date]{width:auto}
|
||||
.ct-filters .ct-chk input{width:auto;margin:0}
|
||||
.ct-hosts{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 10px}
|
||||
.ct-hosts .chip-t{font-family:var(--mono);text-transform:none;letter-spacing:0;font-size:11px}
|
||||
.ct-hosts .chip-t.bad{border-color:rgba(185,28,28,.5);color:var(--bad);background:var(--bad-soft)}
|
||||
.ct-table .ct-type{font:700 10.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--accent-hi);white-space:nowrap}
|
||||
.ct-table .ct-title{font-weight:700;margin:0 0 3px;overflow-wrap:anywhere}
|
||||
.ct-table td{overflow-wrap:anywhere}
|
||||
.ct-table .ct-l{font-size:12.5px;color:var(--ink-2);margin:2px 0;line-height:1.45}
|
||||
.ct-table .ct-flags{margin:2px 0 4px;display:flex;gap:4px;flex-wrap:wrap}
|
||||
.ct-table .ct-flags .st{text-transform:none;letter-spacing:0;font-family:var(--body);font-size:11px}
|
||||
.ct-table tr.ct-flagged td{background:rgba(185,28,28,.035)}
|
||||
.ct-table .ct-nums div{white-space:nowrap}
|
||||
.ct-table td[data-l="Status"] .st{white-space:nowrap}
|
||||
.ct-table .ct-mem{font-weight:700}
|
||||
.ct-table td[data-l="Owner"]{min-width:180px;overflow-wrap:break-word}
|
||||
.ct-table .ct-dest{display:inline-block;margin:0 8px 2px 0;font-size:12px}
|
||||
.ct-table .ct-dest.off a{text-decoration:line-through;opacity:.7}
|
||||
.ct-table .bad{color:var(--bad)}
|
||||
.ct-thumb{display:inline-block;vertical-align:middle;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:var(--panel-2);line-height:0}
|
||||
.ct-thumb img{max-height:40px;max-width:90px;display:block}
|
||||
.ct-thumb.big img{max-height:64px;max-width:240px}
|
||||
.ct-pager{display:flex;gap:12px;align-items:center;justify-content:center;margin:12px 0 0}
|
||||
.ct-pager:empty{display:none}
|
||||
|
||||
/* 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}
|
||||
@@ -149,4 +185,17 @@ textarea.json{font-family:var(--mono);font-size:12px;width:100%;min-height:260px
|
||||
.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}
|
||||
.ct-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
|
||||
.ct-tile.statx{padding:8px 10px} .ct-tile .nv{font-size:17px} .ct-tile .lb{font-size:10.5px}
|
||||
.ct-table,.ct-table tbody,.ct-table tr,.ct-table td{display:block;width:100%}
|
||||
.ct-table tr:first-child{display:none}
|
||||
.ct-table tr{border-bottom:1px solid var(--line);padding:8px 0}
|
||||
.ct-table td{border:0;padding:3px 12px}
|
||||
.ct-table td[data-l]::before{content:attr(data-l);display:block;font:700 9.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
|
||||
.ct-table td[data-l="Type"]::before{display:none}
|
||||
.ct-table td.act{width:auto}
|
||||
.ct-table .ct-nums{display:flex;flex-wrap:wrap;gap:2px 12px}
|
||||
.ct-table .ct-nums::before{flex-basis:100%}
|
||||
.ct-filters label.small{flex:1 1 140px}
|
||||
.ct-filters input[type=date]{flex:1;min-width:0}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user