Promo kit (Marty 2026-11-14: "get all the creatives built for downline banners and VBB, and put them in all the places they need to go"): promokit.js is the one source for the Downline Banners kit, published as GET /api/promo-kit?u=<network username or wallet> (public, CORS open, read by /promote and by InstantAdPay's Promo tools > Network sites): personal links (?ref=), 21 creatives (3 angles: $5 spot + 300 guaranteed views / 10 levels pay as spots sell after yours / no withdrawals, paid in the same transaction; each in 125x125, 468x60, 728x90, 300x250, 160x600, 1200x630, 1080x1080) at /art/kit/dlb-<angle>-<shape>.png (ad-blocker-neutral names, rendered crisp from HTML by tools/kit-art.mjs with Playwright), 5 lines, 3 headlines, 1 email, 2 posts (facts per SPEC.md + contract: sponsor 30%, 10 levels x 5.5%, splits fixed; nothing promised). /promote page (kitpage.js + promote.js + kit.css): username from sign-in, ?u= or typed; nav + footer link Promote; sitemap. server.js: one require + one hook line. common.js?v=20261114p. Smoke 106/106 (promo kit feed, every PNG at its exact size, Promote page signed in, desktop + phone screenshots; gate step now screenshots itself if it ever stalls).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@ const dlbnas = require('./dlbnas'); // Network Ad Space: standing house banner +
|
||||
const refuelspots = require('./refuelspots'); // refuel spots: $50+ Monthly Refuels earn a spot, engine wallet pays (2026-11-13)
|
||||
const tgproof = require('./tgproof'); // payment proof in the Telegram payments topic, one message per spot sale (2026-11-13)
|
||||
const hubreport = require('./hubreport'); // network hub, shadow mode: members reported by wallet (2026-11-13), off unless HUB_ENABLED
|
||||
const promokit = require('./promokit'); // promo kit feed /api/promo-kit, the /promote page, /art/kit/* creatives (2026-11-14)
|
||||
const networksso = require('./networksso'); // network sign-in: arrive signed in from InstantAdPay or LinkSpin (2026-11-13), see networksso.js
|
||||
const SEL = { buy: iface.getFunction('buy').selector, buyFor: iface.getFunction('buyFor').selector }; // the browser builds calldata from these (ABI stays in abi.js)
|
||||
|
||||
@@ -274,6 +275,7 @@ const server = http.createServer(async (req, res) => {
|
||||
|
||||
// -- network sign-in (2026-11-13): /sso/start, /sso/in, /api/sso/status
|
||||
if (req.method === 'GET' && (p.startsWith('/sso/') || p === '/api/sso/status') && await networksso.handle(req, res, u)) return;
|
||||
if ((p === '/api/promo-kit' || p === '/promote' || p.startsWith('/art/kit/')) && promokit.handle(req, res, u, sendFile)) return;
|
||||
|
||||
// -- pages
|
||||
if (req.method === 'GET' || req.method === 'HEAD') {
|
||||
@@ -297,7 +299,7 @@ const server = http.createServer(async (req, res) => {
|
||||
// sitemap (2026-11-13, SEO): the public pages only
|
||||
if (p === '/sitemap.xml') {
|
||||
const day = new Date().toISOString().slice(0, 10);
|
||||
const urls = ['/', '/board', '/how', '/ledger', '/contract', '/join'].map(u => '<url><loc>https://' + C.site + u + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
const urls = ['/', '/board', '/how', '/ledger', '/contract', '/join', '/promote'].map(u => '<url><loc>https://' + C.site + u + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
res.writeHead(200, headers({ 'Content-Type': 'application/xml; charset=utf-8', 'Cache-Control': 'public, max-age=3600' }));
|
||||
return res.end('<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' + urls + '</urlset>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user