Add password reset localization and chat configuration
- Implemented German and English localization for password reset functionality. - Added WebSocket URL resolution logic in chat services to support various environments and configurations. - Created centralized chat configuration for event keys and payload mappings. - Developed RoomsView component for admin chat room management, including create, edit, and delete functionalities.
This commit is contained in:
@@ -29,10 +29,14 @@ export default {
|
||||
...mapState(['daemonSocket']),
|
||||
},
|
||||
mounted() {
|
||||
this.daemonSocket.addEventListener('workerStatus', () => { console.log('----'); });
|
||||
if (this.daemonSocket && this.daemonSocket.addEventListener) {
|
||||
this.daemonSocket.addEventListener('workerStatus', this.handleDaemonMessage);
|
||||
}
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.daemonSocket.removeEventListener('workerStatus', this.handleDaemonMessage);
|
||||
if (this.daemonSocket && this.daemonSocket.removeEventListener) {
|
||||
this.daemonSocket.removeEventListener('workerStatus', this.handleDaemonMessage);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openImprintDialog() {
|
||||
@@ -48,7 +52,9 @@ export default {
|
||||
this.$store.dispatch('dialogs/toggleDialogMinimize', dialogName);
|
||||
},
|
||||
async showFalukantDaemonStatus() {
|
||||
this.daemonSocket.send('{"event": "getWorkerStatus"}');
|
||||
if (this.daemonSocket && this.daemonSocket.send) {
|
||||
this.daemonSocket.send('{"event": "getWorkerStatus"}');
|
||||
}
|
||||
},
|
||||
handleDaemonMessage(event) {
|
||||
const status = JSON.parse(event.data);
|
||||
|
||||
Reference in New Issue
Block a user