feat(pages): landing pages, page images and web sign-ups in services-counter

Pages and block rules are ported from babyboo's CMS, scoped per company.
Images are checked by their magic bytes. A WEB registration keeps its
page address and UTM tags and never counts as attended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-02 15:41:30 +08:00
1 parent 9741707156
commit b164110367
21 files changed
+1116 -13

No files matched your search

+3 -3
View File
@@ -23,15 +23,15 @@ Verify commands:
## 2. services-counter
- [ ] 2.1 Page model, validation and endpoints:
- [x] 2.1 Page model, validation and endpoints:
- save, which replaces the blocks;
- find by id within a company, list within a company with search, delete;
- find a published page by company and slug, ignoring case.
- Port babyboo's field, block, link and limit rules, plus the script checks and the company checks on images and FORM events.
- [ ] 2.2 Page images:
- [x] 2.2 Page images:
- upload (magic-byte check, 2 MB limit, company);
- read by id, returning the bytes and the content type.
- [ ] 2.3 Registration:
- [x] 2.3 Registration:
- source `WEB` with `pagePath` and the UTM values, each cut to 100 characters;
- a WEB registration never sets the attended time;
- its notes say "Registered by web page with: …".