Add functionality for managing user-owned chat rooms: Implement getOwnRooms and deleteOwnRoom methods in ChatController and ChatService, add corresponding API routes in chatRouter, and enhance MultiChatDialog for displaying and deleting owned rooms with localized messages. Update i18n files for new features.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 23:22:16 +01:00
parent 2bc34acacf
commit 190cf626f9
8 changed files with 334 additions and 26 deletions

View File

@@ -49,11 +49,11 @@
"roomName": "Raumname",
"visibility": "Sichtbarkeit",
"gender": "Geschlecht",
"minAge": "min_age",
"maxAge": "max_age",
"minAge": "Mindestalter",
"maxAge": "Höchstalter",
"password": "Passwort",
"rightId": "right_id",
"typeId": "type_id",
"rightId": "Benötigtes Recht",
"typeId": "Raumtyp",
"friendsOnly": "friends_only=true"
},
"placeholders": {
@@ -61,7 +61,12 @@
"password": "ohne Leerzeichen"
},
"options": {
"none": "(keine)"
"none": "(keine)",
"visibilityPublic": "Öffentlich",
"visibilityPrivate": "Privat",
"genderMale": "Männlich",
"genderFemale": "Weiblich",
"genderAny": "Alle / Keine Einschränkung"
},
"actions": {
"create": "Raum erstellen",
@@ -82,7 +87,30 @@
"roomNameMissing": "Bitte einen Raumnamen angeben.",
"sent": "Raum-Erstellung gesendet: {command}"
},
"rights": {},
"ownedRooms": {
"title": "Meine erstellten Räume",
"hint": "Löschen per Daemon-Befehl: /dr <raumname> (Alias: /delete_room <raumname>)",
"empty": "Du hast noch keine eigenen Räume.",
"public": "public",
"private": "private",
"confirmDelete": "Soll der Raum \"{room}\" wirklich gelöscht werden?",
"deleteSent": "Löschbefehl gesendet: /dr {room}",
"deleteError": "Raum konnte nicht gelöscht werden."
},
"rights": {
"mainadmin": "Hauptadministrator",
"contactrequests": "Kontaktanfragen",
"users": "Benutzer",
"userrights": "Benutzerrechte",
"forum": "Forum",
"interests": "Interessen",
"falukant": "Falukant",
"minigames": "Minispiele",
"match3": "Match3",
"taxiTools": "Taxi-Tools",
"chatrooms": "Chaträume",
"servicesStatus": "Service-Status"
},
"types": {}
}
},

View File

@@ -49,11 +49,11 @@
"roomName": "Room name",
"visibility": "Visibility",
"gender": "Gender",
"minAge": "min_age",
"maxAge": "max_age",
"minAge": "Minimum age",
"maxAge": "Maximum age",
"password": "Password",
"rightId": "right_id",
"typeId": "type_id",
"rightId": "Required right",
"typeId": "Room type",
"friendsOnly": "friends_only=true"
},
"placeholders": {
@@ -61,7 +61,12 @@
"password": "without spaces"
},
"options": {
"none": "(none)"
"none": "(none)",
"visibilityPublic": "Public",
"visibilityPrivate": "Private",
"genderMale": "Male",
"genderFemale": "Female",
"genderAny": "Any / No restriction"
},
"actions": {
"create": "Create room",
@@ -82,7 +87,30 @@
"roomNameMissing": "Please enter a room name.",
"sent": "Room creation sent: {command}"
},
"rights": {},
"ownedRooms": {
"title": "My created rooms",
"hint": "Delete via daemon command: /dr <roomname> (alias: /delete_room <roomname>)",
"empty": "You have no own rooms yet.",
"public": "public",
"private": "private",
"confirmDelete": "Do you really want to delete room \"{room}\"?",
"deleteSent": "Delete command sent: /dr {room}",
"deleteError": "Could not delete room."
},
"rights": {
"mainadmin": "Main administrator",
"contactrequests": "Contact requests",
"users": "Users",
"userrights": "User rights",
"forum": "Forum",
"interests": "Interests",
"falukant": "Falukant",
"minigames": "Mini games",
"match3": "Match3",
"taxiTools": "Taxi tools",
"chatrooms": "Chat rooms",
"servicesStatus": "Service status"
},
"types": {}
}
},

View File

@@ -48,11 +48,11 @@
"roomName": "Nombre de la sala",
"visibility": "Visibilidad",
"gender": "Género",
"minAge": "min_age",
"maxAge": "max_age",
"minAge": "Edad mínima",
"maxAge": "Edad máxima",
"password": "Contraseña",
"rightId": "right_id",
"typeId": "type_id",
"rightId": "Permiso requerido",
"typeId": "Tipo de sala",
"friendsOnly": "friends_only=true"
},
"placeholders": {
@@ -60,7 +60,12 @@
"password": "sin espacios"
},
"options": {
"none": "(ninguno)"
"none": "(ninguno)",
"visibilityPublic": "Pública",
"visibilityPrivate": "Privada",
"genderMale": "Masculino",
"genderFemale": "Femenino",
"genderAny": "Cualquiera / Sin restricción"
},
"actions": {
"create": "Crear sala",
@@ -81,7 +86,30 @@
"roomNameMissing": "Introduce un nombre de sala.",
"sent": "Creación de sala enviada: {command}"
},
"rights": {},
"ownedRooms": {
"title": "Mis salas creadas",
"hint": "Eliminar con comando del daemon: /dr <sala> (alias: /delete_room <sala>)",
"empty": "Aún no tienes salas propias.",
"public": "public",
"private": "private",
"confirmDelete": "¿Seguro que quieres eliminar la sala \"{room}\"?",
"deleteSent": "Comando de borrado enviado: /dr {room}",
"deleteError": "No se pudo eliminar la sala."
},
"rights": {
"mainadmin": "Administrador principal",
"contactrequests": "Solicitudes de contacto",
"users": "Usuarios",
"userrights": "Permisos de usuario",
"forum": "Foro",
"interests": "Intereses",
"falukant": "Falukant",
"minigames": "Minijuegos",
"match3": "Match3",
"taxiTools": "Herramientas de Taxi",
"chatrooms": "Salas de chat",
"servicesStatus": "Estado de servicios"
},
"types": {}
}
},