fix: apply ESLint rule vue/custom-event-name-casing

This commit is contained in:
iamsivin
2024-07-25 23:40:54 +05:30
parent 2ef9274450
commit ecb0b4a4f4
144 changed files with 509 additions and 515 deletions
@@ -217,7 +217,7 @@ export default {
this.player.wavesurfer().pause();
},
fireRecorderBlob(blob) {
this.$emit('finish-record', {
this.$emit('finishRecord', {
name: blob.name,
type: blob.type,
size: blob.size,
@@ -225,10 +225,10 @@ export default {
});
},
fireStateRecorderChanged(state) {
this.$emit('state-recorder-changed', state);
this.$emit('stateRecorderChanged', state);
},
fireProgressRecord(duration) {
this.$emit('state-recorder-progress-changed', duration);
this.$emit('stateRecorderProgressChanged', duration);
},
},
};
@@ -109,10 +109,10 @@ export default {
return {
typingIndicator: createTypingIndicator(
() => {
this.$emit('typing-on');
this.$emit('typingOn');
},
() => {
this.$emit('typing-off');
this.$emit('typingOff');
},
TYPING_INDICATOR_IDLE_TIME
),
@@ -252,13 +252,13 @@ export default {
},
watch: {
showUserMentions(updatedValue) {
this.$emit('toggle-user-mention', this.isPrivate && updatedValue);
this.$emit('toggleUserMention', this.isPrivate && updatedValue);
},
showCannedMenu(updatedValue) {
this.$emit('toggle-canned-menu', !this.isPrivate && updatedValue);
this.$emit('toggleCannedMenu', !this.isPrivate && updatedValue);
},
showVariables(updatedValue) {
this.$emit('toggle-variables-menu', !this.isPrivate && updatedValue);
this.$emit('toggleVariablesMenu', !this.isPrivate && updatedValue);
},
value(newVal = '') {
if (newVal !== this.contentFromEditor) {
@@ -287,7 +287,7 @@ export default {
this.state = this.editorView.state.apply(tr);
this.editorView.updateState(this.state);
this.emitOnChange();
this.$emit('clear-selection');
this.$emit('clearSelection');
}
}
return null;
@@ -227,10 +227,10 @@ export default {
this.setSignatureFlagForInbox(this.channelType, !this.sendWithSignature);
},
replaceText(text) {
this.$emit('replace-text', text);
this.$emit('replaceText', text);
},
toggleInsertArticle() {
this.$emit('toggle-insert-article');
this.$emit('toggleInsertArticle');
},
},
};
@@ -293,7 +293,7 @@ export default {
color-scheme="secondary"
variant="smooth"
size="small"
@click="$emit('toggle-editor')"
@click="$emit('toggleEditor')"
/>
<woot-button
v-if="showAudioPlayStopButton"
@@ -334,7 +334,7 @@ export default {
:conversation-id="conversationId"
:is-private-note="isOnPrivateNote"
:message="message"
@replace-text="replaceText"
@replaceText="replaceText"
/>
<transition name="modal-fade">
<div