Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : SPSearch8 * File : web/bot/src/Landing.tsx9 * Module : web10 * Repository : https://git.spboucher.ai/spweb11 * Project Website : https://search.spboucher.ai12 * Created : 2026-11-2713 * Last Modified : 2026-11-3014 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: contact@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import { useState } from 'react';44import {45 Async, Band, BarList, CodeBlock, Compare, CopyButton, CountUp, Gauge, Icon, Link, Loading, PeriodSelect, Pill, SeriesChart,46 StackedBar, Stat, Tabs, fmtBytes, fmtCompact, fmtDateTime, fmtDuration, fmtInt, fmtMs, fmtNum, fmtPct, fmtRel, foldTail,47 isoDate, langName, useDocumentTitle, useFetch, type FetchState, type Tone,48} from '@spweb/shared-ui';49import { useT } from '@spweb/shared-ui/i18n/bot';50import { LiveGrid } from './LiveGrid';51import { Picto, type PictoName } from './Logo';52import { MAIL, UA, type BotPublic, type Ips, type Named, type Resources } from './types';5354const ROBOTS = {55 all: 'User-agent: SPBoucherBot\nDisallow: /',56 path: 'User-agent: SPBoucherBot\nDisallow: /prive/',57 delay: 'User-agent: SPBoucherBot\nCrawl-delay: 10',58} as const;5960/** Robots directives that limit what the index keeps of a page's text; each with a meta example and its HTTP header form. */61const DIRECTIVES = {62 nosnippet: { meta: '<meta name="robots" content="nosnippet">', header: 'X-Robots-Tag: nosnippet' },63 noarchive: { meta: '<meta name="robots" content="noarchive">', header: 'X-Robots-Tag: noarchive' },64 maxsnippet: { meta: '<meta name="robots" content="max-snippet:120">', header: 'X-Robots-Tag: max-snippet:120' },65} as const;66const DIRECTIVE_NAMES = { nosnippet: 'nosnippet', noarchive: 'noarchive', maxsnippet: 'max-snippet' } as const;6768const HTTP_ORDER = ['2xx', '3xx', '4xx', '5xx', 'network'];69const RULES: PictoName[] = ['robots', 'get', 'one', 'delay', 'nojs', 'lock', 'size', 'noarchive'];7071/** Hero right-hand panel: the crawler's state and four headline figures, straight from /api/public/bot. */72function LivePanel({ bot, ua }: { bot: FetchState<BotPublic>; ua: string }) {73 const { t, lang } = useT();74 const b = bot.data;75 const int = (v: number) => fmtInt(v, lang);76 return (77 <aside className="live inv" aria-label={t('live.panel')}>78 <div className="live-head">79 <p className="label">{t('live.panel')}</p>80 <p aria-live="polite">81 {b && <Pill tone={b.paused ? 'warn' : 'ok'} live={!b.paused}>{b.paused ? t('hero.state.paused') : t('hero.state.active')}</Pill>}82 </p>83 </div>84 <LiveGrid />85 {b ? (86 <dl className="tiles tiles-2 live-tiles">87 <Stat size="xl" label={t('live.checked')} value={<CountUp value={b.pages_checked} format={int} />} />88 <Stat size="xl" label={t('live.indexed')} value={<CountUp value={b.pages_indexed} format={int} />} />89 <Stat size="xl" label={t('live.domains')} value={<CountUp value={b.domains_explored} format={int} />} />90 <Stat size="xl" label={t('live.rate.s')} value={<CountUp value={b.rate_per_min} format={(v) => fmtNum(v, lang, 0)} />} />91 </dl>92 ) : (93 <div className="live-wait">{bot.error ? <Async state={bot}>{() => null}</Async> : <Loading />}</div>94 )}95 <div className="live-ua">96 <div className="row row-between">97 <p className="label" id="ua-label">{t('hero.ua')}</p>98 <CopyButton text={ua} what={t('hero.ua')} />99 </div>100 <p className="ua" aria-labelledby="ua-label"><code>{ua}</code></p>101 </div>102 <div className="live-foot">103 <span>{b ? <time dateTime={isoDate(b.updated_at)} title={fmtDateTime(b.updated_at, lang)}>{t('updated', { when: fmtRel(b.updated_at, lang) })}</time> : ''}</span>104 <Link href="/status">{t('hero.state.link')}</Link>105 </div>106 </aside>107 );108}109110function Activity({ b }: { b: BotPublic }) {111 const { t, lang } = useT();112 const http = HTTP_ORDER.filter((k) => typeof b.http?.[k] === 'number').map((k) => ({113 key: k,114 label: k === 'network' ? t('live.http.network') : k,115 value: b.http[k] as number,116 }));117 const s = b.storage;118 return (119 <div className="g12 sub">120 <div className="c-7">121 <div className="sub-head"><h3>{t('live.http')}</h3></div>122 <StackedBar caption={t('live.http')} items={http} format={(v) => fmtInt(v, lang)} labelHead={t('live.http.class')} valueHead={t('live.http.count')} />123 </div>124 <div className="c-5">125 <div className="sub-head"><h3>{t('live.storage')}</h3></div>126 {s && (127 <>128 <p className="compare-fig">{t('live.ratio.v', { r: fmtNum(s.ratio, lang, 0) })}</p>129 <p className="muted small">{t('live.kept')}</p>130 <Compare131 a={{ label: t('live.fetched'), value: s.bytes_fetched, text: fmtBytes(s.bytes_fetched, lang) }}132 b={{ label: t('live.stored'), value: s.bytes_stored, text: fmtBytes(s.bytes_stored, lang) }}133 />134 {s.method && <p className="muted small method">{t('live.method')} : <span lang="fr">{s.method}</span></p>}135 </>136 )}137 </div>138 </div>139 );140}141142const num = (v: unknown): v is number => typeof v === 'number' && Number.isFinite(v);143144/** Ranked rows from a `[{name, count}]` list; unknown names fall back to the slug with its underscores removed. */145function ranked(list: Named[] | undefined, label: (name: string) => string) {146 return (Array.isArray(list) ? list : [])147 .filter((x) => typeof x?.name === 'string' && num(x.count) && x.count > 0)148 .slice().sort((a, b) => b.count - a.count)149 .map((x) => ({ key: x.name, label: label(x.name), value: x.count }));150}151152/** Host load and the governor's verdict, in words. */153function ServerResources({ r }: { r: Resources }) {154 const { t, lang } = useT();155 const f = r.factor;156 const gov: { tone: Tone; text: string } | null = !num(f) ? null157 : f >= 1 ? { tone: 'ok', text: t('srv.gov.full') }158 : f <= 0 ? { tone: 'danger', text: t('srv.gov.off') }159 : f === 0.5 ? { tone: 'warn', text: t('srv.gov.half') }160 : f === 0.25 ? { tone: 'warn', text: t('srv.gov.quarter') }161 : { tone: 'warn', text: t('srv.gov.other', { p: fmtPct(f, lang, 0) }) };162 const reason = typeof r.reason === 'string' ? r.reason.trim() : '';163 const hasMem = num(r.mem_available_bytes) && num(r.mem_total_bytes) && r.mem_total_bytes > 0;164 return (165 <div className="sub" id="resources">166 <div className="sub-head">167 <h3>{t('srv.title')}</h3>168 {gov && <p className="row srv-gov"><span className="label">{t('srv.gov')}</span><Pill tone={gov.tone}>{gov.text}</Pill></p>}169 </div>170 <div className="g12">171 <div className="c-4">172 <p className="muted">{t('srv.p')}</p>173 {reason !== '' && <p className="small">{t('srv.reason')} : <span lang="fr">{reason}</span></p>}174 </div>175 <div className="c-4">176 {num(r.load_ratio) && (177 <Gauge178 label={t('srv.cpu')}179 value={r.load_ratio}180 max={1}181 tone={r.load_ratio >= 1 ? 'danger' : r.load_ratio >= 0.7 ? 'warn' : 'info'}182 text={num(r.load1) && num(r.cpu_count)183 ? t('srv.cpu.v', { p: fmtPct(r.load_ratio, lang, 0), load: fmtNum(r.load1, lang, 2), n: fmtInt(r.cpu_count, lang) })184 : fmtPct(r.load_ratio, lang, 0)}185 />186 )}187 </div>188 <div className="c-4">189 {hasMem && (190 <Gauge191 label={t('srv.mem')}192 value={r.mem_available_bytes as number}193 max={r.mem_total_bytes as number}194 tone="ink"195 text={t('srv.mem.v', {196 a: fmtBytes(r.mem_available_bytes, lang),197 b: fmtBytes(r.mem_total_bytes, lang),198 p: fmtPct((r.mem_available_bytes as number) / (r.mem_total_bytes as number), lang, 0),199 })}200 />201 )}202 {num(r.swap_used_bytes) && (203 <dl className="kv"><div><dt>{t('srv.swap')}</dt><dd>{fmtBytes(r.swap_used_bytes, lang)}</dd></div></dl>204 )}205 </div>206 </div>207 </div>208 );209}210211/** Frontier, current rate against its cap, latency, reasons for not indexing, errors, host resources. */212function Queue({ b }: { b: BotPublic }) {213 const { t, tx, lang } = useT();214 const int = (v: number) => fmtInt(v, lang);215 const fr = b.frontier;216 const rate = b.rate;217 const lat = b.latency_ms;218 const err = b.errors_1h;219 const slug = (name: string) => name.replace(/_/g, ' ');220 const skips = ranked(b.skips, (n) => tx(`skip.${n}`, slug(n)));221 const outcomes = ranked(b.outcomes, (n) => tx(`outcome.${n}`, slug(n)));222 const mbit = (bps: number) => fmtNum(bps / 1e6, lang, 1);223 const known = fr?.domains_known;224 const lowered = num(rate?.cap_per_s) && num(rate?.configured_per_s) && rate.cap_per_s < rate.configured_per_s;225 return (226 <>227 {fr && (228 <dl className="tiles">229 <Stat size="xl" label={t('q.queued')} value={int(fr.queued as number)} hint={num(fr.max_urls) ? t('q.max.h', { n: int(fr.max_urls) }) : undefined} />230 <Stat label={t('q.due')} value={int(fr.due_now as number)} hint={t('q.due.h')} />231 <Stat label={t('q.recrawl')} value={int(fr.recrawl_waiting as number)} hint={t('q.recrawl.h')} />232 <Stat label={t('q.leased')} value={int(fr.leased as number)} hint={t('q.leased.h')} />233 </dl>234 )}235 <div className="g12">236 {rate && (237 <div className="c-4 m-6 panel panel-accent">238 <h3>{t('q.rate')}</h3>239 {num(rate.per_s) && (240 num(rate.cap_per_s) && rate.cap_per_s > 0 ? (241 <Gauge label={t('q.rate.pages')} value={rate.per_s} max={rate.cap_per_s} text={t('q.rate.pages.cap', { v: fmtNum(rate.per_s, lang, 1), cap: fmtNum(rate.cap_per_s, lang, 1) })} />242 ) : (243 <dl className="kv"><div><dt>{t('q.rate.pages')}</dt><dd>{t('q.rate.pages.v', { v: fmtNum(rate.per_s, lang, 1) })}</dd></div></dl>244 )245 )}246 {num(rate.bps) && (247 num(rate.cap_bps) && rate.cap_bps > 0 ? (248 <Gauge label={t('q.rate.net')} value={rate.bps} max={rate.cap_bps} tone="ink" text={t('q.rate.net.cap', { v: mbit(rate.bps), cap: mbit(rate.cap_bps) })} />249 ) : (250 <dl className="kv"><div><dt>{t('q.rate.net')}</dt><dd>{t('q.rate.net.v', { v: mbit(rate.bps) })}</dd></div></dl>251 )252 )}253 <p className="muted small">254 {t('q.rate.note')}255 {lowered && <> {t('q.rate.lowered', { n: fmtNum(rate.configured_per_s, lang, 1) })}</>}256 </p>257 </div>258 )}259 {(fr || num(b.domains_explored)) && (260 <div className="c-4 m-6 panel panel-top">261 <h3>{t('q.domains')}</h3>262 {num(known) && known > 0 && num(b.domains_explored) && (263 <Gauge label={t('q.dom.gauge')} value={b.domains_explored} max={known} text={t('q.dom.of', { a: int(b.domains_explored), b: int(known) })} />264 )}265 <dl className="kv">266 {num(known) && <div><dt>{t('q.dom.known')}</dt><dd>{int(known)}</dd></div>}267 {num(b.domains_explored) && <div><dt>{t('q.dom.explored')}</dt><dd>{int(b.domains_explored)}</dd></div>}268 {num(fr?.domains_paused) && <div><dt>{t('q.dom.paused')}</dt><dd>{int(fr.domains_paused)}</dd></div>}269 {num(fr?.domains_low_yield) && <div><dt>{t('q.dom.low')}</dt><dd>{int(fr.domains_low_yield)}</dd></div>}270 {num(fr?.domains_with_authority) && <div><dt>{t('q.dom.auth')}</dt><dd>{int(fr.domains_with_authority)}</dd></div>}271 {num(fr?.graph_edges) && <div><dt>{t('q.dom.edges')}</dt><dd>{int(fr.graph_edges)}</dd></div>}272 </dl>273 {num(fr?.domains_low_yield) && <p className="muted small">{t('q.dom.low.p')}</p>}274 {(num(fr?.graph_edges) || num(fr?.domains_with_authority)) && <p className="muted small">{t('q.dom.graph.p')}</p>}275 </div>276 )}277 {(lat || err) && (278 <div className="c-4 panel panel-top">279 {lat && (280 <>281 <h3>{t('q.lat')}</h3>282 <dl className="kv">283 <div><dt>{t('q.lat.p50')}</dt><dd>{fmtMs(lat.p50, lang)}</dd></div>284 <div><dt>{t('q.lat.p95')}</dt><dd>{fmtMs(lat.p95, lang)}</dd></div>285 <div><dt>{t('q.lat.p99')}</dt><dd>{fmtMs(lat.p99, lang)}</dd></div>286 </dl>287 </>288 )}289 {err && (290 <>291 <h3>{t('q.err')}</h3>292 <dl className="kv">293 {(['network', 'http_429', 'http_5xx', 'robots_unavailable'] as const).map((k) => (294 <div key={k}><dt>{t(`q.err.${k}`)}</dt><dd>{fmtInt(err[k], lang)}</dd></div>295 ))}296 </dl>297 </>298 )}299 </div>300 )}301 {skips.length > 0 && (302 <div className="c-6 panel">303 <h3>{t('q.skips')}</h3>304 <p className="muted small">{t('q.skips.p')}</p>305 <BarList caption={t('q.skips')} items={skips} format={int} labelHead={t('q.skips.h')} valueHead={t('q.pages')} />306 </div>307 )}308 {outcomes.length > 0 && (309 <div className="c-6 panel">310 <h3>{t('q.outcomes')}</h3>311 <p className="muted small">{t('q.outcomes.p')}</p>312 <BarList caption={t('q.outcomes')} items={outcomes} format={int} labelHead={t('q.outcomes.h')} valueHead={t('q.urls')} />313 </div>314 )}315 </div>316 {b.resources && <ServerResources r={b.resources} />}317 </>318 );319}320321/** True when the service publishes at least one of the queue measurements (older services publish none). */322const hasQueue = (b: BotPublic | undefined): b is BotPublic =>323 !!b && !!(b.frontier || b.rate || b.latency_ms || b.errors_1h || b.resources || b.skips?.length || b.outcomes?.length);324325export function Landing() {326 const { t, lang } = useT();327 const bot = useFetch<BotPublic>('/api/public/bot', 5000);328 const ips = useFetch<Ips>('/ips.json', 60000);329 const [hours, setHours] = useState(24);330 useDocumentTitle(t('meta.home'));331 const ua = bot.data?.user_agent || UA;332 const int = (v: number) => fmtInt(v, lang);333 const compact = (v: number) => fmtCompact(v, lang);334 const bytes = (v: number) => fmtBytes(v, lang);335 const queue = hasQueue(bot.data);336 const toc: [string, string][] = [337 ['identity', t('id.title')], ['activity', t('live.title')], ...(queue ? [['queue', t('q.title')] as [string, string]] : []),338 ['breakdown', t('dist.title')], ['policy', t('pol.title')], ['robots', t('rob.title')], ['directives', t('dir.title')], ['verify', t('ver.title')],339 ['contact', t('rem.band')],340 ];341 // Section numbers follow the sections actually shown.342 let sec = 0;343 const no = () => String(++sec).padStart(2, '0');344 const pol = bot.data?.politeness;345 const conc = pol?.per_domain_concurrency;346 const delay = pol?.min_delay_ms;347 const livePol = num(conc) && conc >= 1 && num(delay) && delay > 0;348 return (349 <>350 <div className="wrap hero">351 <div className="g12 hero-grid">352 <div className="c-7 hero-copy">353 <p className="eyebrow">{t('hero.eyebrow')}</p>354 <h1>{t('hero.title')}</h1>355 <p className="lead">{t('hero.lead')}</p>356 <p className="row">357 <a className="btn btn-primary btn-lg" href="#policy">{t('hero.cta.policy')}<Icon name="arrow" size={18} /></a>358 <Link className="btn btn-lg" href="/removal">{t('hero.cta.removal')}</Link>359 </p>360 </div>361 <div className="c-5"><LivePanel bot={bot} ua={ua} /></div>362 </div>363 <nav className="toc" aria-label={t('toc')}>364 <ol>365 {toc.map(([id, label]) => <li key={id}><a href={`#${id}`}>{label}</a></li>)}366 </ol>367 </nav>368 </div>369370 <Band id="identity" num={no()} title={t('id.title')} aside={t('id.p')}>371 <dl className="tiles id-tiles">372 <Stat text label={t('id.ua')} value={<code>{ua}</code>} />373 <Stat text label={t('id.token')} value={<code>SPBoucherBot</code>} />374 <Stat text label={t('id.purpose')} value={t('id.purpose.v')} />375 <Stat text label={t('id.contact')} value={<a href={`mailto:${MAIL}`}>{MAIL}</a>} />376 </dl>377 </Band>378379 <Band id="activity" num={no()} title={t('live.title')} aside={<PeriodSelect value={hours} onChange={setHours} options={[24, 72, 168]} />}>380 <p className="sec-intro">{t('live.p')}</p>381 <div className="g12" id="series">382 <div className="c-8">383 <SeriesChart metric="fetched" hours={hours} title={t('series.fetched')} sub={t('series.sub.fetched')} format={int} tick={compact} height={360} />384 </div>385 <div className="c-4">386 <Async state={bot}>387 {(b) => (388 <dl className="tiles tiles-2 side-tiles">389 <Stat label={t('live.denied')} value={int(b.robots_denied)} />390 <Stat label={t('live.notmod')} value={int(b.pages_not_modified)} hint={t('live.notmod.h')} />391 <Stat label={t('live.bytes')} value={bytes(b.bytes_network)} />392 <Stat label={t('live.workers')} value={int(b.workers_active)} />393 <Stat label={t('live.median')} value={fmtDuration(b.freshness?.median_age_s, lang)} hint={t('live.fresh')} />394 <Stat label={t('live.p90')} value={fmtDuration(b.freshness?.p90_age_s, lang)} hint={t('live.fresh')} />395 </dl>396 )}397 </Async>398 </div>399 <div className="c-6">400 <SeriesChart metric="indexed" hours={hours} title={t('series.indexed')} sub={t('series.sub.indexed')} format={int} tick={compact} height={260} />401 </div>402 <div className="c-6">403 <SeriesChart metric="bytes" hours={hours} title={t('series.bytes')} sub={t('series.sub.bytes')} format={bytes} tick={bytes} height={260} />404 </div>405 </div>406 {bot.data && <Activity b={bot.data} />}407 </Band>408409 {queue && bot.data && (410 <Band id="queue" num={no()} title={t('q.title')} aside={t('q.p')}>411 <Queue b={bot.data} />412 </Band>413 )}414415 <Band id="breakdown" num={no()} title={t('dist.title')} aside={t('dist.p')} surface="sunk">416 <Async state={bot}>417 {(b) => (418 <div className="g12">419 <div className="c-6 panel">420 <h3>{t('dist.lang')}</h3>421 <BarList422 caption={t('dist.lang')}423 items={foldTail((b.languages ?? []).map((l) => ({ key: l.language, label: langName(l.language, lang), value: l.documents })), 9, t('chart.other'))}424 format={int}425 labelHead={t('dist.lang.h')}426 valueHead={t('dist.docs')}427 />428 </div>429 <div className="c-6 panel">430 <h3>{t('dist.tld')}</h3>431 <BarList432 caption={t('dist.tld')}433 items={(b.top_tlds ?? []).slice(0, 9).map((x) => ({ key: x.tld, label: `.${x.tld}`, value: x.domains }))}434 format={int}435 labelHead={t('dist.tld.h')}436 valueHead={t('dist.domains')}437 share={false}438 />439 </div>440 </div>441 )}442 </Async>443 </Band>444445 <Band id="policy" num={no()} title={t('pol.title')}>446 <ol className="rules">447 {RULES.map((name, i) => {448 const n = (i + 1) as 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;449 return (450 <li key={name} className="rule">451 <span className="rule-picto"><Picto name={name} /></span>452 <h3>{name === 'one' && livePol && conc > 1 ? t('pol.t3.many', { n: fmtInt(conc, lang) }) : t(`pol.t${n}`)}</h3>453 <p>454 {name === 'one' && livePol455 ? t(conc > 1 ? 'pol.l3.many' : 'pol.l3.one', { n: fmtInt(conc, lang), s: fmtDuration(delay / 1000, lang) })456 : t(`pol.l${n}`)}457 </p>458 </li>459 );460 })}461 </ol>462 </Band>463464 <Band id="robots" num={no()} title={t('rob.title')}>465 <div className="g12">466 <div className="c-5">467 <p className="sec-intro">{t('rob.p')}</p>468 <dl className="kv">469 <div><dt>{t('id.token')}</dt><dd>SPBoucherBot</dd></div>470 <div><dt>{t('id.ua')}</dt><dd>{ua}</dd></div>471 </dl>472 <p className="muted small">{t('rob.legacy')}</p>473 </div>474 <div className="c-7">475 <Tabs476 label={t('rob.tabs')}477 tabs={(['all', 'path', 'delay'] as const).map((k) => ({478 id: k,479 label: t(`rob.tab.${k}`),480 content: (481 <>482 <p>{t(`rob.${k}`)}</p>483 <CodeBlock code={ROBOTS[k]} label="/robots.txt" />484 </>485 ),486 }))}487 />488 </div>489 </div>490 </Band>491492 <Band id="directives" num={no()} title={t('dir.title')} surface="sunk">493 <div className="g12">494 <div className="c-5">495 <p className="sec-intro">{t('dir.p')}</p>496 <h3>{t('dir.levels')}</h3>497 <ul className="dir-levels">498 <li>{t('dir.l1')}</li>499 <li>{t('dir.l2')}</li>500 <li>{t('dir.l3')}</li>501 </ul>502 <p>{t('dir.use')}</p>503 </div>504 <div className="c-7">505 <p>{t('dir.how')}</p>506 <Tabs507 label={t('dir.tabs')}508 tabs={(['nosnippet', 'noarchive', 'maxsnippet'] as const).map((k) => ({509 id: k,510 label: DIRECTIVE_NAMES[k],511 content: (512 <>513 <p>{t(`dir.${k}`)}</p>514 <CodeBlock code={DIRECTIVES[k].meta} label="HTML <head>" />515 <p className="muted small dir-header">{t('dir.header')}</p>516 <CodeBlock code={DIRECTIVES[k].header} label="HTTP" />517 </>518 ),519 }))}520 />521 <p className="muted small">{t('dir.more')}</p>522 </div>523 </div>524 </Band>525526 <Band id="verify" num={no()} title={t('ver.title')}>527 <div className="g12">528 <div className="c-6">529 <p className="sec-intro">{t('ver.p1')}</p>530 <p>{t('ver.p2')}</p>531 <p><a href="/ips.json" type="application/json">{t('ver.json')}</a> <span className="muted data">/ips.json</span></p>532 </div>533 <div className="c-6">534 <div className="ips-panel inv" aria-live="polite">535 <p className="label">{t('ver.list')}</p>536 <Async state={ips}>537 {(d) => (538 <>539 {Array.isArray(d.egress_ips) && d.egress_ips.length > 0 ? (540 <ul className="ips">541 {d.egress_ips.map((ip) => (542 <li key={ip}><code>{ip}</code><CopyButton text={ip} what={ip} /></li>543 ))}544 </ul>545 ) : (546 <p className="muted">{t('ver.none')}</p>547 )}548 <p className="live-foot">549 <time dateTime={isoDate(d.updated_at)}>{t('updated', { when: fmtDateTime(d.updated_at, lang) })}</time>550 </p>551 </>552 )}553 </Async>554 </div>555 </div>556 </div>557 </Band>558559 <section className="cta field-accent" id="contact" aria-labelledby="contact-h">560 <div className="wrap cta-in">561 <div>562 <p className="eyebrow">{t('rem.band')}</p>563 <h2 id="contact-h">{t('cta.title')}</h2>564 <p>{t('rem.band.p')}</p>565 </div>566 <p className="row">567 <Link className="btn btn-lg" href="/removal">{t('rem.band.link')}<Icon name="arrow" size={18} /></Link>568 <a href={`mailto:${MAIL}`}>{MAIL}</a>569 </p>570 </div>571 </section>572 </>573 );574}575