Tournament · 賽事
Add Match
Matches
Standings (auto-calculated)
Teams & Roster · 隊伍名單
Click Edit next to any player to change their name and stats.
Add Player
Cloudflare Worker · 網站相片儲存
One-time Cloudflare setup. After that, photos upload directly to R2 and Publish to Website writes scores + albums online — no manual file uploads.
Uses your login password for this session. Change it in Cloudflare Worker → Variables and Secrets.
Cloudflare setup guide (one-time, ~10 min)
- R2 bucket: Cloudflare Dashboard → R2 → bucket
hkginlinefloorballphoto. Do not addhkginlinefloorball.comunder R2 → Custom Domains. TheBUCKETbinding is set inwrangler.toml— skip the dashboard “Add binding” screen. - Push to GitHub: Upload these files to your repo root:
wrangler.toml,package.json,cloudflare/worker.js,public/(HTML, CSS, JS, data) - Cloudflare build: Workers & Pages → hkginlinefloorballwebpage → Settings → Builds:
Root
inlinefloorballwebpage, Deploy commandnpx wrangler deploy - Domain: Set in
wrangler.toml([[routes]]withcustom_domain = true). Deploy applies it automatically — no manual Domains & Routes step needed. - Secret only: Worker → Settings → Variables and Secrets (not Build) → add Secret
ADMIN_PASSWORD. - Enter Worker Base URL + Admin Password above → Save Worker Settings (tests live connection)
- Test in browser:
https://hkginlinefloorball.com/api/healthshould return JSON (not 404) - Upload photos below → click Publish to Website
Free tier: R2 10 GB storage, Worker 100k requests/day — plenty for tournament albums.
No Worker? Use Export Photos ZIP and upload files manually to Cloudflare Pages.
Tournament Photo Album · 賽事相簿
Photos linked to the selected tournament above (shown on Scoreboard → Photos tab).
For events and daily training albums, use Photo Galleries Admin →
Drag to reorder. Published photos use URLs like https://hkginlinefloorball.com/photos/tournament-id/ph-123.jpg
Data Management
Publish to Website uploads pending photos to R2 (if configured), then publishes scores.json and album files via the Worker. Without Worker settings, files are downloaded for manual upload.
Admin Password · 管理員密碼
One password for PC, phone, and all devices. To change it: Cloudflare Dashboard → Workers → hkginlinefloorballwebpage → Settings → Variables and Secrets → edit ADMIN_PASSWORD (must be Secret, not Build).