mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 07:24:25 +01:00
feat: implement service worker with capture handlers
Service Worker Architecture: - Event-driven, stateless (MV3 compatible) - Message passing with structured error handling - Chrome storage for state persistence Capture Features: - Save Selection (with image processing and base64 embedding) - Save Page (Readability → DOMPurify → Cheerio pipeline) - Save Link (basic URL + title) - Save Screenshot (full page capture, cropping pending) - Save Image (download and embed as base64) Additional Features: - Duplicate note detection with user choice dialog - Context menu initialization on install - Keyboard shortcut handlers - Trilium API communication (create notes, search) - Connection testing and validation Uses centralized logging throughout. No global state - all persistence via chrome.storage.
This commit is contained in:
parent
c28add177e
commit
4c53f8b262
1206
apps/web-clipper-manifestv3/src/background/index.ts
Normal file
1206
apps/web-clipper-manifestv3/src/background/index.ts
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user