Commit graph

8 commits

Author SHA1 Message Date
df1f3c27f7 Merge pull request 'Fix imported PDFs not rendering in the Docker image' (#3) from fix-pdf-worker into main
Reviewed-on: https://git.srazka.com/reudy-net/Papure/pulls/3
2026-09-27 12:00:37 +02:00
5d5d86c533 Fix imported PDFs not rendering in the Docker image
nginx has no MIME type for .mjs, so the pdf.js worker was served as
application/octet-stream and browsers refused to load it. Every imported
PDF page then showed "Source PDF ... is not available", which looked like
missing files. Serve .mjs as text/javascript.

The page background now also tells the two failures apart: "not stored on
this device" when the source bytes are missing, and "could not display"
(with the error logged) when pdf.js fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL
2026-09-27 09:37:15 +00:00
24ebbd9056 Merge pull request 'Add Dockerfile and compose setup for self-hosting' (#2) from docker into main
Reviewed-on: https://git.srazka.com/reudy-net/Papure/pulls/2
Reviewed-by: reudy <jakubadorfman@proton.me>
2026-09-27 00:35:21 +02:00
23d0c29e0b Add Dockerfile and compose setup for self-hosting
Multi-stage build: Node builds the static PWA, nginx serves it with an SPA
fallback, long-lived caching for hashed assets, no-cache for the app shell
and service worker, and the correct type for the web manifest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL
2026-09-26 22:33:08 +00:00
08a530c78f Merge pull request 'Keep finger pan/zoom working after using the pen' (#1) from agent/fix-finger-navigation into main
Reviewed-on: https://git.srazka.com/reudy-net/Papure/pulls/1
2026-09-26 23:40:46 +02:00
besbara
bca1a6a407 Keep finger pan/zoom working after using the pen
After writing with the pen, fingers could no longer navigate:
- every touch was ignored for 5 s after any pen activity (and for as long
  as a hover-capable pen stayed near the screen),
- after that, a one-finger drag on a page drew ink instead of panning,
- a one-finger drag on the background did nothing while an ink tool was on.

Once a pen has been used, fingers now only pan and zoom. The 5 s session
and hover lockouts only block finger ink; touches are still rejected while
the pen is down, for palm-sized contacts and within 150 ms of pen activity.
A finger drag off the page always pans.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL
2026-09-26 20:09:53 +00:00
besbara
fa2f491161 New pages inherit the size of the page they are created from
Blank pages added next to an existing page (via the "+" tile, Alt+Arrow
or the page menu) now copy that page's width and height, including
imported PDF pages, instead of always falling back to A4. The "+" preview
tile uses the same size so it matches the page it will create.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsorPV3JeJRoZ1mD1pdvtL
2026-09-26 19:55:24 +00:00
0ad405c26e Init 2026-09-26 19:13:02 +02:00