Network Weekend (Marty 2026-11-17): ribbon + date-gated chatbot fact (gift a spot), no price or split change
netdeals.js + /assets/netweekend.js (/api/network-deals from the hub), loaded by common.js (not admin, never in a frame), common.js?v=20261117nw. FACTS line live Fri 11-27 00:00 CT to Tue 12-01 00:00 CT (WEEKEND_NOW test clock). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+7
-2
@@ -12,7 +12,11 @@
|
||||
const core = require('./chatcore');
|
||||
const C = require('./config').get();
|
||||
|
||||
const KNOWLEDGE_DATE = '2026-11-16';
|
||||
const KNOWLEDGE_DATE = '2026-11-17';
|
||||
// Network Weekend (Black Friday to Cyber Monday 2026): live Fri 11-27 00:00 CT to Tue 12-01 00:00 CT (CST = UTC-6); WEEKEND_NOW = test clock
|
||||
const NW_START = Date.parse('2026-11-27T06:00:00Z'), NW_END = Date.parse('2026-12-01T06:00:00Z');
|
||||
const nwNow = () => { const t = process.env.WEEKEND_NOW ? Date.parse(process.env.WEEKEND_NOW) : NaN; return Number.isNaN(t) ? Date.now() : t; };
|
||||
const nwLive = () => { const t = nwNow(); return t >= NW_START && t < NW_END; };
|
||||
const URL_ = 'https://' + C.site;
|
||||
const SUPPORT = 'https://instantadpay.com/support';
|
||||
const NOT_PROMISED = 'Nothing is promised: you are paid only when spots sell after yours, and a spot can earn back less than it cost.';
|
||||
@@ -83,8 +87,9 @@ const FACTS = () => [
|
||||
'- TAKEDOWN: the admin can take down a spot that breaks the rules, with a reason. It is hidden everywhere (board, gate, links, Network Ad Space), keeps its place (a house banner holds it, nobody moves), counts no views while down; the owner sees "Taken down" with the reason on My Spots. On-chain payments already happened at purchase and never change; there is no refund. The admin can restore it.',
|
||||
'- REFUEL SPOTS: a counted Monthly Refuel of $50+ on InstantAdPay or LinkSpin earns one spot, bought for the member under their network sponsor, paid by the company.',
|
||||
'- BOARD: open slots show members\' LinkSpin Banner Spins, then network house ads (InstantAdPay, LinkSpin, network games). Pages: /, /board, /how, /join, /my, /promote, /ledger, /contract, /terms, /disclaimer, /privacy.',
|
||||
(nwLive() ? '- NETWORK WEEKEND (live now, Black Friday to Cyber Monday, Fri 11-27 to Mon 11-30, midnight to midnight Central): Downline Banners has no price or split change (a spot stays $5). The weekend idea here is gifting: on /join, "Buy a spot for someone else" pays a $5 spot for a teammate, the spot is theirs and the payment splits exactly like any other spot. Every network deal: https://instantadpay.com/weekend' : null),
|
||||
'- NO REFUNDS: blockchain payments are final. SUPPORT for account or payment problems: network support at ' + SUPPORT + ' (InstantAdPay runs the one desk for every network site). This is advertising with a share of later sales, not an investment. Nothing is promised.'
|
||||
].join('\n');
|
||||
].filter(Boolean).join('\n');
|
||||
|
||||
const SITE = {
|
||||
id: 'bannerline', hubSite: 'bannerline', netId: 'dlb', name: 'Downline Banners', url: URL_, supportUrl: SUPPORT, knowledgeDate: KNOWLEDGE_DATE,
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
// Network deals for this site's "Network Weekend" ribbon (Marty 2026-11-17). One source: the hub's public GET /v1/network-deals
|
||||
// (HUB_URL). Cached 2 minutes, refreshed in the background, never waits on a slow hub (2.5 s timeout); hub down = no ribbon.
|
||||
// The same file lives in every network site. Never RM Circle, never the games (the hub list never names them).
|
||||
// The page (/assets/netweekend.js) switches the ribbon on and off by its own clock at startsAt / endsAt, so a cached copy never
|
||||
// shows early or late. setLocal(fn) lets a site rewrite its own deal line from live data (for example a price read from chain),
|
||||
// so the ribbon never shows a number the contract does not charge: fn(deal) returns the deal, a changed copy, or null to drop it.
|
||||
const TTL = 2 * 60 * 1000;
|
||||
let cache = { at: 0, body: { events: [] } };
|
||||
let inflight = null;
|
||||
let local = null;
|
||||
|
||||
const hubUrl = () => String(process.env.HUB_URL || 'https://hub.saasy.top').trim().replace(/\/+$/, '');
|
||||
const safeUrl = u => (/^https:\/\/[a-z0-9.-]+(\/[^\s"'<>]*)?$/i.test(String(u || '')) ? String(u) : '');
|
||||
const str = (v, n) => String(v == null ? '' : v).slice(0, n || 300);
|
||||
function clean(j) {
|
||||
if (!j || !Array.isArray(j.events)) return null;
|
||||
return { events: j.events.slice(0, 5).filter(e => e && e.id && !Number.isNaN(Date.parse(e.startsAt)) && !Number.isNaN(Date.parse(e.endsAt))).map(e => ({
|
||||
id: str(e.id, 60), name: str(e.name, 60), tagline: str(e.tagline, 160), url: safeUrl(e.url), startsAt: e.startsAt, endsAt: e.endsAt,
|
||||
days: e.days && typeof e.days === 'object' ? Object.fromEntries(Object.entries(e.days).slice(0, 20).map(([k, v]) => [str(k, 10), str(v, 40)])) : {},
|
||||
deals: (Array.isArray(e.deals) ? e.deals : []).slice(0, 40).map(d => {
|
||||
const x = { site: str(d.site, 30), name: str(d.name, 80), url: safeUrl(d.url), text: str(d.text), endsAt: Number.isNaN(Date.parse(d.endsAt)) ? e.endsAt : d.endsAt };
|
||||
if (d.note) x.note = str(d.note, 120);
|
||||
if (d.byDay && typeof d.byDay === 'object') x.byDay = Object.fromEntries(Object.entries(d.byDay).slice(0, 20).map(([k, v]) => [str(k, 10), str(v)]));
|
||||
return x;
|
||||
})
|
||||
})) };
|
||||
}
|
||||
function refresh() {
|
||||
if (inflight || process.env.NETWORK_DEALS_HUB === '0') return inflight;
|
||||
const ac = new AbortController(); const t = setTimeout(() => ac.abort(), 2500);
|
||||
inflight = fetch(hubUrl() + '/v1/network-deals', { signal: ac.signal })
|
||||
.then(r => (r.ok ? r.json() : null))
|
||||
.then(j => { const b = clean(j); if (b) cache = { at: Date.now(), body: b }; else cache.at = Date.now(); })
|
||||
.catch(() => { cache.at = Date.now() - TTL + 30 * 1000; }) // hub down: try again in 30 s, keep the last good copy
|
||||
.finally(() => { clearTimeout(t); inflight = null; });
|
||||
return inflight;
|
||||
}
|
||||
function current() { if (Date.now() - cache.at > TTL) refresh(); return cache.body; }
|
||||
function setLocal(fn) { local = typeof fn === 'function' ? fn : null; }
|
||||
function withLocal(body, self) {
|
||||
if (!local) return body;
|
||||
return { events: body.events.map(e => Object.assign({}, e, { deals: e.deals.map(d => {
|
||||
if (d.site !== self) return d;
|
||||
try { const r = local(Object.assign({}, d)); return r === undefined ? d : r; } catch (err) { return d; }
|
||||
}).filter(Boolean) })) };
|
||||
}
|
||||
// GET /api/network-deals: public, short cache, the same answer on every page. self = this site's network id (NETWORK_SITE_ID).
|
||||
function handle(req, res, self) {
|
||||
const me = String(self || process.env.NETWORK_SITE_ID || '').trim().toLowerCase();
|
||||
const body = Object.assign({ self: me }, withLocal(current(), me));
|
||||
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'public, max-age=60', 'X-Content-Type-Options': 'nosniff' });
|
||||
res.end(JSON.stringify(body));
|
||||
}
|
||||
module.exports = { current, handle, refresh, setLocal, clean, _set: b => { cache = { at: Date.now(), body: clean(b) || { events: [] } }; } };
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/admin.js?v=1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -114,3 +114,10 @@ window.BL = (function () {
|
||||
function withRef(href, sponsor) { if (!sponsor) return href; return href + (href.includes('?') ? '&' : '?') + 'ref=' + encodeURIComponent(sponsor); }
|
||||
return { $, esc, getConfig, fmtPol, short, framed, status, getJSON, post, renderNav, renderFooter, tile, withRef, zone };
|
||||
})();
|
||||
// Network Weekend ribbon (Marty 2026-11-17): netweekend.js paints it only while a network event is live (dates from the hub through
|
||||
// /api/network-deals). Not on the admin page, never inside a frame (traffic-exchange views).
|
||||
(function () {
|
||||
if (/^\/admin/.test(location.pathname)) return;
|
||||
try { if (window.top !== window) return; } catch (e) { return; }
|
||||
var s = document.createElement('script'); s.src = '/assets/netweekend.js?v=20261117'; s.defer = true; s.setAttribute('data-site', 'dlb'); document.head.appendChild(s);
|
||||
})();
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
// "Network Weekend" ribbon (Marty 2026-11-17): a thin bar at the top of every network site page while a network event is live.
|
||||
// Data: /api/network-deals (netdeals.js, from the hub). Switches on and off by this page's own clock at the event's exact
|
||||
// startsAt / endsAt (US Central midnights), so a cached feed never shows it early or late, and it takes itself down at endsAt on
|
||||
// a page left open. Shows this site's own deal for today (byDay, Central date) and links to the full deals page.
|
||||
// The same file lives in every network site. Never RM Circle, never the games. No inline styles (CSP): styles go through CSSOM.
|
||||
// Test clock: window.__NW_NOW (ms) before this script runs; nothing else.
|
||||
(function () {
|
||||
if (window.__nwRibbon) return; window.__nwRibbon = 1;
|
||||
var tag = document.currentScript;
|
||||
var meAttr = (tag && tag.getAttribute('data-site')) || '';
|
||||
function now() { return typeof window.__NW_NOW === 'number' ? window.__NW_NOW : Date.now(); }
|
||||
// late November is CST (UTC-6) for every date this ribbon covers
|
||||
function ctDay(ms) { return new Date(ms - 6 * 3600 * 1000).toISOString().slice(0, 10); }
|
||||
function closedKey(id, day) { return 'nw.closed.' + id + '.' + day; }
|
||||
function isClosed(id, day) { try { return window.localStorage.getItem(closedKey(id, day)) === '1'; } catch (e) { return false; } }
|
||||
function setClosed(id, day) { try { window.localStorage.setItem(closedKey(id, day), '1'); } catch (e) {} }
|
||||
var bar = null;
|
||||
function remove() { if (bar && bar.parentNode) bar.parentNode.removeChild(bar); bar = null; }
|
||||
function paint(body) {
|
||||
var me = meAttr || (body && body.self) || '';
|
||||
var t = now();
|
||||
var ev = ((body && body.events) || []).filter(function (e) { return t >= Date.parse(e.startsAt) && t < Date.parse(e.endsAt); })[0];
|
||||
if (!ev) { remove(); return false; }
|
||||
var day = ctDay(t);
|
||||
if (isClosed(ev.id, day)) { remove(); return true; }
|
||||
var mine = (ev.deals || []).filter(function (d) { return d.site === me && t < Date.parse(d.endsAt || ev.endsAt); })[0];
|
||||
var line = mine ? ((mine.byDay && mine.byDay[day]) || mine.text) : '';
|
||||
var label = (ev.days && ev.days[day]) || '';
|
||||
var onDealsPage = ev.url && (location.origin + location.pathname) === ev.url;
|
||||
remove();
|
||||
bar = document.createElement('div');
|
||||
bar.className = 'nw-ribbon'; bar.setAttribute('role', 'region'); bar.setAttribute('aria-label', ev.name);
|
||||
bar.style.cssText = 'position:relative;z-index:50;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;justify-content:center;padding:8px 40px 8px 16px;'
|
||||
+ 'background:#14161b;color:#f4f1e8;font:600 13.5px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:center;border-bottom:2px solid #f2c94c';
|
||||
// built node by node with CSSOM styles: no style attributes, so a strict CSP (style-src 'self') has nothing to block
|
||||
function el(tagName, css, text) { var n = document.createElement(tagName); if (css) n.style.cssText = css; if (text) n.textContent = text; return n; }
|
||||
var head = el('span'); head.appendChild(el('b', 'color:#f2c94c', ev.name)); if (label) head.appendChild(document.createTextNode(' · ' + label));
|
||||
bar.appendChild(head);
|
||||
var body2 = el('span', 'font-weight:500', line || ev.tagline);
|
||||
if (line && mine && mine.note) { body2.appendChild(document.createTextNode(' ')); body2.appendChild(el('span', 'opacity:.75', mine.note)); }
|
||||
bar.appendChild(body2);
|
||||
if (ev.url && !onDealsPage) { var a = el('a', 'color:#f2c94c;text-decoration:underline', 'See every deal'); a.href = ev.url; a.target = '_blank'; a.rel = 'noopener'; bar.appendChild(a); }
|
||||
var x = el('button', 'position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:0;color:#f4f1e8;font-size:18px;line-height:1;cursor:pointer;padding:4px 8px', '×');
|
||||
x.type = 'button'; x.setAttribute('aria-label', 'Hide for today'); bar.appendChild(x);
|
||||
bar.querySelector('button').addEventListener('click', function () { setClosed(ev.id, day); remove(); });
|
||||
document.body.insertBefore(bar, document.body.firstChild);
|
||||
return true;
|
||||
}
|
||||
var feed = null, timer = null;
|
||||
function schedule() {
|
||||
clearTimeout(timer); if (!feed) return;
|
||||
// wake at the next switch moment (start, end, a deal ending, the next Central midnight), at least once a minute
|
||||
var t = now(), next = t + 60 * 1000;
|
||||
(feed.events || []).forEach(function (e) {
|
||||
[e.startsAt, e.endsAt].concat((e.deals || []).map(function (d) { return d.endsAt; })).forEach(function (s) { var x = Date.parse(s); if (x > t && x < next) next = x; });
|
||||
});
|
||||
timer = setTimeout(function () { if (typeof window.__NW_NOW === 'number') window.__NW_NOW += next - t; paint(feed); schedule(); }, Math.max(250, next - t));
|
||||
}
|
||||
function run() {
|
||||
fetch('/api/network-deals', { credentials: 'omit' }).then(function (r) { return r.ok ? r.json() : null; }).then(function (b) {
|
||||
if (!b || !Array.isArray(b.events) || !b.events.length) return;
|
||||
feed = b; paint(b); schedule();
|
||||
}).catch(function () {});
|
||||
}
|
||||
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', run); else run();
|
||||
window.__nwPaint = function (b) { feed = b; return paint(b); }; // tests
|
||||
})();
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
<div class="card"><h3>The line so far</h3><div id="stats" class="grid2"></div></div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/board.js?v=1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<li>Open any sale in the <a href="/ledger">live ledger</a> and look at its <b>Logs</b>: one SpotBought event, then one Paid event per payment.</li></ol></div>
|
||||
<div id="zContract"></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/contract.js?v=z1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<div class="card"><h2>Your decision</h2><p>Only spend what you can afford to lose completely. This is not financial, legal or tax advice. You are responsible for any taxes on what you receive.</p></div>
|
||||
<div class="card"><h2>Contact</h2><p>Questions, problems or a request about your data: <a href="https://instantadpay.com/support" target="_blank" rel="noopener">network support</a> (TrustClickz).</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/legal.js?v=1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@
|
||||
<div class="card"><h3>The momentum fund</h3><p>When no spot has sold for 4 hours, the fund buys one (at most 12 a day). It gifts the spot to an active member who owns a paid spot and has not had a gift in 7 days, members who referred someone recently first. If nobody qualifies, the fund keeps the spot and its line money goes back into the fund.</p></div>
|
||||
<div class="card"><h3>The rest of the network</h3><p>Open board slots show network sites such as InstantAdPay and LinkSpin. On InstantAdPay, ad credits buy advertising, not income.</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/how.js?v=z1"></script>
|
||||
<script src="https://polhunter.com/embed.js" data-slots="5" data-selector="main.wrap > .card" async></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@
|
||||
</section>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/gate.js?v=1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
<div id="status" class="note" hidden></div>
|
||||
<div class="card" id="doneCard" hidden><h3>Your spot is in the line</h3><p>Next: add your image and link in My Spots. One free signature signs you in (it cannot move funds).</p><div class="row"><button class="btn" id="toMyBtn">Open My Spots</button></div><p class="small mono" id="txLink"></p><div id="zBought"></div></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/wallet.js?v=1"></script>
|
||||
<script src="/assets/join.js?v=20261114h"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
<div class="card"><div class="row" style="justify-content:space-between"><h3 style="margin:0">Spot sales</h3><span class="muted small" id="upd"></span></div>
|
||||
<div id="rows"><p class="muted">Loading the ledger...</p></div><div id="zLedger"></div><div id="rows2"></div></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/ledger.js?v=z1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/wallet.js?v=1"></script>
|
||||
<script src="/assets/my.js?v=z3"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
<div class="card"><h2>Your choices</h2><p>You can ask us to delete your account data on this site or on the network hub. Records on the blockchain cannot be deleted by anyone. You can clear the cookies in your browser at any time; you will need to sign in again.</p></div>
|
||||
<div class="card"><h2>Contact</h2><p>Questions, problems or a request about your data: <a href="https://instantadpay.com/support" target="_blank" rel="noopener">network support</a> (TrustClickz).</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/legal.js?v=1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
<div id="status" class="note" hidden></div>
|
||||
<div id="kit"><p class="muted">Loading the kit...</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/kitpage.js?v=2"></script>
|
||||
<script src="/assets/promote.js?v=1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@
|
||||
<div class="card"><h2>Limits</h2><p>As far as the law allows, we are not responsible for losses caused by the blockchain, your wallet, the price of POL, third-party websites in banners, or events outside our control, and our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.</p></div>
|
||||
<div class="card"><h2>Contact</h2><p>Questions, problems or a request about your data: <a href="https://instantadpay.com/support" target="_blank" rel="noopener">network support</a> (TrustClickz).</p></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=20261115nr"></script>
|
||||
<script src="/assets/common.js?v=20261117nw"></script>
|
||||
<script src="/assets/legal.js?v=1"></script>
|
||||
<script src="/assets/chat.js?v=1" defer></script>
|
||||
</body>
|
||||
|
||||
@@ -16,6 +16,7 @@ const { iface } = require('./abi');
|
||||
const dlbnas = require('./dlbnas'); // Network Ad Space: standing house banner + finishing spots still owed views after 30 days (2026-11-13)
|
||||
const refuelspots = require('./refuelspots'); // refuel spots: $50+ Monthly Refuels earn a spot, engine wallet pays (2026-11-13)
|
||||
const netsites = require('./netsites'); // footer network list from the hub (trust pack 2026-11-14)
|
||||
const netdeals = require('./netdeals'); // Network Weekend ribbon feed from the hub (2026-11-17)
|
||||
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 chatbot = require('./chatbot'); // the site assistant (2026-11-15): chatcore.js + kb.js + the network knowledge base (netkb.js)
|
||||
@@ -392,6 +393,7 @@ const server = http.createServer(async (req, res) => {
|
||||
|
||||
// -- public API
|
||||
if (p === '/api/network-sites' && req.method === 'GET') return netsites.handle(req, res);
|
||||
if (p === '/api/network-deals' && req.method === 'GET') return netdeals.handle(req, res, 'dlb'); // Network Weekend ribbon (2026-11-17)
|
||||
if (p === '/api/config' && req.method === 'GET') {
|
||||
return json(res, 200, { site: C.site, chainId: C.chainId, chainName: C.chainName, contract: C.contract, rpc: C.publicRpc, explorer: C.explorer,
|
||||
walletConnectProjectId: C.walletConnectProjectId, viewsOwed: C.viewsOwed, spotDays: C.spotDays, priceUsd: 5, ready: !!C.contract, sel: SEL }, extra);
|
||||
|
||||
Reference in New Issue
Block a user