Skip to content

Commit

Permalink
Fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed May 24, 2024
1 parent 7c28348 commit fc48105
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
6 changes: 3 additions & 3 deletions src/mixins/EditorMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default {
},
computed: {
...mapState(useSettingsStore, {
currentUserTimezone: 'getResolvedTimezone'
currentUserTimezone: 'getResolvedTimezone',
}),
...mapState(useCalendarsStore, ['initialCalendarsLoaded']),
...mapState(useCalendarObjectInstanceStore, ['calendarObject', 'calendarObjectInstance']),
Expand Down Expand Up @@ -712,7 +712,7 @@ export default {
try {
await vm.loadingCalendars()
const recurrenceId = await vm.calendarObjectInstanceStore.resolveClosestRecurrenceIdForCalendarObject({
objectId, closeToDate
objectId, closeToDate,
})
const params = Object.assign({}, vm.$route.params, { recurrenceId })
vm.$router.replace({ name: vm.$route.name, params })
Expand Down Expand Up @@ -798,7 +798,7 @@ export default {
const closeToDate = dateFactory()
await this.loadingCalendars()
const recurrenceId = await this.calendarObjectInstanceStore.resolveClosestRecurrenceIdForCalendarObject({
objectId, closeToDate
objectId, closeToDate,
})
const params = Object.assign({}, this.$route.params, { recurrenceId })
next({ name: this.$route.name, params })
Expand Down
8 changes: 4 additions & 4 deletions src/store/appointmentConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineStore('appointmentConfigs', {
actions: {
addInitialConfigs(configs) {
for (const config of configs) {
///TODO this.configs[config.id] = config
/// TODO this.configs[config.id] = config
Vue.set(this.configs, config.id, config)
}
},
Expand Down Expand Up @@ -76,20 +76,20 @@ export default defineStore('appointmentConfigs', {
return
}

///TODO this.configs[config.id] = config.clone()
/// TODO this.configs[config.id] = config.clone()
Vue.set(this.configs, config.id, config.clone())
},
addConfigMutation(config) {

///TODO this.configs[config.id] = config.clone()
/// TODO this.configs[config.id] = config.clone()
Vue.set(this.configs, config.id, config.clone())
},
deleteConfigMutation(id) {
if (!this.configs[id]) {
return
}

///TODO delete this.configs[id]
/// TODO delete this.configs[id]
Vue.delete(this.configs, id)
},
},
Expand Down
10 changes: 5 additions & 5 deletions src/store/calendarObjectInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ export default defineStore('calendarObjectInstance', {
}) {
if (recurrenceRule.recurrenceRuleValue) {
recurrenceRule.recurrenceRuleValue.setComponent('BYDAY', byDay)
//TODO recurrenceRule.byDay = byDay
// TODO recurrenceRule.byDay = byDay
Vue.set(recurrenceRule, 'byDay', byDay)

console.debug(recurrenceRule.recurrenceRuleValue._innerValue.toString())
Expand All @@ -932,7 +932,7 @@ export default defineStore('calendarObjectInstance', {
}) {
if (recurrenceRule.recurrenceRuleValue) {
recurrenceRule.recurrenceRuleValue.setComponent('BYSETPOS', [bySetPosition])
///TODO recurrenceRule.bySetPosition = bySetPosition
/// TODO recurrenceRule.bySetPosition = bySetPosition
Vue.set(recurrenceRule, 'bySetPosition', bySetPosition)

console.debug(recurrenceRule.recurrenceRuleValue._innerValue.toString())
Expand Down Expand Up @@ -1594,7 +1594,7 @@ export default defineStore('calendarObjectInstance', {
// Remove the recurrence-rule
if (recurrenceRule.recurrenceRuleValue) {
calendarObjectInstance.eventComponent.deleteAllProperties('RRULE')
///TODO calendarObjectInstance.recurrenceRule = getDefaultEventObject().recurrenceRule
/// TODO calendarObjectInstance.recurrenceRule = getDefaultEventObject().recurrenceRule
Vue.set(calendarObjectInstance, 'recurrenceRule', getDefaultEventObject().recurrenceRule)

console.debug(calendarObjectInstance)
Expand Down Expand Up @@ -1730,8 +1730,8 @@ export default defineStore('calendarObjectInstance', {

if (recurrenceRule.recurrenceRuleValue) {
recurrenceRule.recurrenceRuleValue.setComponent('BYSETPOS', [])
///TODO recurrenceRule.bySetPosition = null
Vue.set(recurrenceRule, bySetPosition, null)
/// TODO recurrenceRule.bySetPosition = null
Vue.set(recurrenceRule, 'bySetPosition', null)

console.debug(recurrenceRule.recurrenceRuleValue._innerValue.toString())
}
Expand Down
8 changes: 4 additions & 4 deletions src/store/calendarObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export default defineStore('calendarObjects', {
await calendarObject.dav.delete()
}

///TODO this.calendarObjects[calendarObject.id] = undefined
Vue.delete(state.calendarObjects, calendarObject.id)
/// TODO this.calendarObjects[calendarObject.id] = undefined
Vue.delete(this.calendarObjects, calendarObject.id)
this.deleteCalendarObjectFromCalendarMutation({
calendar: {
id: calendarObject.calendarId,
Expand Down Expand Up @@ -325,7 +325,7 @@ export default defineStore('calendarObjects', {
appendCalendarObjectsMutation({ calendarObjects = [] }) {
for (const calendarObject of calendarObjects) {
if (!this.calendarObjects[calendarObject.id]) {
///TODO this.calendarObjects[calendarObject.id] = calendarObject
/// TODO this.calendarObjects[calendarObject.id] = calendarObject
Vue.set(this.calendarObjects, calendarObject.id, calendarObject)
}
}
Expand All @@ -339,7 +339,7 @@ export default defineStore('calendarObjects', {
*/
appendCalendarObjectMutation({ calendarObject }) {
if (!this.calendarObjects[calendarObject.id]) {
///TODO this.calendarObjects[calendarObject.id] = calendarObject
/// TODO this.calendarObjects[calendarObject.id] = calendarObject
Vue.set(this.calendarObjects, calendarObject.id, calendarObject)
}
},
Expand Down
16 changes: 8 additions & 8 deletions src/store/calendars.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export default defineStore('calendars', {
await calendar.dav.delete()

this.calendars.splice(this.calendars.indexOf(calendar), 1)
///TODO this.calendarsById.delete(calendar.id)
/// TODO this.calendarsById.delete(calendar.id)
Vue.delete(this.calendarsById, calendar.id)
},

Expand All @@ -396,7 +396,7 @@ export default defineStore('calendars', {
},

deleteCalendarAfterTimeout({ calendar, countdown = 7 }) {
///TODO this.calendarsById[calendar.id].countdown = countdown
/// TODO this.calendarsById[calendar.id].countdown = countdown
Vue.set(this.calendarsById[calendar.id], 'countdown', countdown)

const deleteInterval = setInterval(() => {
Expand All @@ -406,7 +406,7 @@ export default defineStore('calendars', {
countdown = 0
}

///TODO this.calendarsById[calendar.id].countdown = countdown
/// TODO this.calendarsById[calendar.id].countdown = countdown
Vue.set(this.calendarsById[calendar.id], 'countdown', countdown)
}, 1000)
const deleteTimeout = setTimeout(async () => {
Expand All @@ -419,8 +419,8 @@ export default defineStore('calendars', {
clearInterval(deleteInterval)
}
}, 7000)
///TODO this.calendarsById[calendar.id].deleteInterval = deleteInterval
///TODO this.calendarsById[calendar.id].deleteTimeout = deleteTimeout
/// TODO this.calendarsById[calendar.id].deleteInterval = deleteInterval
/// TODO this.calendarsById[calendar.id].deleteTimeout = deleteTimeout
Vue.set(this.calendarsById[calendar.id], 'deleteInterval', deleteInterval)
Vue.set(this.calendarsById[calendar.id], 'deleteTimeout', deleteTimeout)
},
Expand Down Expand Up @@ -766,7 +766,7 @@ export default defineStore('calendars', {
const calendar = mapDavCollectionToCalendar(response, principalsStore.getCurrentUserPrincipal)
this.addCalendarMutation({ calendar })
importFilesStore.importCalendarRelation[file.id] = calendar.id
importFilesStore.importCalendarRelation = JSON.parse(JSON.stringify(importFilesStore.importCalendarRelation)) ///TODO remove with vue 3
importFilesStore.importCalendarRelation = JSON.parse(JSON.stringify(importFilesStore.importCalendarRelation)) /// TODO remove with vue 3
}
}

Expand Down Expand Up @@ -858,9 +858,9 @@ export default defineStore('calendars', {
const object = getDefaultCalendarObject(calendar)
if (!this.calendars.some(existing => existing.id === object.id)) {
this.calendars.push(object)
Vue.set(this.calendars, 0, this.calendars[0]) ///TODO remove with vue 3
Vue.set(this.calendars, 0, this.calendars[0]) /// TODO remove with vue 3
}
///TODO this.calendarsById[object.id] = object
/// TODO this.calendarsById[object.id] = object
Vue.set(this.calendarsById, object.id, object)
},

Expand Down
2 changes: 1 addition & 1 deletion src/store/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineStore('contacts', {
// share the same email address, we will just follow
// first come, first served.
if (this.contactByEmail[email] === undefined) {
///TODO this.contactByEmail[email] = contact
/// TODO this.contactByEmail[email] = contact
Vue.set(this.contactByEmail, email, contact)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/store/fetchedTimeRanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default defineStore('fetchedTimeRanges', {
}

this.fetchedTimeRanges.push(fetchedTimeRange)
///TODO this.fetchedTimeRangesById[fetchedTimeRange.id] = fetchedTimeRange
/// TODO this.fetchedTimeRangesById[fetchedTimeRange.id] = fetchedTimeRange
Vue.set(this.fetchedTimeRangesById, fetchedTimeRange.id, fetchedTimeRange)
},

Expand All @@ -118,7 +118,7 @@ export default defineStore('fetchedTimeRanges', {

if (index !== -1) {
this.fetchedTimeRanges.splice(index, 1)
///TODO this.fetchedTimeRangesById.splice(timeRangeId, 1)
/// TODO this.fetchedTimeRangesById.splice(timeRangeId, 1)
Vue.delete(this.fetchedTimeRangesById, timeRangeId)
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/store/importFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ export default defineStore('importFiles', {

// TODO: use this.importFiles.push(file) directly in Vue 3 (reactive by default)
this.importFiles = [...this.importFiles, file]
///TODO this.importFilesById[file.id] = file
/// TODO this.importFilesById[file.id] = file
Vue.set(this.importFilesById, file.id, file)
},

/**
* Removes all files from state
*/
removeAllFiles() {
///TODO this.importFiles = []
///TODO this.importFilesById = {}
///TODO this.importCalendarRelation = {}
/// TODO this.importFiles = []
/// TODO this.importFilesById = {}
/// TODO this.importCalendarRelation = {}

Vue.set(this, 'importFiles', [])
Vue.set(this, 'importFilesById', {})
Expand Down
2 changes: 1 addition & 1 deletion src/store/principals.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default defineStore('principals', {
}

this.principals.push(object)
///TODO this.principalsById[object.id] = object
/// TODO this.principalsById[object.id] = object
Vue.set(this.principalsById, object.id, object)
},
},
Expand Down

0 comments on commit fc48105

Please sign in to comment.