From 83093f9503515d222a4638fa08de73fc3dbeee54 Mon Sep 17 00:00:00 2001 From: Hamza Date: Mon, 12 Jan 2026 13:44:06 +0100 Subject: [PATCH] chore(lint): fix lint warnings Signed-off-by: Hamza --- src/components/AppContent/CircleContent.vue | 2 +- src/components/AppContent/ContactsContent.vue | 4 +- .../AppNavigation/ContactsSettings.vue | 2 + .../AppNavigation/GroupNavigationItem.vue | 6 +- .../Settings/SettingsImportContacts.vue | 1 - src/components/ChartTemplate.vue | 5 -- src/components/CircleDetails.vue | 4 +- src/components/ConfirmationDialog.vue | 2 +- src/components/ContactDetails.vue | 12 ++-- .../ContactDetails/ContactDetailsAvatar.vue | 2 + .../ContactDetails/ContactDetailsProperty.vue | 5 -- src/components/ContactsList/Merging.vue | 2 + src/components/DetailsHeader.vue | 1 - src/components/EntityPicker/EntityBubble.vue | 2 + src/components/EntityPicker/EntityPicker.vue | 12 +--- .../EntityPicker/NewCircleIntro.vue | 2 + src/components/MemberList/MemberList.vue | 2 + src/components/MemberList/MemberListItem.vue | 2 + src/components/OrgChart.vue | 1 + src/components/Properties/PropertyActions.vue | 2 + .../Properties/PropertyDateTime.vue | 2 + src/components/Properties/PropertyGroups.vue | 7 +- .../Properties/PropertyMultipleText.vue | 2 +- src/components/Properties/PropertySelect.vue | 5 -- src/components/Properties/PropertyText.vue | 5 -- src/components/Properties/PropertyTitle.vue | 1 + src/models/circle.ts | 8 +-- src/models/member.ts | 4 +- src/services/circles.d.ts | 65 +++++++++---------- src/services/circles.ts | 17 +++-- src/services/validate.js | 4 +- src/store/addressbooks.js | 47 +++++--------- src/store/circles.js | 7 +- src/store/contacts.js | 16 ++--- src/utils/addressbookUtils.js | 8 ++- src/utils/matchTypes.d.ts | 4 +- src/utils/matchTypes.ts | 4 +- src/views/Contacts.vue | 2 + src/views/Processing/AddToGroupView.vue | 2 + src/views/Processing/ImportView.vue | 2 + src/views/ReadOnlyContactDetails.vue | 8 +-- 41 files changed, 134 insertions(+), 157 deletions(-) diff --git a/src/components/AppContent/CircleContent.vue b/src/components/AppContent/CircleContent.vue index 67540d295..bcbc473ab 100644 --- a/src/components/AppContent/CircleContent.vue +++ b/src/components/AppContent/CircleContent.vue @@ -54,7 +54,7 @@ export default { props: { loading: { type: Boolean, - default: true, + default: false, }, }, diff --git a/src/components/AppContent/ContactsContent.vue b/src/components/AppContent/ContactsContent.vue index ea7788e34..f0a1923ed 100644 --- a/src/components/AppContent/ContactsContent.vue +++ b/src/components/AppContent/ContactsContent.vue @@ -88,7 +88,7 @@ export default { props: { loading: { type: Boolean, - default: true, + default: false, }, contactsList: { @@ -97,6 +97,8 @@ export default { }, }, + emits: ['new-contact'], + data() { return { searchQuery: '', diff --git a/src/components/AppNavigation/ContactsSettings.vue b/src/components/AppNavigation/ContactsSettings.vue index 5e2099613..c1186de1c 100644 --- a/src/components/AppNavigation/ContactsSettings.vue +++ b/src/components/AppNavigation/ContactsSettings.vue @@ -74,6 +74,8 @@ export default { }, }, + emits: ['update:open', 'clicked', 'file-loaded'], + data() { return { allowSocialSync: loadState('contacts', 'allowSocialSync') !== 'no', diff --git a/src/components/AppNavigation/GroupNavigationItem.vue b/src/components/AppNavigation/GroupNavigationItem.vue index 675391bb0..cf51938bd 100644 --- a/src/components/AppNavigation/GroupNavigationItem.vue +++ b/src/components/AppNavigation/GroupNavigationItem.vue @@ -130,6 +130,8 @@ export default { }, }, + emits: ['updateRouteState'], + data() { return { newGroupName: '', @@ -248,8 +250,8 @@ export default { /** * Open mailto: for contacts in a group * - * @param {object} group of contacts to be emailed - * @param {string} mode + * @param {object} group contacts to be emailed + * @param {string} mode the email mode */ emailGroup(group, mode = 'to') { const emails = [] diff --git a/src/components/AppNavigation/Settings/SettingsImportContacts.vue b/src/components/AppNavigation/Settings/SettingsImportContacts.vue index fd6f440d4..fa9c420de 100644 --- a/src/components/AppNavigation/Settings/SettingsImportContacts.vue +++ b/src/components/AppNavigation/Settings/SettingsImportContacts.vue @@ -14,7 +14,6 @@ diff --git a/src/components/ChartTemplate.vue b/src/components/ChartTemplate.vue index 08d8d719a..37c10aeeb 100644 --- a/src/components/ChartTemplate.vue +++ b/src/components/ChartTemplate.vue @@ -56,11 +56,6 @@ export default { type: Object, default: () => {}, }, - - onAvatarClick: { - type: Function, - default: () => {}, - }, }, computed: { diff --git a/src/components/CircleDetails.vue b/src/components/CircleDetails.vue index 82dd83816..07df2a027 100644 --- a/src/components/CircleDetails.vue +++ b/src/components/CircleDetails.vue @@ -666,10 +666,10 @@ export default { }, /** - * Autocomplete @mentions on the description + * Autocomplete \@mentions on the description * * @param {string} search the search term - * @param {Function} callback callback to be called with results array + * @param {(results: Array) => void} callback callback to be called with results array */ onAutocomplete(search, callback) { // TODO: implement autocompletion. Disabled for now diff --git a/src/components/ConfirmationDialog.vue b/src/components/ConfirmationDialog.vue index dc5af6ce9..95d3ae3dd 100644 --- a/src/components/ConfirmationDialog.vue +++ b/src/components/ConfirmationDialog.vue @@ -57,7 +57,7 @@ export default { disabled: { type: Boolean, - default: undefined, + default: false, }, }, diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index 7a66913f3..d418b390f 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -51,7 +51,7 @@