Fix language setting not being saved to database on admin settings page

- Added default_language field to general settings state in SettingsPage
- Replaced LanguageSelector component with simple select dropdown on settings page
- Fixed public settings endpoint to read general_default_language from database
- Language setting now properly saved when clicking Save Settings button
- Setting is correctly used by gallery login page and legal pages

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-08 09:49:45 +02:00
parent cfa0b0da69
commit 2012b0bab9
91 changed files with 6183 additions and 577 deletions
+7 -7
View File
@@ -7,13 +7,13 @@ services:
context: ./backend
dockerfile: Dockerfile
ports:
- "3000:3000"
- "3001:3000"
environment:
- NODE_ENV=development
- PORT=3000
- JWT_SECRET=dev-secret-key
- ADMIN_URL=http://localhost:3000
- FRONTEND_URL=http://localhost:3001
- ADMIN_URL=http://localhost:3001
- FRONTEND_URL=http://localhost:3005
- SMTP_HOST=mailhog
- SMTP_PORT=1025
- SMTP_SECURE=false
@@ -28,7 +28,7 @@ services:
- ./logs:/app/logs
depends_on:
- mailhog
command: npm run dev
command: node server.js
frontend:
build:
@@ -36,13 +36,13 @@ services:
dockerfile: Dockerfile
target: builder
ports:
- "3001:3000"
- "3005:5173"
environment:
- REACT_APP_API_URL=http://localhost:3000
- REACT_APP_API_URL=http://localhost:3001
volumes:
- ./frontend:/app
- /app/node_modules
command: npm start
command: npm run dev
mailhog:
image: mailhog/mailhog:latest