Commit Graph

15 Commits

Author SHA1 Message Date
hypercross c5e1167beb feat: implement granular section visibility control
Introduce the ability to reveal specific sections of a document
rather than entire files. This includes:

- Updating `revealedPaths` to map normalized file paths to sets of
  revealed section slugs.
- Adding `isPathRevealed` to handle visibility logic for connected
  clients and GMs.
- Enhancing `extractHeadings` to calculate `startLine` and `endLine`
  for each TOC node to support precise section identification.
2026-07-07 07:44:57 +08:00
hyper 53c8ce0677 feat(viewer): Add data source dialog
Introduce a dialog for switching between built-in content and a
user-selected local folder. Persist the folder handle in IndexedDB
so the selection survives page refreshes. Scan the folder for .md,
.yarn, and .csv files to build the file index.

Update App and Sidebar to pass file tree and heading data, and
add TypeScript declarations for the File System Access API.
2026-06-30 19:20:08 +08:00
hypercross 7a490b82df fix: toc 2026-03-20 09:01:21 +08:00
hypercross d19401373f fix: slugging 2026-03-19 11:26:59 +08:00
hypercross eecf429a20 fix: env and __CONTENT_INDEX 2026-03-18 11:31:13 +08:00
hypercross 27bc2fc747 refactor: cached and reloaded file-index 2026-03-13 15:50:50 +08:00
hypercross 9bb48e0388 fix: hide .md extension 2026-02-26 14:44:54 +08:00
hypercross 5746249a47 fix: loading 2026-02-26 14:40:02 +08:00
hypercross e262a83aac fix: index loading 2026-02-26 14:30:09 +08:00
hypercross ba7b264a97 feat: ai's attempt 2026-02-26 14:24:48 +08:00
hypercross c6889ac65d refactor: only index md files 2026-02-26 14:14:26 +08:00
hypercross 34c2f9e346 fix: app routing 2026-02-26 14:10:16 +08:00
hypercross 8d7f745df2 feat: ai's attempt 2026-02-26 13:35:09 +08:00
hypercross f4a6d6978b fix: data loading 2026-02-26 09:31:12 +08:00
hypercross d2a383c5d8 feat: ai's attempt 2026-02-26 09:24:26 +08:00