edaf98c8f6
Watershed look from the approved mockup (hero, topo pattern, icons). Network sign-in through the hub, hub membership, activity ping. Reshare links per member per ad with branch/step tracking; family-tree dashboard (branch, step, reshares, views, clicks, sign-ups, Boosts). Verified views earn ad credits for the branch's resharer (L3). L2 sign-up pipeline (hub-new, confirmed email, not self device/IP, throwaway block, daily cap, fraud score) with keeper-signed reward vouchers and a pending-rewards ledger; payouts OFF (REWARD_PAYOUTS). L1 Boosts through VASShop with signed orders naming the sponsor line and the resharer. Trust pack, chatbot, promo kit, PolHunter embed. All numbers are PROPOSALS until Marty sets them. qa/e2e.mjs 59/59 on a local anvil chain, chatbot test 108/108. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
1.1 KiB
JavaScript
15 lines
1.1 KiB
JavaScript
// Front page: the reshare board, credit-featured ads, today's numbers and the PolHunter embed (hunters' visits never count).
|
|
(async function () {
|
|
const $ = VAS.$;
|
|
const d = await VAS.wire('front').catch(() => ({}));
|
|
const t = d.today || {};
|
|
$('todayStats').innerHTML = [[t.ads, 'ads running'], [t.reshares, 'reshares today'], [t.views, 'verified views today'], [t.vclicks, 'verified clicks today']]
|
|
.map(x => '<div class="stat"><b>' + VAS.n(x[0]) + '</b><span>' + x[1] + '</span></div>').join('');
|
|
const b = d.board || [];
|
|
$('boardAds').innerHTML = b.length ? b.map(x => VAS.adCard(x, { place: 'board', extra: '<a class="btn sm" style="margin-top:8px" href="/a/' + x.id + '">Open and reshare</a>' })).join('')
|
|
: '<p class="muted">No ads yet. <a href="/my#post">Post the first one free</a>.</p>';
|
|
VAS.featured($('featured'), d);
|
|
// PolHunter mission embed (the network pattern; the mission is saved inactive until go-live)
|
|
const ph = document.createElement('script'); ph.async = true; ph.src = 'https://polhunter.com/embed.js'; ph.setAttribute('data-site', 'viraladsource'); $('phEmbed').appendChild(ph);
|
|
})();
|