openreader/src/lib/client
Richard R 5a44a59ed1 feat(documents): add web import and creation dialog with SSRF-safe loader
Introduce a unified upload menu dialog enabling users to upload files,
create markdown/text documents, or import content directly from web URLs.
Implement a secure server-side loader for fetching and parsing web pages
with SSRF protection, content-type checks, and size limits. Add new API
route for importing documents from URLs, and update dependencies to
support HTML parsing and markdown conversion.

- Add UploadMenuDialog component with file, create, and URL import tabs
- Implement SSRF-mitigated web-loader using linkedom, readability, turndown
- Add /api/documents/import-url endpoint for web imports
- Update DocumentList to use new upload dialog
- Add BrowserIcon and supporting UI elements
- Update dependencies: @mozilla/readability, linkedom, turndown
- Expose importUrl client API

This improves document onboarding flexibility and enhances security for
web-based imports.
2026-06-10 10:57:51 -06:00
..
api feat(documents): add web import and creation dialog with SSRF-safe loader 2026-06-10 10:57:51 -06:00
audiobooks feat(tts): add multilingual reader foundation 2026-06-06 06:18:50 -06:00
cache refactor(documents): unify document upload and deletion logic 2026-06-03 23:31:18 -06:00
config feat(tts,config,types): migrate to providerRef/providerType model and add centralized TTS provider policy 2026-05-13 10:11:05 -06:00
epub refactor(epub): unify word-to-region alignment for text highlighting 2026-06-09 14:57:27 -06:00
html fix(epub): improve word-region cache invalidation for highlighting 2026-06-09 15:35:39 -06:00
pdf Add force-reparse confirmation flow in PDF UI 2026-05-21 10:34:29 -06:00
settings chore(config): remove Deepinfra model gating and related admin setting 2026-05-13 18:42:40 -06:00
tts Retry errored TTS segments with cooldown and retry-after 2026-05-14 08:31:40 -06:00
analytics.ts feat: Refactor server-side document, audiobook, and authentication logic, introduce new client-side APIs and caching, and update related tests. 2026-02-17 19:30:12 -07:00
auth-client.ts feat: Refactor server-side document, audiobook, and authentication logic, introduce new client-side APIs and caching, and update related tests. 2026-02-17 19:30:12 -07:00
changelog-check.ts refactor(api): remove all legacy unclaimed user scope logic and enforce strict userId scoping 2026-05-31 13:01:55 -06:00
changelog.ts feat(changelog): add changelog feed support and settings integration 2026-05-14 09:45:04 -06:00
dexie.ts feat(upload): implement presigned token-based upload with finalize step 2026-06-03 20:14:18 -06:00
epub.ts feat: Refactor server-side document, audiobook, and authentication logic, introduce new client-side APIs and caching, and update related tests. 2026-02-17 19:30:12 -07:00
highlight-char-map.ts refactor(audio-text): centralize audio text normalization rules and update consumers 2026-06-10 09:00:13 -06:00
highlight-token-alignment.ts refactor(epub): unify word-to-region alignment for text highlighting 2026-06-09 14:57:27 -06:00
onboarding-flow.ts refactor(onboarding): modularize onboarding flow logic and improve testability 2026-05-29 18:03:17 -06:00
pdf-block-text.ts refactor(pdf): implement ONNX-based Docling layout parsing and block-level TTS for PDFs 2026-05-17 21:18:51 -06:00
pdf-highlight-worker.ts refactor(highlight): share multilingual token alignment 2026-06-06 10:45:19 -06:00
pdf-tts-planning.ts chore(config): remove smartSentenceSplitting option and related code paths 2026-05-20 04:51:10 -06:00
pdf.ts refactor(highlight): share multilingual token alignment 2026-06-06 10:45:19 -06:00
sha256.ts feat: Refactor server-side document, audiobook, and authentication logic, introduce new client-side APIs and caching, and update related tests. 2026-02-17 19:30:12 -07:00