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:
+3
-1
@@ -144,4 +144,6 @@ async function render(job) {
|
||||
return await R.spaces.put(key, fs.readFileSync(outFile), 'video/mp4');
|
||||
} finally { try { fs.rmSync(dir, { recursive: true, force: true }); } catch (e) {} }
|
||||
}
|
||||
module.exports = { init, list, enqueue, available, SOURCES };
|
||||
// admin Member content (2026-10-18): every render job (the file keeps the newest 500)
|
||||
function adminJobs() { return jobs().map(j => Object.assign({}, j, { title: (SOURCES.find(s => s.slug === j.slug) || {}).title || j.slug })); }
|
||||
module.exports = { init, adminJobs, list, enqueue, available, SOURCES };
|
||||
|
||||
Reference in New Issue
Block a user