From fa848b5f4914458222aba15f8f1f330bb4082e0b Mon Sep 17 00:00:00 2001 From: "@quaternion-karabela.test.pds.did.bot" Date: Tue, 27 Oct 2026 17:37:28 +0000 Subject: [PATCH] refactor(web): drop members the web modules export and nothing reads Remove only the return-object entries no page or test reads. Co-Authored-By: Claude Opus 5.5 Change-Id: I356d60116cccd06d60ea9a5f8e907909fc0b63d2 --- web/avatar.js | 2 +- web/backdrop.js | 2 +- web/detail.js | 7 +------ web/lanes.js | 2 +- web/linkify.js | 2 +- web/look.js | 19 ------------------- web/model.js | 2 +- web/options.js | 2 +- web/work.js | 11 +---------- web/zine.js | 2 +- web/zine/notes.js | 2 +- 11 files changed, 10 insertions(+), 43 deletions(-) diff --git a/web/avatar.js b/web/avatar.js index 49ca93e..1a02459 100644 --- a/web/avatar.js +++ b/web/avatar.js @@ -646,5 +646,5 @@ const Avatar = (() => { return `${esc(name)}${handleHTML}`; } - return { mendHandles, make, load, photo, dominantHue, hueOf, styles: Object.keys(STYLES), seedOf, profileURL, portraitURL, face, link, handleParts, zoneParts, zoneFit, mention, mentionHTML, named, namedHTML, pinned, pinnedHTML }; + return { mendHandles, make, load, photo, dominantHue, hueOf, styles: Object.keys(STYLES), seedOf, profileURL, portraitURL, face, handleParts, zoneParts, zoneFit, mention, mentionHTML, named, namedHTML, pinned, pinnedHTML }; })(); diff --git a/web/backdrop.js b/web/backdrop.js index aab18c0..8bfd70f 100644 --- a/web/backdrop.js +++ b/web/backdrop.js @@ -122,5 +122,5 @@ const Backdrop = (() => { document.documentElement.style.setProperty("--circles", css(circles(visitSeed()))); } - return { circles, svg, css, apart, INKS, TILE, LEAST, MOST }; + return { circles, svg, css, apart, TILE, LEAST, MOST }; })(); diff --git a/web/detail.js b/web/detail.js index 5473ea3..df6e6a7 100644 --- a/web/detail.js +++ b/web/detail.js @@ -1929,11 +1929,6 @@ const Detail = (() => { } } - /** Sets what `element`'s hint says. */ - function setHint(element, text) { - if (element) element.dataset.hint = text; - } - /** * Puts `card` beside its anchor where it fits whole: right of it, then * left, then below, then above (or, `under` first, below and above, as a @@ -2007,5 +2002,5 @@ const Detail = (() => { /** Whether a week's zine is open over the board: its keys are its own. */ const issueOpen = () => typeof Issue !== "undefined" && Issue.isOpen(); - return { mount, query, shelfOf, weekLinks, blueskyPost, issueOpen, show, showPerson, hide, isOpen, refresh, record, unrecord, linesOf, forget, pdslsURL, dashboardURL, peek, peekOperator, peekServer, peekGroup, action, plainMention, hints, setHint, unpeek, hover, peeking, enterPeek, hashtags, modelCard, agentCard, bioParts }; + return { mount, query, shelfOf, weekLinks, blueskyPost, issueOpen, show, showPerson, hide, isOpen, refresh, record, unrecord, linesOf, forget, pdslsURL, dashboardURL, peek, peekOperator, peekServer, peekGroup, action, plainMention, hints, unpeek, hover, peeking, enterPeek, hashtags, modelCard, agentCard, bioParts }; })(); diff --git a/web/lanes.js b/web/lanes.js index 12690db..bf97f10 100644 --- a/web/lanes.js +++ b/web/lanes.js @@ -905,5 +905,5 @@ const Lanes = (() => { if (typeof document !== "undefined" && document.getElementById("chart")) boot(); - return { page, families, keepTo, penTree }; + return { page, keepTo, penTree }; })(); diff --git a/web/linkify.js b/web/linkify.js index 6d94896..71568ea 100644 --- a/web/linkify.js +++ b/web/linkify.js @@ -390,5 +390,5 @@ const Linkify = (() => { } } - return { refs, parse, html, fill, know, repoOf }; + return { refs, parse, html, fill, know }; })(); diff --git a/web/look.js b/web/look.js index 5811273..1cd6ea9 100644 --- a/web/look.js +++ b/web/look.js @@ -38,8 +38,6 @@ const Look = (() => { /** Running text: names, what was said, numbers. Self-hosted, see web/fonts/. */ const TEXT = '"Inter", system-ui, sans-serif'; - /** The riso face, for the wordmark and nothing that has to be read quickly. */ - const DISPLAY = '"Rubik Mono One", "Inter", sans-serif'; /** Paper, ink and the two riso inks. Mirrors the custom properties in plate.css. */ const INK = { @@ -91,11 +89,6 @@ const Look = (() => { return was; } - /** A mention's purple: a name somebody could write to. Mirrors --mention. */ - function mention(alpha) { - return `rgba(59, 42, 143, ${alpha})`; - } - /** The purple a cut-out's shadow is printed in. */ function cast(alpha) { return `rgba(59, 42, 143, ${alpha})`; @@ -196,13 +189,6 @@ const Look = (() => { return out; } - /** The ladder's stops, for the legend. */ - const LADDER = [ - { label: "now", quiet: 0 }, - { label: "5m", quiet: COOL }, - { label: "15m+", quiet: COLD }, - ]; - // --- glyphs --------------------------------------------------------------- /** @@ -1037,10 +1023,6 @@ const Look = (() => { groupSize, plural, TEXT, - DISPLAY, - INK, - LADDER, - HOT, LIVE, isLive, ink, @@ -1049,7 +1031,6 @@ const Look = (() => { pencil, blue, cast, - mention, hue, hueText, recency, diff --git a/web/model.js b/web/model.js index 3de4f49..e22f9db 100644 --- a/web/model.js +++ b/web/model.js @@ -261,5 +261,5 @@ const Model = (() => { } } - return { Swarm, LIVE, PRUNE, RATE }; + return { Swarm, LIVE, RATE }; })(); diff --git a/web/options.js b/web/options.js index 1ce4244..bba86a8 100644 --- a/web/options.js +++ b/web/options.js @@ -36,5 +36,5 @@ const Options = (() => { return { tally: Boolean(options.emoji) && !tallyEmpty }; } - return { DEFAULTS, fresh, read, write, chrome }; + return { fresh, read, write, chrome }; })(); diff --git a/web/work.js b/web/work.js index 88b536a..b5bdf41 100644 --- a/web/work.js +++ b/web/work.js @@ -195,15 +195,6 @@ const Work = (() => { return dot / (a.norm * b.norm); } - /** Population count of the difference: how far apart two fingerprints are. */ - function hamming(a, b) { - let x = (a ^ b) >>> 0; - x = x - ((x >>> 1) & 0x55555555); - x = (x & 0x33333333) + ((x >>> 2) & 0x33333333); - x = (x + (x >>> 4)) & 0x0f0f0f0f; - return (Math.imul(x, 0x01010101) >>> 24); - } - /** The streaming index: what each agent is working on, and who agrees. */ class WorkIndex { constructor() { @@ -499,5 +490,5 @@ const Work = (() => { } } - return { WorkIndex, tokenize, simhash, hamming, MIN_CLUSTER }; + return { WorkIndex }; })(); diff --git a/web/zine.js b/web/zine.js index 093db72..f669a4b 100644 --- a/web/zine.js +++ b/web/zine.js @@ -66,5 +66,5 @@ const Zine = (() => { else run(); } - return { cut, SCRAPS }; + return { cut }; })(); diff --git a/web/zine/notes.js b/web/zine/notes.js index 52e1c9d..2dbacac 100644 --- a/web/zine/notes.js +++ b/web/zine/notes.js @@ -220,5 +220,5 @@ const ZineNotes = (() => { return `${date.getUTCDate()} ${MONTHS[date.getUTCMonth()].slice(0, 3).toUpperCase()} ${date.getUTCFullYear()}`; } - return { RULE, WORDS, FRESH, candidates, place, crosses, board, diary, postmark }; + return { WORDS, candidates, place, crosses, board, diary, postmark }; })(); -- knotmirror 0.0.1