summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2020-07-11 01:14:55 +0000
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-25 12:11:16 +0200
commit88604b41803bad002500dc54ea3657692ab60eed (patch)
treea3efe54c0d6d897d8e6c80878629d119be4b8e20 /src
parentc966633dfdab6ad4d91a354952ba9150a5f3dd57 (diff)
Bump @nextcloud/eslint-config from 2.0.0 to 2.1.0
Bumps [@nextcloud/eslint-config](https://github.com/nextcloud/eslint-config) from 2.0.0 to 2.1.0. - [Release notes](https://github.com/nextcloud/eslint-config/releases) - [Changelog](https://github.com/nextcloud/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/eslint-config/compare/v2.0.0...v2.1.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/AdminSettings.vue2
-rw-r--r--src/components/ContactDetails.vue14
-rw-r--r--src/components/ContactsList.vue4
-rw-r--r--src/components/Properties/PropertyDateTime.vue2
-rw-r--r--src/components/Properties/PropertyGroups.vue4
-rw-r--r--src/components/Settings/SettingsAddressbook.vue2
-rw-r--r--src/mixins/PropertyMixin.js4
-rw-r--r--src/services/cdav.js2
-rw-r--r--src/store/addressbooks.js2
-rw-r--r--src/views/Contacts.vue6
10 files changed, 21 insertions, 21 deletions
diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue
index ac840085..aa65f096 100644
--- a/src/components/AdminSettings.vue
+++ b/src/components/AdminSettings.vue
@@ -21,7 +21,7 @@ export default {
name: 'AdminSettings',
data() {
return {
- 'allowSocialSync': loadState('contacts', 'allowSocialSync') === 'yes',
+ allowSocialSync: loadState('contacts', 'allowSocialSync') === 'yes',
}
},
methods: {
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index 6d4c6fd9..10c69a04 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -373,10 +373,10 @@ export default {
* @returns {string}
*/
addressbook: {
- get: function() {
+ get() {
return this.contact.addressbook.id
},
- set: function(addressbookId) {
+ set(addressbookId) {
this.moveContactToAddressbook(addressbookId)
},
},
@@ -400,10 +400,10 @@ export default {
* @returns {Array}
*/
groups: {
- get: function() {
+ get() {
return this.contact.groups
},
- set: function(data) {
+ set(data) {
this.contact.groups = data
this.debounceUpdateContact()
},
@@ -436,7 +436,7 @@ export default {
},
watch: {
- contact: function(newContact, oldContact) {
+ contact(newContact, oldContact) {
if (this.contactKey && newContact !== oldContact) {
this.selectContact(this.contactKey)
}
@@ -541,9 +541,9 @@ export default {
if (error.name === 'ParserError') {
showError(t('contacts', 'Syntax error. Cannot open the contact.'))
} else if (error.status === 404) {
- showError(t('contacts', `The contact doesn't exists anymore on the server.`))
+ showError(t('contacts', 'The contact doesn\'t exists anymore on the server.'))
} else {
- showError(t('contacts', `Unable to retrieve the contact from the server, please check your network connection.`))
+ showError(t('contacts', 'Unable to retrieve the contact from the server, please check your network connection.'))
}
console.error(error)
// trigger a local deletion from the store only
diff --git a/src/components/ContactsList.vue b/src/components/ContactsList.vue
index a8a20312..f2200693 100644
--- a/src/components/ContactsList.vue
+++ b/src/components/ContactsList.vue
@@ -93,12 +93,12 @@ export default {
},
watch: {
- selectedContact: function(key) {
+ selectedContact(key) {
this.$nextTick(() => {
this.scrollToContact(key)
})
},
- list: function(val, old) {
+ list(val, old) {
// we just loaded the list and the url already have a selected contact
// if not, the selectedContact watcher will take over
// to select the first entry
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue
index 4402e748..342ab7f6 100644
--- a/src/components/Properties/PropertyDateTime.vue
+++ b/src/components/Properties/PropertyDateTime.vue
@@ -259,7 +259,7 @@ export default {
*
* @returns {string}
*/
- formatDateTime: function() {
+ formatDateTime() {
// this is the only possibility for us to ensure
// no data is lost. e.g. if no second are set
// the second will be null and not 0
diff --git a/src/components/Properties/PropertyGroups.vue b/src/components/Properties/PropertyGroups.vue
index 700a44dc..03026992 100644
--- a/src/components/Properties/PropertyGroups.vue
+++ b/src/components/Properties/PropertyGroups.vue
@@ -119,10 +119,10 @@ export default {
* we need to make sure to update the local data on pop change
* TODO: check if this create performance drop
*/
- value: function() {
+ value() {
this.localValue = this.value
},
- selectType: function() {
+ selectType() {
this.localType = this.selectType
},
},
diff --git a/src/components/Settings/SettingsAddressbook.vue b/src/components/Settings/SettingsAddressbook.vue
index 17f15122..e62ca5cf 100644
--- a/src/components/Settings/SettingsAddressbook.vue
+++ b/src/components/Settings/SettingsAddressbook.vue
@@ -167,7 +167,7 @@ export default {
},
},
watch: {
- menuOpen: function() {
+ menuOpen() {
if (this.menuOpen === false) {
this.editingName = false
}
diff --git a/src/mixins/PropertyMixin.js b/src/mixins/PropertyMixin.js
index 61c67d52..ebc63695 100644
--- a/src/mixins/PropertyMixin.js
+++ b/src/mixins/PropertyMixin.js
@@ -101,10 +101,10 @@ export default {
* we need to make sure to update the local data on contact change
* in case the v-Node is reused.
*/
- value: function() {
+ value() {
this.localValue = this.value
},
- selectType: function() {
+ selectType() {
this.localType = this.selectType
},
},
diff --git a/src/services/cdav.js b/src/services/cdav.js
index 82ba3759..7e0fae6c 100644
--- a/src/services/cdav.js
+++ b/src/services/cdav.js
@@ -27,7 +27,7 @@ import { getRequestToken } from '@nextcloud/auth'
function xhrProvider() {
const headers = {
'X-Requested-With': 'XMLHttpRequest',
- 'requesttoken': getRequestToken(),
+ requesttoken: getRequestToken(),
}
const xhr = new XMLHttpRequest()
const oldOpen = xhr.open
diff --git a/src/store/addressbooks.js b/src/store/addressbooks.js
index e81c03ec..6b79551d 100644
--- a/src/store/addressbooks.js
+++ b/src/store/addressbooks.js
@@ -80,7 +80,7 @@ export function mapDavShareeToSharee(sharee) {
: id
return {
displayName: name,
- id: id,
+ id,
writeable: sharee.access[0].endsWith('read-write'),
isGroup: sharee.href.startsWith('principal:principals/groups/'),
uri: sharee.href,
diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue
index 20453604..13c5dc16 100644
--- a/src/views/Contacts.vue
+++ b/src/views/Contacts.vue
@@ -291,13 +291,13 @@ export default {
watch: {
// watch url change and group select
- selectedGroup: function() {
+ selectedGroup() {
if (!this.isMobile) {
this.selectFirstContactIfNone()
}
},
// watch url change and contact select
- selectedContact: function() {
+ selectedContact() {
if (!this.isMobile) {
this.selectFirstContactIfNone()
}
@@ -370,7 +370,7 @@ export default {
// set group if it's selected already
// BUT NOT if it's the _fake_ groups like all contacts and not grouped
if ([GROUP_ALL_CONTACTS, GROUP_NO_GROUP_CONTACTS].indexOf(this.selectedGroup) === -1) {
- contact.groups = [ this.selectedGroup ]
+ contact.groups = [this.selectedGroup]
}
try {
// this will trigger the proper commits to groups, contacts and addressbook