Skip to content

Commit

Permalink
Fix vue/custom-event-name-casing
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Sep 5, 2021
1 parent 97e29a4 commit bf44d03
Show file tree
Hide file tree
Showing 24 changed files with 100 additions and 100 deletions.
2 changes: 1 addition & 1 deletion src/components/AppNavigation/Settings/ImportScreenRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<CalendarPicker class="import-modal-file-item__calendar-select"
:calendar="calendar"
:calendars="calendars"
@selectCalendar="selectCalendar" />
@select-calendar="selectCalendar" />
</li>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Alarm/AlarmList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
:alarm="alarm"
:calendar-object-instance="calendarObjectInstance"
:is-read-only="isReadOnly"
@removeAlarm="removeAlarm" />
@remove-alarm="removeAlarm" />
<AlarmListNew
v-if="!isReadOnly"
:is-all-day="calendarObjectInstance.isAllDay"
@addAlarm="addAlarm" />
@add-alarm="addAlarm" />
<NoAlarmView
v-if="isListEmpty" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/Alarm/AlarmListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export default {
* This method emits the removeAlarm event
*/
removeAlarm() {
this.$emit('removeAlarm', this.alarm)
this.$emit('remove-alarm', this.alarm)
},
/**
* changes the relative amount entered in timed mode
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/Alarm/AlarmListNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
* @param root0.value
*/
addReminderFromSelect({ value }) {
this.$emit('addAlarm', value)
this.$emit('add-alarm', value)
},
/**
*
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<InviteesListSearch
v-if="!isReadOnly && hasUserEmailAddress"
:already-invited-emails="alreadyInvitedEmails"
@addAttendee="addAttendee" />
@add-attendee="addAttendee" />
<OrganizerListItem
v-if="hasOrganizer"
:is-read-only="isReadOnly"
Expand All @@ -37,7 +37,7 @@
:attendee="invitee"
:is-read-only="isReadOnly"
:organizer-display-name="organizerDisplayName"
@removeAttendee="removeAttendee" />
@remove-attendee="removeAttendee" />
<NoAttendeesView
v-if="isReadOnly && isListEmpty"
:message="noInviteesMessage" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/Invitees/InviteesListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
* Removes an attendee from the event
*/
removeAttendee() {
this.$emit('removeAttendee', this.attendee)
this.$emit('remove-attendee', this.attendee)
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/Invitees/InviteesListSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default {
this.matches = matches
}, 500),
addAttendee(selectedValue) {
this.$emit('addAttendee', selectedValue)
this.$emit('add-attendee', selectedValue)
},
async findAttendeesFromContactsAPI(query) {
let response
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Properties/PropertyCalendarPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:calendar="calendar"
:calendars="calendars"
:show-calendar-on-select="true"
@selectCalendar="selectCalendar" />
@select-calendar="selectCalendar" />

<CalendarPickerOption
v-else
Expand Down Expand Up @@ -80,7 +80,7 @@ export default {
* @param {object} value The calendar Object
*/
selectCalendar(value) {
this.$emit('selectCalendar', value)
this.$emit('select-calendar', value)
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Properties/PropertySelectMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ export default {
return
}
this.$emit('addSingleValue', value)
this.$emit('add-single-value', value)
},
unselectValue(value) {
if (!value) {
return
}
this.$emit('removeSingleValue', value)
this.$emit('remove-single-value', value)
},
},
}
Expand Down
14 changes: 7 additions & 7 deletions src/components/Editor/Properties/PropertyTitleTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
:is-all-day="isAllDay"
:user-timezone-id="userTimezone"
@change="changeStart"
@changeTimezone="changeStartTimezone" />
@change-timezone="changeStartTimezone" />

<DatePicker
:date="endDate"
Expand All @@ -43,7 +43,7 @@
:is-all-day="isAllDay"
:user-timezone-id="userTimezone"
@change="changeEnd"
@changeTimezone="changeEndTimezone" />
@change-timezone="changeEndTimezone" />
</div>
<div
v-if="isReadOnly"
Expand Down Expand Up @@ -237,7 +237,7 @@ export default {
* @param {Date} value The new start date
*/
changeStart(value) {
this.$emit('updateStartDate', value)
this.$emit('update-start-date', value)
},
/**
* Updates the timezone of the start date
Expand All @@ -250,15 +250,15 @@ export default {
return
}
this.$emit('updateStartTimezone', value)
this.$emit('update-start-timezone', value)
},
/**
* Update the end date
*
* @param {Date} value The new end date
*/
changeEnd(value) {
this.$emit('updateEndDate', value)
this.$emit('update-end-date', value)
},
/**
* Updates the timezone of the end date
Expand All @@ -271,7 +271,7 @@ export default {
return
}
this.$emit('updateEndTimezone', value)
this.$emit('update-end-timezone', value)
},
/**
* Toggles the all-day state of an event
Expand All @@ -281,7 +281,7 @@ export default {
return
}
this.$emit('toggleAllDay')
this.$emit('toggle-all-day')
},
},
}
Expand Down
44 changes: 22 additions & 22 deletions src/components/Editor/Repeat/Repeat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,45 @@
v-if="!isRecurrenceException && !isReadOnly"
:frequency="recurrenceRule.frequency"
:interval="recurrenceRule.interval"
@changeInterval="changeInterval"
@changeFrequency="changeFrequency" />
@change-interval="changeInterval"
@change-frequency="changeFrequency" />
<RepeatFreqWeeklyOptions
v-if="isFreqWeekly && !isRecurrenceException && !isReadOnly"
:by-day="recurrenceRule.byDay"
@addByDay="addByDay"
@removeByDay="removeByDay" />
@add-by-day="addByDay"
@remove-by-day="removeByDay" />
<RepeatFreqMonthlyOptions
v-if="isFreqMonthly && !isRecurrenceException && !isReadOnly"
:by-day="recurrenceRule.byDay"
:by-month-day="recurrenceRule.byMonthDay"
:by-set-position="recurrenceRule.bySetPosition"
@addByMonthDay="addByMonthDay"
@removeByMonthDay="removeByMonthDay"
@changeByDay="setByDay"
@changeBySetPosition="setBySetPosition"
@changeToBySetPosition="changeToBySetPositionMonthly"
@changeToByDay="changeToByDayMonthly" />
@add-by-month-day="addByMonthDay"
@remove-by-month-day="removeByMonthDay"
@change-by-day="setByDay"
@change-by-set-position="setBySetPosition"
@change-to-by-set-position="changeToBySetPositionMonthly"
@change-to-by-day="changeToByDayMonthly" />
<RepeatFreqYearlyOptions
v-if="isFreqYearly && !isRecurrenceException && !isReadOnly"
:by-day="recurrenceRule.byDay"
:by-month="recurrenceRule.byMonth"
:by-set-position="recurrenceRule.bySetPosition"
@changeByDay="setByDay"
@changeBySetPosition="setBySetPosition"
@addByMonth="addByMonth"
@removeByMonth="removeByMonth"
@enableBySetPosition="enableBySetPositionYearly"
@disableBySetPosition="disableBySetPositionYearly" />
@change-by-day="setByDay"
@change-by-set-position="setBySetPosition"
@add-by-month="addByMonth"
@remove-by-month="removeByMonth"
@enable-by-set-position="enableBySetPositionYearly"
@disable-by-set-position="disableBySetPositionYearly" />
<RepeatEndRepeat
v-if="isRepeating && !isRecurrenceException && !isReadOnly"
:calendar-object-instance="calendarObjectInstance"
:until="recurrenceRule.until"
:count="recurrenceRule.count"
@setInfinite="setInfinite"
@setUntil="setUntil"
@setCount="setCount"
@changeToCount="changeToCount"
@changeToUntil="changeToUntil" />
@set-infinite="setInfinite"
@set-until="setUntil"
@set-count="setCount"
@change-to-count="changeToCount"
@change-to-until="changeToUntil" />
<RepeatSummary
v-if="!isReadOnly"
:recurrence-rule="recurrenceRule" />
Expand Down Expand Up @@ -421,7 +421,7 @@ export default {
}
if (!this.isEditingMasterItem) {
this.$emit('forceThisAndAllFuture')
this.$emit('force-this-and-all-future')
}
},
},
Expand Down
10 changes: 5 additions & 5 deletions src/components/Editor/Repeat/RepeatEndRepeat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,16 @@ export default {
switch (value.value) {
case 'until':
this.$emit('changeToUntil')
this.$emit('change-to-until')
break
case 'count':
this.$emit('changeToCount')
this.$emit('change-to-count')
break
case 'never':
default:
this.$emit('setInfinite')
this.$emit('set-infinite')
}
},
/**
Expand All @@ -189,7 +189,7 @@ export default {
* @param {Date} date The new date to set as end
*/
changeUntil(date) {
this.$emit('setUntil', date)
this.$emit('set-until', date)
},
/**
* Changes the number of occurrences in this recurrence-set
Expand All @@ -202,7 +202,7 @@ export default {
const selectedValue = parseInt(event.target.value, 10)
if (selectedValue >= minimumValue && selectedValue <= maximumValue) {
this.$emit('setCount', selectedValue)
this.$emit('set-count', selectedValue)
}
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Repeat/RepeatFreqInterval.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
},
methods: {
changeFrequency(value) {
this.$emit('changeFrequency', value)
this.$emit('change-frequency', value)
},
/**
*
Expand All @@ -85,7 +85,7 @@ export default {
const selectedValue = parseInt(event.target.value, 10)
if (selectedValue >= minimumValue && selectedValue <= maximumValue) {
this.$emit('changeInterval', selectedValue)
this.$emit('change-interval', selectedValue)
}
},
},
Expand Down
12 changes: 6 additions & 6 deletions src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ export default {
*/
toggleByMonthDay(byMonthDay) {
if (this.byMonthDay.indexOf(byMonthDay) === -1) {
this.$emit('addByMonthDay', byMonthDay)
this.$emit('add-by-month-day', byMonthDay)
} else {
if (this.byMonthDay.length > 1) {
this.$emit('removeByMonthDay', byMonthDay)
this.$emit('remove-by-month-day', byMonthDay)
}
}
},
Expand All @@ -146,20 +146,20 @@ export default {
return
}
this.$emit('changeToByDay')
this.$emit('change-to-by-day')
},
enableBySetPosition() {
if (!this.byMonthDayEnabled) {
return
}
this.$emit('changeToBySetPosition')
this.$emit('change-to-by-set-position')
},
changeByDay(value) {
this.$emit('changeByDay', value)
this.$emit('change-by-day', value)
},
changeBySetPosition(value) {
this.$emit('changeBySetPosition', value)
this.$emit('change-by-set-position', value)
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Repeat/RepeatFreqWeeklyOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ export default {
methods: {
toggleByDay(day) {
if (this.byDay.indexOf(day) === -1) {
this.$emit('addByDay', day)
this.$emit('add-by-day', day)
} else {
if (this.byDay.length > 1) {
this.$emit('removeByDay', day)
this.$emit('remove-by-day', day)
}
}
},
Expand Down
12 changes: 6 additions & 6 deletions src/components/Editor/Repeat/RepeatFreqYearlyOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ export default {
*/
toggleByMonth(byMonth) {
if (this.byMonth.indexOf(byMonth) === -1) {
this.$emit('addByMonth', byMonth)
this.$emit('add-by-month', byMonth)
} else {
if (this.byMonth.length > 1) {
this.$emit('removeByMonth', byMonth)
this.$emit('remove-by-month', byMonth)
}
}
},
Expand All @@ -175,16 +175,16 @@ export default {
*/
toggleBySetPosition() {
if (this.isBySetPositionEnabled) {
this.$emit('disableBySetPosition')
this.$emit('disable-by-set-position')
} else {
this.$emit('enableBySetPosition')
this.$emit('enable-by-set-position')
}
},
changeByDay(value) {
this.$emit('changeByDay', value)
this.$emit('change-by-day', value)
},
changeBySetPosition(value) {
this.$emit('changeBySetPosition', value)
this.$emit('change-by-set-position', value)
},
},
}
Expand Down
Loading

0 comments on commit bf44d03

Please sign in to comment.