mirror of https://github.com/nextcloud/calendar
Chore: npm run lint:fix
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
This commit is contained in:
parent
8c5c2cec05
commit
aadc104be7
|
@ -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,
|
||||
)
|
||||
},
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'),
|
||||
)
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ export function getDateFromDateTimeValue(dateTimeValue) {
|
|||
dateTimeValue.hour,
|
||||
dateTimeValue.minute,
|
||||
0,
|
||||
0
|
||||
0,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -274,7 +274,7 @@ export default {
|
|||
}
|
||||
|
||||
return this.title
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
$route(to, from) {
|
||||
|
|
Loading…
Reference in New Issue