From 61fcf7f699b7a77e90e6580cd9f925b227a0275c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 16 Nov 2021 22:50:11 +0100 Subject: [PATCH] add lock controls for users. --- client/src/components/chat.vue | 2 +- client/src/components/controls.vue | 24 ++++++---- client/src/components/header.vue | 54 ++++++++++++++++------- client/src/components/video.vue | 2 +- client/src/locale/en-us.ts | 25 ++++++++--- client/src/locale/es-sp.ts | 27 +++++++++--- client/src/locale/fr-fr.ts | 27 +++++++++--- client/src/locale/nb-no.ts | 27 +++++++++--- client/src/locale/sk-sk.ts | 26 ++++++++--- client/src/locale/sv-se.ts | 27 +++++++++--- client/src/neko/index.ts | 15 ++++--- client/src/neko/messages.ts | 12 +++++ client/src/store/index.ts | 19 +++++--- docs/changelog.md | 3 ++ server/internal/types/message/messages.go | 6 +++ server/internal/websocket/admin.go | 37 ++++++++++------ server/internal/websocket/control.go | 15 ++++++- server/internal/websocket/handler.go | 17 +++++-- server/internal/websocket/session.go | 23 +++++----- server/internal/websocket/websocket.go | 2 +- 20 files changed, 277 insertions(+), 113 deletions(-) diff --git a/client/src/components/chat.vue b/client/src/components/chat.vue index 166bc653..c8e127de 100644 --- a/client/src/components/chat.vue +++ b/client/src/components/chat.vue @@ -404,7 +404,7 @@ } member(id: string) { - return this.$accessor.user.members[id] + return this.$accessor.user.members[id] || { id, displayname: this.$t('somebody') } } timestamp(time: Date) { diff --git a/client/src/components/controls.vue b/client/src/components/controls.vue index d7296c7e..bac9ec91 100644 --- a/client/src/components/controls.vue +++ b/client/src/components/controls.vue @@ -1,17 +1,17 @@