Chore: npm run lint:fix

Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
This commit is contained in:
Hamza Mahjoubi 2024-03-21 16:35:50 +01:00
parent 8c5c2cec05
commit aadc104be7
11 changed files with 15 additions and 14 deletions

View File

@ -202,7 +202,7 @@ export default {
}, },
retentionDuration() { retentionDuration() {
return Math.ceil( return Math.ceil(
this.trashBin.retentionDuration / (60 * 60 * 24) this.trashBin.retentionDuration / (60 * 60 * 24),
) )
}, },
}, },
@ -270,7 +270,7 @@ export default {
t('calendar', 'Do you really want to empty the trash bin?'), t('calendar', 'Do you really want to empty the trash bin?'),
t('calendar', 'Empty trash bin'), t('calendar', 'Empty trash bin'),
this.emptyTrashBin, this.emptyTrashBin,
true true,
) )
}, },

View File

@ -73,7 +73,7 @@ export default {
const calendars = this.$store.getters.sortedCalendarFilteredByComponents( const calendars = this.$store.getters.sortedCalendarFilteredByComponents(
this.file.parser.containsVEvents(), this.file.parser.containsVEvents(),
this.file.parser.containsVJournals(), this.file.parser.containsVJournals(),
this.file.parser.containsVTodos() this.file.parser.containsVTodos(),
) )
calendars.push({ calendars.push({

View File

@ -31,7 +31,7 @@
:placeholder="placeholder" :placeholder="placeholder"
:class="{ 'showContent': inputGiven, 'icon-loading': isLoading }" :class="{ 'showContent': inputGiven, 'icon-loading': isLoading }"
:clearable="false" :clearable="false"
:labelOutside="true" :label-outside="true"
input-id="uid" input-id="uid"
label="dropdownName" label="dropdownName"
@search="findAttendees" @search="findAttendees"

View File

@ -6,7 +6,7 @@
:value="valueIds" :value="valueIds"
:multiple="multiple" :multiple="multiple"
:clearable="clearable" :clearable="clearable"
:filterBy="selectFilterBy" :filter-by="selectFilterBy"
@option:selected="change" @option:selected="change"
@option:deselected="remove"> @option:deselected="remove">
<template #option="{ id }"> <template #option="{ id }">
@ -127,11 +127,12 @@ export default {
* @param {object} option The calendar option * @param {object} option The calendar option
* @param {string} label The label of the calendar option * @param {string} label The label of the calendar option
* @param {string} id The search term * @param {string} id The search term
* @param search
* @return {boolean} True if the search term matches * @return {boolean} True if the search term matches
*/ */
selectFilterBy(option, label, search) { selectFilterBy(option, label, search) {
return option.displayName.toLowerCase().indexOf(search) !== -1 return option.displayName.toLowerCase().indexOf(search) !== -1
} },
}, },
} }
</script> </script>

View File

@ -59,7 +59,7 @@ export default {
timezoneManager.listAllTimezones(), timezoneManager.listAllTimezones(),
this.additionalTimezones, this.additionalTimezones,
// TRANSLATORS This refers to global timezones in the timezone picker // TRANSLATORS This refers to global timezones in the timezone picker
t('calendar', 'Global') t('calendar', 'Global'),
) )
}, },
}, },

View File

@ -1987,7 +1987,7 @@ const actions = {
calendarObjectInstance.startDate.getDate(), calendarObjectInstance.startDate.getDate(),
23, 23,
59, 59,
59 59,
) )
break break
@ -2000,7 +2000,7 @@ const actions = {
calendarObjectInstance.startDate.getDate(), calendarObjectInstance.startDate.getDate(),
23, 23,
59, 59,
59 59,
) )
break break
} }

View File

@ -95,7 +95,7 @@ function proximity(s1, s2) {
return Math.sqrt( return Math.sqrt(
Math.pow(c1[0] - c2[0], 2) Math.pow(c1[0] - c2[0], 2)
+ Math.pow(c1[1] - c2[1], 2) + Math.pow(c1[1] - c2[1], 2)
+ Math.pow(c1[2] - c2[2], 2) + Math.pow(c1[2] - c2[2], 2),
) )
} }

View File

@ -108,7 +108,7 @@ export function getDateFromDateTimeValue(dateTimeValue) {
dateTimeValue.hour, dateTimeValue.hour,
dateTimeValue.minute, dateTimeValue.minute,
0, 0,
0 0,
) )
} }

View File

@ -123,7 +123,7 @@ function mixPalette(steps, color1, color2) {
* if step = 6 * if step = 6
* 3 colors * 6 will result in 18 generated colors * 3 colors * 6 will result in 18 generated colors
* *
* @param {number} [steps=6] Number of steps to go from a color to another * @param {number} [steps] Number of steps to go from a color to another
* @return {object[]} * @return {object[]}
*/ */
function GenColors(steps) { function GenColors(steps) {

View File

@ -151,7 +151,7 @@ export default {
const now = new Date() const now = new Date()
const selectedDate = new Date(Math.max( const selectedDate = new Date(Math.max(
this.config.start ? this.config.start * 1000 : now, this.config.start ? this.config.start * 1000 : now,
now now,
)) ))
if (this.config.timeBeforeNextSlot) { if (this.config.timeBeforeNextSlot) {
selectedDate.setSeconds(selectedDate.getSeconds() + this.config.timeBeforeNextSlot) selectedDate.setSeconds(selectedDate.getSeconds() + this.config.timeBeforeNextSlot)

View File

@ -274,7 +274,7 @@ export default {
} }
return this.title return this.title
} },
}, },
watch: { watch: {
$route(to, from) { $route(to, from) {