chore(eslint): fix all errors

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2023-10-17 14:50:25 +02:00
parent de20d0e67d
commit 5bc382bcef
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
9 changed files with 11 additions and 5 deletions

View File

@ -132,7 +132,7 @@ export default {
this.enableSocialSyncLoading = false
}
},
onLoad(event) {
onLoad() {
this.$emit('file-loaded', false)
},
async onOpen() {

View File

@ -306,7 +306,7 @@ export default {
renameAddressbook() {
this.editingName = true
},
async updateAddressbookName(e) {
async updateAddressbookName() {
const addressbook = this.addressbook
// New name for addressbook - inputed value from form
const newName = this.$refs.renameInput.$el.querySelector('input[type="text"]').value

View File

@ -140,7 +140,7 @@ export default {
// push contact to server and use limit
requests.push(limit(() => appendContactToGroup(contact, groupName)
.then((response) => {
.then(() => {
this.$store.dispatch('addContactToGroup', { contact, groupName })
this.processStatus.progress++
this.processStatus.success++

View File

@ -200,7 +200,7 @@ export default {
/**
* Watch textarea resize and update the gridSize accordingly
*/
resizeHeight: debounce(function(e) {
resizeHeight: debounce(function() {
if (this.$refs.textarea && this.$refs.textarea.offsetHeight) {
// adjust textarea size to content (2 = border)
this.$refs.textarea.style.height = `${this.$refs.textarea.scrollHeight + 2}px`

View File

@ -27,6 +27,7 @@ import { CircleConfigs, MemberLevels } from './constants'
type MemberList = Record<string, Member>
/* eslint-disable @typescript-eslint/no-explicit-any */
export default class Circle {
_data: any = {}

View File

@ -59,6 +59,7 @@ const MEMBER_LEVEL_ADMIN: MemberLevel = 8
const MEMBER_LEVEL_OWNER: MemberLevel = 9
// Circles member types
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
const MEMBER_TYPE_SINGLEID: MemberType = 0
const MEMBER_TYPE_USER: MemberType = 1
const MEMBER_TYPE_GROUP : MemberType = 2

View File

@ -23,6 +23,8 @@
import { MemberLevel, MemberLevels, MemberType, MemberTypes } from './constants'
import Circle from './circle'
import logger from '../services/logger.js'
/* eslint-disable @typescript-eslint/no-explicit-any */
export default class Member {
_data: any = {}

View File

@ -90,6 +90,7 @@ export const deleteCircle = async function(circleId: string) {
return response.data.ocs.data
}
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Edit an existing circle
*
@ -103,6 +104,7 @@ export const editCircle = async function(circleId: string, type: CircleEditType,
const response = await axios.put(generateOcsUrl('apps/circles/circles/{circleId}/{type}', { circleId, type }), { value })
return response.data.ocs.data
}
/* eslint-enable @typescript-eslint/no-explicit-any */
/**
* Join a circle

View File

@ -353,7 +353,7 @@ export default {
.map(addressbook => {
return this.$store.dispatch('getContactsFromAddressBook', { addressbook })
}),
).then(results => {
).then(() => {
this.loadingContacts = false
if (!this.isMobile && !this.selectedChart) {
this.selectFirstContactIfNone()