Dashboard quản trị doanh thu, lợi nhuận và hiệu suất KTV cho hệ thống 3AM D’SPA + SCA Academy.
🔗 Live: https://siliciouslee2912.github.io/weekly-tracking/dashboard-tuan.html
Firebase Console → Build → Firestore Database → Create database → Region asia-southeast1 → Test mode
Firebase Console → Build → Authentication → Get started → Sign-in method → Anonymous → Enable
Authentication → Settings → tab “Authorized domains” → Add siliciouslee2912.github.io
Firestore Database → Rules → copy nội dung từ file firestore.rules trong repo này → Publish
/dashboard/main (single doc, ~60KB)
payload: {
branches: [...], // 4 cơ sở
weekly: [...], // weekly summary records
pnl: {...}, // P&L data theo tháng (T1/2025 → T2/2026)
ktv: {...}, // KTV aggregates
sca: {...},
_seedVersion: "..."
}
_updatedAt: serverTimestamp
Password được hash SHA-256 và lưu hardcoded trong dashboard-tuan.html (biến PASSWORD_HASH).
Để đổi:
echo -n "MAT_KHAU_MOI" | sha256sum
Lấy chuỗi hash xuất ra, paste vào biến PASSWORD_HASH trong file HTML, push GitHub.
File chính: dashboard-tuan.html (single-file SPA, không build step).