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() {
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', 'Empty trash bin'),
this.emptyTrashBin,
true
true,
)
},

View File

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

View File

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

View File

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

View File

@ -59,7 +59,7 @@ export default {
timezoneManager.listAllTimezones(),
this.additionalTimezones,
// 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(),
23,
59,
59
59,
)
break
@ -2000,7 +2000,7 @@ const actions = {
calendarObjectInstance.startDate.getDate(),
23,
59,
59
59,
)
break
}

View File

@ -95,7 +95,7 @@ function proximity(s1, s2) {
return Math.sqrt(
Math.pow(c1[0] - c2[0], 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.minute,
0,
0
0,
)
}

View File

@ -123,7 +123,7 @@ function mixPalette(steps, color1, color2) {
* if step = 6
* 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[]}
*/
function GenColors(steps) {

View File

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

View File

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