38 Commits

Author SHA1 Message Date
Fam Zheng
2df1973773 emblemscanner wip 2025-10-29 21:27:29 +00:00
Fam Zheng
0aacad31f4 emblemscanner: add camera rules, web-view fallback, and loading state
Major enhancements to the emblemscanner module:

**Camera System:**
- Device-specific camera rules from Themblem API
- Web-view fallback for problematic devices in same page
- Loading spinner prevents camera mode jumping
- Debug mode with comprehensive diagnostics

**Self-contained Architecture:**
- Inline utility functions (no external dependencies)
- Camera rule matching and API integration
- Web-view URL generation with proper parameters
- Message handling for web-view QR results

**UI Improvements:**
- Hide overlays during loading state
- Enhanced debug overlay with camera rule info
- Worker/native camera mode detection
- Loading feedback with "初始化相机..." message

Module is now production-ready for camera setup and UI, with framework for QR processing integration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 21:27:29 +00:00
Fam Zheng
cd987a4b82 add emblemscanner: self-contained QR scanner module
Create portable QR scanning page module with:
- WeChat native camera integration with overlay system
- Animated QR targeting arcs and visual feedback
- Torch/flash controls and camera setup
- Inline modal system (verification, guide, service)
- Return page navigation support via query parameter
- Debug overlay and device detection
- Complete asset bundle (arc.png, qrmarkers.png, buttons)

Module can be integrated into other WeChat Mini Programs by copying pages/emblemscanner/ directory.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 21:27:29 +00:00
Fam Zheng
811cb1715c scanner: support start button customize 2025-10-29 21:27:29 +00:00
Fam Zheng
6d3b0fe683 views: Fix type of tenant pk 2025-08-16 19:48:11 +01:00
Fam Zheng
e9d32b739d scanner: support q= code in url 2025-08-16 18:36:55 +01:00
Fam Zheng
935577c339 scanner: Fix worker creation order against camera listener setup 2025-08-14 22:42:51 +01:00
Fam Zheng
fff1ac4af6 scanner: disable worker for iphone 2025-08-13 09:57:03 +01:00
Fam Zheng
cd8d3527c7 scanner: Upload 3 frames 2025-05-10 22:42:25 +01:00
Fam Zheng
42652eb221 Drop skip_angle_check 2025-05-10 21:32:27 +01:00
Fam Zheng
55fd00d35e scanner: Check clarity of left mid of qr 2025-04-24 22:24:28 +01:00
Fam Zheng
d33836099c scanner: Use camera-5.0 2025-04-24 21:30:21 +01:00
Fam Zheng
e23ff73c89 scanner: Enable skip_angle_check 2025-04-24 20:48:48 +01:00
Fam Zheng
771545e716 alg: update wasm 2025-04-24 20:46:57 +01:00
Fam Zheng
4ea0b515be drop detection 2025-04-24 09:06:51 +01:00
Fam Zheng
a766eb1951 scanner: Update frame page 2025-04-15 06:51:51 +01:00
Fam Zheng
a586f03376 scanner: Fix frame image_data_url 2025-04-15 06:51:51 +01:00
Fam Zheng
8ade734e87 scanner: Add frame page 2025-04-15 06:51:51 +01:00
Fam Zheng
304ec81588 scanner: use_roi_verify 2025-04-15 06:51:51 +01:00
Fam Zheng
92e23a8306 update wasm to enable sobel sensitivity 2025-03-20 23:11:58 -07:00
Fam Zheng
6d4f831003 scanner: Global session id 2025-03-02 15:55:20 +00:00
Fam Zheng
0593c1f8a5 scanner: update qrtool.wx.js 2025-03-02 15:53:14 +00:00
Fam Zheng
0b8e93c94b scanner: Add redirect option to index page 2025-03-01 21:15:26 +00:00
Fam Zheng
d1f38e868b scanner/chat: Fix goto camera 2025-03-01 13:36:26 +00:00
Fam Zheng
923534ca12 scanner/chat: Show local time in verify result 2025-03-01 13:36:26 +00:00
Fam Zheng
5557efe0a5 link chat and camera 2025-03-01 13:36:26 +00:00
Fam Zheng
f2c461935a more ai chat pages 2025-03-01 13:36:26 +00:00
Fam Zheng
d15785c51a scanner: update chat logo 2025-03-01 13:36:26 +00:00
Fam Zheng
6d04ddc3a3 scanner: add chat page 2025-03-01 13:36:26 +00:00
Fam Zheng
3010ee3657 scanner: More adaptive frame upload 2025-03-01 13:36:26 +00:00
Fam Zheng
4f6f97a784 scanner: Disable frame upload
This needs to go to a different domain name to avoid congestion.
2025-03-01 13:36:26 +00:00
Fam Zheng
689571b260 scanner: Upload frame every 2 seconds 2025-03-01 13:36:26 +00:00
Fam Zheng
c5c8170b1f alg: Return qrcode if detected 2025-02-23 14:30:46 +00:00
Fam Zheng
abd29721e3 scanner: Update qr arc animation before qr is found
Also update the hint text.
2025-02-22 23:09:14 +00:00
Fam Zheng
072b36f38e scanner: Update qrtool.wx.js 2025-02-15 11:46:55 +00:00
Fam Zheng
87d3ddcd49 camera: Upload frame every 5 seconds 2025-02-14 23:14:00 +00:00
Fam Zheng
34f8ab4ff1 scanner: Update camera (dev) launch profile 2025-02-14 23:13:59 +00:00
Fam Zheng
8a4f10aeed initial commit 2024-09-01 21:51:50 +01:00