Features implemented: - Cookie consent banner (Accept/Reject) with localStorage storage - Conditional Umami Analytics loading (only with consent) - Admin dashboard at /admin/consent-logs with password protection - API endpoints for consent logging (POST/GET/DELETE) - Updated Privacy Policy with all 14 PDPA Section 36 requirements - Updated Terms & Conditions with 17 comprehensive sections - Astro DB integration with consent logging schema - Production-ready Dockerfile with SQLite support - Start command for Easypanel deployment Files added: - src/components/consent/CookieBanner.astro - src/pages/api/consent/index.ts - src/pages/api/consent/[sessionId]/index.ts - src/pages/admin/consent-logs.astro - db/schema.ts - .env.example - PDPA-COMPLIANCE.md Files modified: - src/layouts/Layout.astro (CookieBanner + conditional Umami) - src/pages/privacy-policy.astro (full PDPA compliance) - src/pages/terms-and-conditions.astro (comprehensive update) - astro.config.mjs (Node adapter + DB) - Dockerfile (production build with DB) - package.json (dependencies + start script) Deployment notes: - CHANGE ADMIN_PASSWORD from default 'changeme' - Run with: npm run start - Docker: docker build -t moreminimore:latest .
27 lines
683 B
JSON
27 lines
683 B
JSON
{
|
|
"name": "moreminimore-redesign",
|
|
"type": "module",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"build": "astro build",
|
|
"build:remote": "ASTRO_DB_REMOTE_URL=file:./data/consent.db astro build --remote",
|
|
"preview": "astro preview",
|
|
"start": "node dist/server/entry.mjs",
|
|
"astro": "astro",
|
|
"db:push": "astro db push",
|
|
"db:seed": "astro db seed"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/db": "^0.19.0",
|
|
"@astrojs/node": "^9.5.4",
|
|
"@tailwindcss/vite": "^4.2.1",
|
|
"astro": "^5.17.1",
|
|
"astro-consent": "^1.0.17",
|
|
"drizzle-orm": "^0.45.1",
|
|
"libsql": "^0.5.22",
|
|
"serve": "^14.2.5",
|
|
"tailwindcss": "^4.2.1"
|
|
}
|
|
}
|