diff options
author | Grigorii K. Shartsev <me@shgk.me> | 2023-05-04 23:08:39 +0200 |
---|---|---|
committer | Grigorii K. Shartsev <me@shgk.me> | 2023-05-05 09:54:27 +0200 |
commit | dbfb16fda20f6d283ea1212fe67f79fd03db1de0 (patch) | |
tree | 5688348949a4cd618a3cd75cc1b49ed44dbecf5c | |
parent | d7df4fd08ef2a1b974a5c67f72d240472673459f (diff) |
techdebt(vue3): define emits
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
40 files changed, 80 insertions, 0 deletions
diff --git a/src/PublicShareSidebarTrigger.vue b/src/PublicShareSidebarTrigger.vue index 5f2ee3e9b..a8eb45c5f 100644 --- a/src/PublicShareSidebarTrigger.vue +++ b/src/PublicShareSidebarTrigger.vue @@ -51,6 +51,8 @@ export default { }, }, + emits: ['click'], + computed: { ariaLabel() { if (this.sidebarState.isOpen) { diff --git a/src/components/AdminSettings/RecordingServer.vue b/src/components/AdminSettings/RecordingServer.vue index 53016b6bb..4c15b1e6d 100644 --- a/src/components/AdminSettings/RecordingServer.vue +++ b/src/components/AdminSettings/RecordingServer.vue @@ -103,6 +103,8 @@ export default { }, }, + emits: ['remove-server', 'update:server', 'update:verify'], + data() { return { checked: false, diff --git a/src/components/AdminSettings/SignalingServer.vue b/src/components/AdminSettings/SignalingServer.vue index 3881caed2..1f367ba7b 100644 --- a/src/components/AdminSettings/SignalingServer.vue +++ b/src/components/AdminSettings/SignalingServer.vue @@ -102,6 +102,8 @@ export default { }, }, + emits: ['remove-server', 'update:server', 'update:verify'], + data() { return { checked: false, diff --git a/src/components/AdminSettings/StunServer.vue b/src/components/AdminSettings/StunServer.vue index 3d9cbba9c..3f3aed9f5 100644 --- a/src/components/AdminSettings/StunServer.vue +++ b/src/components/AdminSettings/StunServer.vue @@ -86,6 +86,8 @@ export default { }, }, + emits: ['remove-server', 'update:server'], + computed: { isValidServer() { let server = this.server diff --git a/src/components/AdminSettings/TurnServer.vue b/src/components/AdminSettings/TurnServer.vue index 32e6cad8f..3f92c3d98 100644 --- a/src/components/AdminSettings/TurnServer.vue +++ b/src/components/AdminSettings/TurnServer.vue @@ -156,6 +156,8 @@ export default { }, }, + emits: ['remove-server', 'update:schemes', 'update:server', 'update:secret', 'update:protocols'], + data() { return { testing: false, diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue index cdbecdcfb..9c19e8f97 100644 --- a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue +++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue @@ -106,6 +106,8 @@ export default { }, }, + emits: ['close'], + data() { return { mode: '1', diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue index 61e9cba73..306b16ba8 100644 --- a/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue +++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue @@ -138,6 +138,8 @@ export default { }, }, + emits: ['back', 'close'], + data() { return { selectedParticipants: [], diff --git a/src/components/BreakoutRoomsEditor/SendMessageDialog.vue b/src/components/BreakoutRoomsEditor/SendMessageDialog.vue index d9c9e6422..bcdc4076e 100644 --- a/src/components/BreakoutRoomsEditor/SendMessageDialog.vue +++ b/src/components/BreakoutRoomsEditor/SendMessageDialog.vue @@ -84,6 +84,8 @@ export default { }, }, + emits: ['close'], + data() { return { modalContainerId: null, diff --git a/src/components/CallView/Grid/Grid.vue b/src/components/CallView/Grid/Grid.vue index ab609945d..1fad55e3b 100644 --- a/src/components/CallView/Grid/Grid.vue +++ b/src/components/CallView/Grid/Grid.vue @@ -290,6 +290,8 @@ export default { }, }, + emits: ['select-video', 'click-local-video'], + data() { return { gridWidth: 0, diff --git a/src/components/ConversationSettings/EditableTextField.vue b/src/components/ConversationSettings/EditableTextField.vue index ac49582b9..9dbe3c8b0 100644 --- a/src/components/ConversationSettings/EditableTextField.vue +++ b/src/components/ConversationSettings/EditableTextField.vue @@ -149,6 +149,8 @@ export default { }, }, + emits: ['update:editing', 'submit-text'], + data() { return { text: this.initialText, diff --git a/src/components/ConversationSettings/ListableSettings.vue b/src/components/ConversationSettings/ListableSettings.vue index feb04eb1c..86daaaba8 100644 --- a/src/components/ConversationSettings/ListableSettings.vue +++ b/src/components/ConversationSettings/ListableSettings.vue @@ -69,6 +69,8 @@ export default { }, }, + emits: ['input'], + data() { return { listable: null, diff --git a/src/components/ConversationSettings/Matterbridge/BridgePart.vue b/src/components/ConversationSettings/Matterbridge/BridgePart.vue index e3cd9fa5b..165519ce5 100644 --- a/src/components/ConversationSettings/Matterbridge/BridgePart.vue +++ b/src/components/ConversationSettings/Matterbridge/BridgePart.vue @@ -132,6 +132,8 @@ export default { }, }, + emits: ['delete-part', 'edit-clicked'], + data() { return { readonly: true, diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.vue b/src/components/LeftSidebar/ConversationsList/Conversation.vue index 4e9531a04..791d05eea 100644 --- a/src/components/LeftSidebar/ConversationsList/Conversation.vue +++ b/src/components/LeftSidebar/ConversationsList/Conversation.vue @@ -180,6 +180,8 @@ export default { }, }, + emits: ['click'], + computed: { counterType() { if (this.item.unreadMentionDirect || (this.item.unreadMessages !== 0 && ( |