Repository navigation
A faster scanner, with batch scanning
- Much faster decoding. QR codes are now read by ZXing (WebAssembly) in a background worker, starting with the square inside the guide. Each attempt took about 79 ms before, followed by a fixed 250 ms wait; now it takes about 5 ms and the next one starts right away (measured on a desktop; phones are slower, but the difference is the same). The camera picture no longer stutters while decoding. On Android, Chrome's own QR reader is used where available.
- Scan a pile of receipts in one go. After a receipt, the frame flashes green, the phone vibrates (where supported) and the camera keeps scanning. Each receipt is imported in the background and listed under the camera: imported ✓, already entered, or an error. Gotovo goes to Troškovi.
- The camera opens by itself on Skeniraj once you've allowed it.
- Flashlight and 2× zoom buttons appear where the phone's camera supports them, mostly on Android.
- NBS IPS payment codes work as before: the camera stops and the filled-in form opens for you to check.
Upgrading
No database changes. Set SITNIS_VERSION=0.0.3 in docker/prod/.env, then:
docker compose -f docker/prod/docker-compose.yml pull
docker compose -f docker/prod/docker-compose.yml up -dThe image is dusnm1/sitnis:0.0.3, for linux/amd64 and linux/arm64. The scanner's worker is served with its own Content-Security-Policy, which allows compiling WebAssembly; the page's policy is unchanged.