Skip to content

Commit

Permalink
chore(vue3): lint vue/custom-event-name-casing
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed May 16, 2024
1 parent 08109d3 commit 084428a
Show file tree
Hide file tree
Showing 23 changed files with 61 additions and 61 deletions.
4 changes: 2 additions & 2 deletions src/components/AdminSettings/RecordingServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
},
},

emits: ['remove-server', 'update:server', 'update:verify'],
emits: ['removeServer', 'update:server', 'update:verify'],

data() {
return {
Expand Down Expand Up @@ -126,7 +126,7 @@ export default {

methods: {
removeServer() {
this.$emit('remove-server', this.index)
this.$emit('removeServer', this.index)
},
updateServer(value) {
this.$emit('update:server', value)
Expand Down
4 changes: 2 additions & 2 deletions src/components/AdminSettings/SignalingServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
},
},

emits: ['remove-server', 'update:server', 'update:verify'],
emits: ['removeServer', 'update:server', 'update:verify'],

data() {
return {
Expand Down Expand Up @@ -132,7 +132,7 @@ export default {

methods: {
removeServer() {
this.$emit('remove-server', this.index)
this.$emit('removeServer', this.index)
},
updateServer(value) {
this.$emit('update:server', value)
Expand Down
4 changes: 2 additions & 2 deletions src/components/AdminSettings/StunServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
},
},

emits: ['remove-server', 'update:server'],
emits: ['removeServer', 'update:server'],

computed: {
isValidServer() {
Expand All @@ -92,7 +92,7 @@ export default {

methods: {
removeServer() {
this.$emit('remove-server', this.index)
this.$emit('removeServer', this.index)
},
update(value) {
this.$emit('update:server', value)
Expand Down
4 changes: 2 additions & 2 deletions src/components/AdminSettings/TurnServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default {
},
},

emits: ['remove-server', 'update:schemes', 'update:server', 'update:secret', 'update:protocols'],
emits: ['removeServer', 'update:schemes', 'update:server', 'update:secret', 'update:protocols'],

data() {
return {
Expand Down Expand Up @@ -347,7 +347,7 @@ export default {
},

removeServer() {
this.$emit('remove-server', this.index)
this.$emit('removeServer', this.index)
},
updateSchemes(event) {
this.$emit('update:schemes', event.value)
Expand Down
6 changes: 3 additions & 3 deletions src/components/CallView/Grid/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default {
},
},

emits: ['select-video', 'click-local-video'],
emits: ['selectVideo', 'clickLocalVideo'],

setup() {
return {
Expand Down Expand Up @@ -814,11 +814,11 @@ export default {

handleClickVideo(event, peerId) {
console.debug('selected-video peer id', peerId)
this.$emit('select-video', peerId)
this.$emit('selectVideo', peerId)
},

handleClickLocalVideo() {
this.$emit('click-local-video')
this.$emit('clickLocalVideo')
},

isSelected(callParticipantModel) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/CallView/shared/LocalVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:class="videoContainerClass"
@mouseover="mouseover = true"
@mouseleave="mouseover = false"
@click="$emit('click-video')">
@click="$emit('clickVideo')">
<div v-show="localMediaModel.attributes.videoEnabled"
:class="videoWrapperClass"
class="videoWrapper"
Expand Down Expand Up @@ -122,7 +122,7 @@ export default {
},
},

emits: ['click-video'],
emits: ['clickVideo'],

setup() {
const guestNameStore = useGuestNameStore()
Expand Down
6 changes: 3 additions & 3 deletions src/components/CallView/shared/VideoVue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:class="containerClass"
@mouseover="mouseover = true"
@mouseleave="mouseover = false"
@click="$emit('click-video')">
@click="$emit('clickVideo')">
<TransitionWrapper name="fade">
<div v-show="showVideo"
:class="videoWrapperClass"
Expand All @@ -27,7 +27,7 @@
:aria-label="t('spreed', 'Hide presenter video')"
:title="t('spreed', 'Hide presenter video')"
:size="32"
@click="$emit('click-presenter')" />
@click="$emit('clickPresenter')" />
</div>
</TransitionWrapper>
<TransitionWrapper name="fade">
Expand Down Expand Up @@ -181,7 +181,7 @@ export default {
},
},

emits: ['click-video', 'click-presenter'],
emits: ['clickVideo', 'clickPresenter'],

setup() {
const guestNameStore = useGuestNameStore()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default {
},
},

emits: ['avatar-edited'],
emits: ['avatarEdited'],

setup() {
return {
Expand Down Expand Up @@ -228,12 +228,12 @@ export default {
watch: {
showCropper(value) {
if (this.controlled) {
this.$emit('avatar-edited', value)
this.$emit('avatarEdited', value)
}
},
emojiAvatar(value) {
if (this.controlled) {
this.$emit('avatar-edited', !!value)
this.$emit('avatarEdited', !!value)
}
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<NcActionButton v-if="editable"
icon="icon-delete"
:close-after-click="true"
@click="$emit('delete-part')">
@click="$emit('deletePart')">
{{ t('spreed', 'Delete') }}
</NcActionButton>
</NcActions>
Expand Down Expand Up @@ -117,7 +117,7 @@ export default {
},
},

emits: ['delete-part', 'edit-clicked'],
emits: ['deletePart', 'editClicked'],

data() {
return {
Expand Down Expand Up @@ -158,7 +158,7 @@ export default {
return classes
},
onEditClick() {
this.$emit('edit-clicked')
this.$emit('editClicked')
},
// focus on main field when entering edition mode and when created
focusMainField() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/MediaSettings/VideoBackgroundEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default {
},
},

emits: ['update-background'],
emits: ['updateBackground'],

setup() {
return {
Expand Down Expand Up @@ -192,7 +192,7 @@ export default {

methods: {
handleSelectBackground(path) {
this.$emit('update-background', path)
this.$emit('updateBackground', path)
this.selectedBackground = path
},

Expand Down
4 changes: 2 additions & 2 deletions src/components/MessagesList/MessagesGroup/Message/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default {
},
},

emits: ['toggle-combined-system-message'],
emits: ['toggleCombinedSystemMessage'],

setup() {
return {
Expand Down Expand Up @@ -534,7 +534,7 @@ export default {
},

toggleCombinedSystemMessage() {
this.$emit('toggle-combined-system-message')
this.$emit('toggleCombinedSystemMessage')
},
toggleFollowUpEmojiPicker() {
this.isFollowUpEmojiPickerOpen = !this.isFollowUpEmojiPickerOpen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
</NcActionButton>
<NcActionButton v-if="isTranslationAvailable && !isFileShareWithoutCaption"
close-after-click
@click.stop="$emit('show-translate-dialog', true)"
@close="$emit('show-translate-dialog', false)">
@click.stop="$emit('showTranslateDialog', true)"
@close="$emit('showTranslateDialog', false)">
<template #icon>
<Translate :size="16" />
</template>
Expand Down Expand Up @@ -464,7 +464,7 @@ export default {
},
},

emits: ['delete', 'update:isActionMenuOpen', 'update:isEmojiPickerOpen', 'update:isReactionsMenuOpen', 'update:isForwarderOpen', 'show-translate-dialog', 'reply', 'edit'],
emits: ['delete', 'update:isActionMenuOpen', 'update:isEmojiPickerOpen', 'update:isReactionsMenuOpen', 'update:isForwarderOpen', 'showTranslateDialog', 'reply', 'edit'],

setup(props) {
const { token, id } = toRefs(props)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
tabindex="1"
type="primary"
:aria-label="removeAriaLabel"
@click="$emit('remove-file', id)">
@click="$emit('removeFile', id)">
<template #icon>
<Close />
</template>
Expand Down Expand Up @@ -253,7 +253,7 @@ export default {
},
},

emits: ['remove-file'],
emits: ['removeFile'],

setup() {
const { openViewer, generateViewerObject } = useViewer()
Expand Down Expand Up @@ -575,7 +575,7 @@ export default {
methods: {
handleClick(event) {
if (this.isUploadEditor) {
this.$emit('remove-file', this.id)
this.$emit('removeFile', this.id)
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default {
},
},

emits: ['emoji-picker-toggled'],
emits: ['emojiPickerToggled'],

setup() {
const guestNameStore = useGuestNameStore()
Expand Down Expand Up @@ -258,7 +258,7 @@ export default {
},

emitEmojiPickerStatus() {
this.$emit('emoji-picker-toggled')
this.$emit('emojiPickerToggled')
},

remainingReactionsLabel(reaction) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:label="t('spreed', 'Name')"
:error="!!nameErrorLabel"
label-visible
@keydown.enter="$emit('handle-enter')" />
@keydown.enter="$emit('handleEnter')" />
<span v-if="nameErrorLabel" class="new-group-conversation__error">
{{ nameErrorLabel }}
</span>
Expand All @@ -32,7 +32,7 @@
:conversation="newConversation"
controlled
editable
@avatar-edited="$emit('avatar-edited', $event)" />
@avatar-edited="$emit('avatarEdited', $event)" />
</template>

<label class="new-group-conversation__label">
Expand Down Expand Up @@ -102,7 +102,7 @@ export default {
}
},

emits: ['update:newConversation', 'update:password', 'update:listable', 'avatar-edited', 'handle-enter'],
emits: ['update:newConversation', 'update:password', 'update:listable', 'avatarEdited', 'handleEnter'],

setup() {
return { supportsAvatar }
Expand Down
10 changes: 5 additions & 5 deletions src/components/NewMessage/NewMessageAttachments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<NcActionButton v-if="canUploadFiles"
close-after-click
@click="$emit('open-file-upload')">
@click="$emit('openFileUpload')">
<template #icon>
<Upload :size="20" />
</template>
Expand All @@ -26,7 +26,7 @@

<template v-if="canShareFiles">
<NcActionButton close-after-click
@click="$emit('handle-file-share')">
@click="$emit('handleFileShare')">
<template #icon>
<Folder :size="20" />
</template>
Expand All @@ -37,7 +37,7 @@
:key="index"
close-after-click
:icon="provider.iconClass"
@click="$emit('update-new-file-dialog', index)">
@click="$emit('updateNewFileDialog', index)">
<template v-if="provider.iconSvgInline" #icon>
<NcIconSvgWrapper :svg="provider.iconSvgInline" :size="20" />
</template>
Expand All @@ -47,7 +47,7 @@

<NcActionButton v-if="canCreatePoll"
close-after-click
@click="$emit('toggle-poll-editor')">
@click="$emit('togglePollEditor')">
<template #icon>
<PollIcon :size="20" />
</template>
Expand Down Expand Up @@ -117,7 +117,7 @@ export default {
},
},

emits: ['update-new-file-dialog', 'toggle-poll-editor', 'open-file-upload', 'handle-file-share'],
emits: ['updateNewFileDialog', 'togglePollEditor', 'openFileUpload', 'handleFileShare'],

computed: {
fileTemplateOptions() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/NewMessage/NewMessageAudioRecorder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
},
},

emits: ['recording', 'audio-file'],
emits: ['recording', 'audioFile'],

data() {
return {
Expand Down Expand Up @@ -266,7 +266,7 @@ export default {
// Convert blob to file
const audioFile = new File([this.blob], fileName)
audioFile.localURL = window.URL.createObjectURL(this.blob)
this.$emit('audio-file', audioFile)
this.$emit('audioFile', audioFile)
this.$emit('recording', false)
}
this.resetComponentData()
Expand Down
Loading

0 comments on commit 084428a

Please sign in to comment.