feat(wiki): add community image upload for wiki entities

Support uploading images for Pokemon, Items, and Habitats
Track upload history in new entity_image_uploads table
Update entity cards to display uploaded images and usage ribbons
This commit is contained in:
2026-05-03 01:08:45 +08:00
parent 36e10a06b0
commit 784cbdacd1
23 changed files with 1407 additions and 102 deletions

View File

@@ -24,10 +24,14 @@ services:
BACKEND_PORT: 3001
FRONTEND_ORIGIN: http://localhost:3000
APP_ORIGIN: http://localhost:3000
UPLOAD_DIR: /app/uploads
BACKEND_PUBLIC_ORIGIN: http://localhost:3001
RESEND_API_KEY: ${RESEND_API_KEY:-}
EMAIL_FROM: "${EMAIL_FROM:-Pokopia Wiki <onboarding@resend.dev>}"
ports:
- "3001:3001"
volumes:
- backend_uploads:/app/uploads
depends_on:
postgres:
condition: service_healthy
@@ -45,3 +49,4 @@ services:
volumes:
postgres18_data:
backend_uploads: