Refactor: Add full PDPA compliance features

- Cookie consent system (banner + modal) with Thai language
- Consent logging database (Astro DB + SQLite)
- API endpoints for consent management (POST/GET/DELETE)
- Admin dashboard for viewing consent logs (/admin/consent-logs)
- Umami Analytics integration (conditional loading with consent)
- Updated Privacy Policy (full 14-section PDPA Section 36 compliance)
- Updated Terms & Conditions (17 sections, Thailand law)
- Dockerfile updated with SQLite runtime
- Node.js adapter for SSR support
- Admin password: moreminimore2026!Secure (CHANGE IN PRODUCTION)

TODO: Configure Umami Analytics with actual Website ID
This commit is contained in:
Kunthawat Greethong
2026-03-09 13:08:09 +07:00
parent da8437bed0
commit 14ca77ed09
17 changed files with 2372 additions and 43 deletions

5
.gitignore vendored
View File

@@ -16,6 +16,11 @@ pnpm-debug.log*
# environment variables
.env
.env.production
.env.example
# development database
dev.db
data/
# macOS-specific files
.DS_Store