From afa87af01c79a9baa539f2992d32154d2a4739bd Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 14 Feb 2026 14:46:37 -0800 Subject: task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq --- .../node_modules/@exodus/bytes/fallback/percent.js | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 vanilla/node_modules/@exodus/bytes/fallback/percent.js (limited to 'vanilla/node_modules/@exodus/bytes/fallback/percent.js') diff --git a/vanilla/node_modules/@exodus/bytes/fallback/percent.js b/vanilla/node_modules/@exodus/bytes/fallback/percent.js deleted file mode 100644 index c024d90..0000000 --- a/vanilla/node_modules/@exodus/bytes/fallback/percent.js +++ /dev/null @@ -1,31 +0,0 @@ -import { decodeAscii, encodeLatin1 } from './latin1.js' -import { decode2string } from './platform.js' - -const ERR = 'percentEncodeSet must be a string of unique increasing codepoints in range 0x20 - 0x7e' -const percentMap = new Map() -let hex, base - -export function percentEncoder(set, spaceAsPlus = false) { - if (typeof set !== 'string' || /[^\x20-\x7E]/.test(set)) throw new TypeError(ERR) - if (typeof spaceAsPlus !== 'boolean') throw new TypeError('spaceAsPlus must be boolean') - const id = set + +spaceAsPlus - const cached = percentMap.get(id) - if (cached) return cached - - const n = encodeLatin1(set).sort() // string checked above to be ascii - if (decodeAscii(n) !== set || new Set(n).size !== n.length) throw new TypeError(ERR) - - if (!base) { - hex = Array.from({ length: 256 }, (_, i) => `%${i.toString(16).padStart(2, '0').toUpperCase()}`) - base = hex.map((h, i) => (i < 0x20 || i > 0x7e ? h : String.fromCharCode(i))) - } - - const map = base.slice() // copy - for (const c of n) map[c] = hex[c] - if (spaceAsPlus) map[0x20] = '+' // overrides whatever percentEncodeSet thinks about it - - // Input is not typechecked, for internal use only - const percentEncode = (u8, start = 0, end = u8.length) => decode2string(u8, start, end, map) - percentMap.set(id, percentEncode) - return percentEncode -} -- cgit v1.2.3