diff --git a/src/components/AppNavigation/Colorpicker.vue b/src/components/AppNavigation/Colorpicker.vue index 78a10ff61..18f65fcc4 100644 --- a/src/components/AppNavigation/Colorpicker.vue +++ b/src/components/AppNavigation/Colorpicker.vue @@ -65,7 +65,7 @@ export default { default: '#31CC7C', }, }, - emits: ['color-selected'], + emits: ['colorSelected'], data() { return { random: '#31CC7C', @@ -92,7 +92,7 @@ export default { this.pick(this.random) }, pick(color) { - this.$emit('color-selected', color) + this.$emit('colorSelected', color) }, /* * Generate a random colour with the core generator diff --git a/src/components/AppSidebar/Alarm/AlarmDateTimePickerModal.vue b/src/components/AppSidebar/Alarm/AlarmDateTimePickerModal.vue index 9eb71b5be..cc8b64c85 100644 --- a/src/components/AppSidebar/Alarm/AlarmDateTimePickerModal.vue +++ b/src/components/AppSidebar/Alarm/AlarmDateTimePickerModal.vue @@ -52,7 +52,7 @@ export default { }, }, emits: [ - 'select-date-time', + 'selectDateTime', 'close', ], data() { @@ -72,7 +72,7 @@ export default { }, onSubmit() { - this.$emit('select-date-time', this.date) + this.$emit('selectDateTime', this.date) }, onClose() { diff --git a/src/components/AppSidebar/Alarm/AlarmList.vue b/src/components/AppSidebar/Alarm/AlarmList.vue index f18864001..45efe7ed6 100644 --- a/src/components/AppSidebar/Alarm/AlarmList.vue +++ b/src/components/AppSidebar/Alarm/AlarmList.vue @@ -71,9 +71,9 @@ export default { }, }, emits: [ - 'add-alarm', - 'remove-alarm', - 'update-alarm', + 'addAlarm', + 'removeAlarm', + 'updateAlarm', ], computed: { alarmComponents() { @@ -125,7 +125,7 @@ export default { * @param {object} alarm The alarm time or duration */ addAlarm(alarm) { - this.$emit('add-alarm', this.generateVAlarm(alarm)) + this.$emit('addAlarm', this.generateVAlarm(alarm)) }, /** @@ -135,7 +135,7 @@ export default { * @param {number} index This index of the updated alarm-item */ updateAlarm(alarm, index) { - this.$emit('update-alarm', this.generateVAlarm(alarm), index) + this.$emit('updateAlarm', this.generateVAlarm(alarm), index) }, /** @@ -144,7 +144,7 @@ export default { * @param {number} index The index of the alarm-list */ removeAlarm(index) { - this.$emit('remove-alarm', index) + this.$emit('removeAlarm', index) }, }, } diff --git a/src/components/AppSidebar/Alarm/AlarmListItem.vue b/src/components/AppSidebar/Alarm/AlarmListItem.vue index 4cc47f80b..015204316 100644 --- a/src/components/AppSidebar/Alarm/AlarmListItem.vue +++ b/src/components/AppSidebar/Alarm/AlarmListItem.vue @@ -124,8 +124,8 @@ export default { }, }, emits: [ - 'remove-alarm', - 'update-alarm', + 'removeAlarm', + 'updateAlarm', ], data() { return { @@ -210,7 +210,7 @@ export default { parameter: undefined, // ical.js sets the correct parameter for us when using a `ICAL.Time`-object } - this.$emit('update-alarm', alarm, this.index) + this.$emit('updateAlarm', alarm, this.index) this.closeEditMode() }, @@ -220,7 +220,7 @@ export default { parameter: undefined, // We don't care about the params, since they currently can't be changed } - this.$emit('update-alarm', alarm, this.index) + this.$emit('updateAlarm', alarm, this.index) this.closeEditMode() }, @@ -232,7 +232,7 @@ export default { * This method emits the removeAlarm event */ removeAlarm() { - this.$emit('remove-alarm', this.index) + this.$emit('removeAlarm', this.index) this.showMenu = false }, }, diff --git a/src/components/AppSidebar/Alarm/AlarmListNew.vue b/src/components/AppSidebar/Alarm/AlarmListNew.vue index 06890c221..2d51fd986 100644 --- a/src/components/AppSidebar/Alarm/AlarmListNew.vue +++ b/src/components/AppSidebar/Alarm/AlarmListNew.vue @@ -137,7 +137,7 @@ export default { }, }, emits: [ - 'add-alarm', + 'addAlarm', ], data() { return { @@ -214,7 +214,7 @@ export default { }, onAlarmOptionClick(alarm) { - this.$emit('add-alarm', alarm) + this.$emit('addAlarm', alarm) }, onChooseDateAndTime(date) { @@ -223,7 +223,7 @@ export default { parameter: undefined, // ical.js sets the correct parameter for us when using a `ICAL.Time`-object } - this.$emit('add-alarm', alarm) + this.$emit('addAlarm', alarm) this.chooseDateTimeMenuIsOpen = false }, }, diff --git a/src/components/AppSidebar/Alarm/AlarmRelativeTimePickerModal.vue b/src/components/AppSidebar/Alarm/AlarmRelativeTimePickerModal.vue index 1391461d8..8f141ef5c 100644 --- a/src/components/AppSidebar/Alarm/AlarmRelativeTimePickerModal.vue +++ b/src/components/AppSidebar/Alarm/AlarmRelativeTimePickerModal.vue @@ -85,7 +85,7 @@ export default { }, }, emits: [ - 'select-date-time', + 'selectDateTime', 'close', ], data() { @@ -149,7 +149,7 @@ export default { const alarmObject = getAlarmObjectFromTriggerTime(seconds, this.alarm.relativeIsRelatedToStart) - this.$emit('select-date-time', alarmObject) + this.$emit('selectDateTime', alarmObject) }, onClose() { diff --git a/src/components/AppSidebar/CalendarPickerItem.vue b/src/components/AppSidebar/CalendarPickerItem.vue index 1a275e4e5..725a35bfc 100644 --- a/src/components/AppSidebar/CalendarPickerItem.vue +++ b/src/components/AppSidebar/CalendarPickerItem.vue @@ -73,7 +73,7 @@ export default { required: false, }, }, - emits: ['change-calendar'], + emits: ['changeCalendar'], computed: { isDisabled() { return this.calendars.length < 2 || this.disabled @@ -108,7 +108,7 @@ export default { if (!calendar) { return } - this.$emit('change-calendar', calendar) + this.$emit('changeCalendar', calendar) }, }, } diff --git a/src/components/AppSidebar/CheckboxItem.vue b/src/components/AppSidebar/CheckboxItem.vue index 7525f0fba..c77df097d 100644 --- a/src/components/AppSidebar/CheckboxItem.vue +++ b/src/components/AppSidebar/CheckboxItem.vue @@ -28,7 +28,7 @@ License along with this library. If not, see . :aria-checked="checked" :checked="checked" :disabled="readOnly" - @click="$emit('set-checked', checked)"> + @click="$emit('setChecked', checked)"> @@ -56,7 +56,7 @@ export default { default: '', }, }, - emits: ['set-checked'], + emits: ['setChecked'], } diff --git a/src/components/AppSidebar/DateTimePickerItem.vue b/src/components/AppSidebar/DateTimePickerItem.vue index e5e7c9f8f..c55ab962c 100644 --- a/src/components/AppSidebar/DateTimePickerItem.vue +++ b/src/components/AppSidebar/DateTimePickerItem.vue @@ -121,7 +121,7 @@ export default { checkOverdue: { type: Boolean, default: true, - } + }, }, data() { return { diff --git a/src/components/AppSidebar/MultiselectItem.vue b/src/components/AppSidebar/MultiselectItem.vue index 918d524d8..c10505e97 100644 --- a/src/components/AppSidebar/MultiselectItem.vue +++ b/src/components/AppSidebar/MultiselectItem.vue @@ -86,7 +86,7 @@ export default { default: null, }, }, - emits: ['change-value'], + emits: ['changeValue'], computed: { isDisabled() { return this.options.length < 2 || this.disabled @@ -100,7 +100,7 @@ export default { if (!value) { return } - this.$emit('change-value', value) + this.$emit('changeValue', value) }, }, } diff --git a/src/components/AppSidebar/TagsItem.vue b/src/components/AppSidebar/TagsItem.vue index 6b0a24bc1..91ccd71da 100644 --- a/src/components/AppSidebar/TagsItem.vue +++ b/src/components/AppSidebar/TagsItem.vue @@ -82,17 +82,17 @@ export default { }, }, emits: [ - 'add-tag', - 'set-tags', + 'addTag', + 'setTags', ], methods: { t, addTag(tag) { - this.$emit('add-tag', tag) + this.$emit('addTag', tag) }, setTags(tags) { - this.$emit('set-tags', tags) + this.$emit('setTags', tags) }, }, } diff --git a/src/components/TaskCheckbox.vue b/src/components/TaskCheckbox.vue index 7d86a9c62..c5ce89631 100644 --- a/src/components/TaskCheckbox.vue +++ b/src/components/TaskCheckbox.vue @@ -71,7 +71,7 @@ export default { default: '', }, }, - emits: ['toggle-completed'], + emits: ['toggleCompleted'], computed: { ariaLabel() { if (this.cancelled && !this.completed) { @@ -97,7 +97,7 @@ export default { t, toggleCompleted() { - this.$emit('toggle-completed') + this.$emit('toggleCompleted') }, }, } diff --git a/src/components/TaskStatusDisplay.vue b/src/components/TaskStatusDisplay.vue index 65499d481..7ae18251e 100644 --- a/src/components/TaskStatusDisplay.vue +++ b/src/components/TaskStatusDisplay.vue @@ -63,8 +63,8 @@ export default { }, }, emits: [ - 'status-clicked', - 'reset-status', + 'statusClicked', + 'resetStatus', ], data() { return { @@ -86,7 +86,7 @@ export default { }, methods: { statusClicked() { - this.$emit('status-clicked') + this.$emit('statusClicked') }, checkTimeout(newStatus) { if (newStatus) { @@ -96,7 +96,7 @@ export default { if (newStatus.status === 'success') { this.resetStatusTimeout = setTimeout( () => { - this.$emit('reset-status') + this.$emit('resetStatus') }, 5000, ) } diff --git a/src/utils/dateStrings.js b/src/utils/dateStrings.js index 525acfb5f..5cff1d593 100644 --- a/src/utils/dateStrings.js +++ b/src/utils/dateStrings.js @@ -27,7 +27,7 @@ import { convertTimeZone } from './alarms.js' /** * Returns a formatted string for the due date * - * @param {Task} task The task + * @param {import('../models/task.js').Task} task The task * @return {string} The formatted due date string */ export function dueDateString(task) { @@ -88,7 +88,7 @@ export function dueDateString(task) { /** * Returns a formatted string for the start date * - * @param {Task} task The task + * @param {import('../models/task.js').Task} task The task * @return {string} The formatted start date string */ export function startDateString(task) { diff --git a/src/views/AppSidebar.vue b/src/views/AppSidebar.vue index 37c95ac9d..ba63c4a1a 100644 --- a/src/views/AppSidebar.vue +++ b/src/views/AppSidebar.vue @@ -172,7 +172,7 @@ License along with this library. If not, see . :property-string="completedString" :read-only="readOnly" :task="task" - :check-overdue=false + :check-overdue="false" @set-value="changeCompletedDate">