Add room creation options endpoint and integrate with chat UI: Implement getRoomCreateOptions in ChatController and ChatService, add corresponding API route, and enhance MultiChatDialog for room creation with localized labels and validation. Update i18n files for new room creation features.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 23:12:54 +01:00
parent 5f4acbea51
commit 2bc34acacf
8 changed files with 251 additions and 35 deletions

View File

@@ -38,6 +38,52 @@
"connected": "Connected",
"disconnected": "Disconnected",
"error": "Connection error"
},
"reloadRooms": "Reload rooms",
"createRoom": {
"toggleShowChat": "Show chat",
"toggleCreateRoom": "Create room",
"title": "Create new room",
"commandPrefix": "Command",
"labels": {
"roomName": "Room name",
"visibility": "Visibility",
"gender": "Gender",
"minAge": "min_age",
"maxAge": "max_age",
"password": "Password",
"rightId": "right_id",
"typeId": "type_id",
"friendsOnly": "friends_only=true"
},
"placeholders": {
"roomName": "e.g. Lounge",
"password": "without spaces"
},
"options": {
"none": "(none)"
},
"actions": {
"create": "Create room",
"reset": "Reset"
},
"validation": {
"roomNameRequired": "Room name is required.",
"minAgeInvalid": "min_age must be >= 0.",
"maxAgeInvalid": "max_age must be >= 0.",
"ageRangeInvalid": "min_age must not be greater than max_age.",
"passwordSpaces": "Password must not contain spaces.",
"rightIdInvalid": "right_id must be > 0.",
"typeIdInvalid": "type_id must be > 0."
},
"messages": {
"noConnection": "No connection to chat server.",
"invalidForm": "Please correct the room form inputs.",
"roomNameMissing": "Please enter a room name.",
"sent": "Room creation sent: {command}"
},
"rights": {},
"types": {}
}
},
"randomchat": {