Files
QueryByHumming/package.json
T
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

30 lines
642 B
JSON

{
"name": "txt-reader",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview",
"test": "vitest run"
},
"dependencies": {
"jschardet": "^3.1.4",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@types/node": "^22.20.2",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.7.0",
"fake-indexeddb": "^6.0.0",
"iconv-lite": "^0.7.3",
"typescript": "~5.7.2",
"vite": "^6.0.7",
"vitest": "^3.0.4",
"vue-tsc": "^2.2.0"
}
}