Commit Graph
11 Commits
Author SHA1 Message Date
s0lrayandPaperclip 05c15eaf47 feat(ui): implement dark mode as default with CSS variables and theme persistence
Closes THE-34, THE-35, THE-36.

- Replaces all hardcoded colors in arf.css with CSS custom properties
- Dark palette defined on :root (default); light palette on body.light-mode
- Removes old .dark-Mode class; D3 inline styles now read CSS vars at render time
- goDark() toggles light-mode class and persists preference to localStorage
- Flash-prevention inline script in body applies stored theme before first paint
- Toggle button label reflects current theme state

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 07:27:28 -04:00
s0lrayandPaperclip 82a9c32850 Migrate D3 v3 to v7: update arf.js, index.html, and CI
- Replace d3.layout.tree() with d3.tree()
- Replace d3.svg.diagonal() with d3.linkHorizontal() (x/y accessors swap coords)
- Replace d3.json(url, cb) with d3.json(url).then(cb)
- Replace d3.hierarchy() for root node; use .descendants() and .links()
- Strip svg: namespace prefixes from append/insert calls
- Update xlink:href to href on anchor elements
- Update data accessors to use d.data.name, d.data.url, etc.
- Fix .style("fill") call (was malformed in v3 code)
- Update event handler signature to (event, d) for D3 v7
- Use node.merge(nodeEnter) and link.merge(linkEnter) for v5+ update pattern
- Add public/js/d3.min.js (v7.9.0) copied from node_modules
- Update index.html to load d3.min.js instead of d3.v3.min.js
- Update CI smoke test to check for d3.min.js
- Keep d3.v3.min.js in place until visual parity confirmed

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-23 17:28:56 -04:00
s0lrayandGitHub 43a3abd6ef Merge pull request #471 from comdotharman0/patch-1
Update index.html
2026-03-14 19:34:46 -04:00
s0lrayandGitHub 827c70ce91 Merge pull request #305 from gabrielsozinho/master
feat: add noscript tag
2026-03-14 12:11:29 -04:00
Harman Singh SranandGitHub 82997536f1 Update index.html 2025-06-19 07:38:04 +05:30
Kyle Matthews 9c5e4caaea Added Dark Mode/Fixed file placement problem 2024-10-02 19:22:42 -04:00
gabrielsozinho f8bebb0a14 feat: add noscript tag 2022-12-31 14:57:11 -03:00
s0lray eab26d3e9f Website typo
Words are hard…
2017-03-01 19:18:47 -05:00
s0lray 4a32c697ba site updates
site updates
2017-01-19 21:35:47 -05:00
s0lray 1168431908 Added legend and tagged all links
Tagged all the links with symbols from the legend where appropriate.
2016-10-18 17:26:23 -04:00
treefort f7a6d43aee moved dist files into /public
…updating relative paths commensurately
2016-08-19 00:08:00 -04:00