Commit Graph
4 Commits
Author SHA1 Message Date
836061373 5821eca880 chore: exclude tests from repository, keep tests local-only 2026-09-13 00:55:25 +08:00
836061373 514a84a055 chore: ignore demo/ and docs/ and untrack them from repo 2026-09-13 00:41:50 +08:00
836061373 24373e298a feat: implement TXT reader MVP per product/tech design
- Vite + Vue 3 + TS scaffold with hash router (bookshelf / reader)
- core/: encoding detection (UTF-8 strict, GBK fallback, gb18030 last resort),
  paragraph chunker with original-text offsets, offset utils, IndexedDB wrapper
- Reader: windowed paragraph rendering with estimated spacers (constant ~240 DOM
  paragraphs), font-size/line-height settings via CSS vars persisted to localStorage
- Progress: character-offset based, debounced save + flush on back/unload, exact
  restore via binary search; shelf shows percent
- 21 vitest unit tests for core modules
2026-09-13 00:28:06 +08:00
836061373 c85f275b89 chore: remove hook state files and add .gitignore 2026-09-13 00:01:12 +08:00