ifcurl/forgejo/custom/public/assets
Bruno Postle d60bd044dd forgejo: add JS unit tests, extract pure functions into viewer-util.js
Extract parseCommitHref, isSimpleTypeSelector, subtractIdMap, and
isCommitHash into a new viewer-util.js ES module so they can be tested
without a browser. Convert ifcurl.js from an IIFE to an ES module
importing from viewer-util.js; update footer.tmpl to type="module".

Add node:test suites for viewer-url.js (32 tests) and viewer-util.js
(28 tests). Add npm test script and document it in the build section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 20:24:58 +01:00
..
fragments-worker.js viewer: upgrade three/web-ifc/@thatopen to latest — partial CVE fix 2026-04-25 18:59:02 +01:00
ifcurl.js forgejo: add JS unit tests, extract pure functions into viewer-util.js 2026-04-27 20:24:58 +01:00
viewer-deps.js viewer: upgrade three/web-ifc/@thatopen to latest — partial CVE fix 2026-04-25 18:59:02 +01:00
viewer-url.js Private repo previews, BCF import, SERVICE_TOKEN support 2026-04-24 14:20:17 +01:00
viewer-util.js forgejo: add JS unit tests, extract pure functions into viewer-util.js 2026-04-27 20:24:58 +01:00
viewer.html viewer: extract inline JS into viewer.js 2026-04-26 15:50:28 +01:00
viewer.js forgejo: add JS unit tests, extract pure functions into viewer-util.js 2026-04-27 20:24:58 +01:00
web-ifc-mt.wasm viewer: upgrade three/web-ifc/@thatopen to latest — partial CVE fix 2026-04-25 18:59:02 +01:00
web-ifc.wasm viewer: upgrade three/web-ifc/@thatopen to latest — partial CVE fix 2026-04-25 18:59:02 +01:00