From fca2e3530f5cc76adf430857d0d67f3bc42a3bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 31 Jul 2020 21:18:00 +0200 Subject: [PATCH] Apply eslint fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/App.vue | 8 ++++---- src/components/CollaborationView.vue | 2 +- src/components/board/Board.vue | 2 +- src/components/boards/BoardItem.vue | 2 +- src/components/boards/Boards.vue | 2 +- src/components/card/CardSidebarTabAttachments.vue | 2 +- src/components/cards/AvatarList.vue | 4 ++-- src/components/navigation/AppNavigationAddBoard.vue | 2 +- src/components/navigation/AppNavigationBoard.vue | 4 ++-- src/components/navigation/AppNavigationBoardCategory.vue | 2 +- src/main.js | 2 +- src/services/CardApi.js | 4 ++-- src/store/comment.js | 2 +- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/App.vue b/src/App.vue index d560fbaad..c5237165f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -43,7 +43,7 @@ export default { components: { AppNavigation, }, - data: function() { + data() { return { addButton: { icon: 'icon-add', @@ -77,12 +77,12 @@ export default { return this.sidebarRouterView || this.sidebarShownState }, }, - provide: function() { + provide() { return { - boardApi: boardApi, + boardApi, } }, - created: function() { + created() { this.$store.dispatch('loadBoards') this.$store.dispatch('loadSharees') }, diff --git a/src/components/CollaborationView.vue b/src/components/CollaborationView.vue index 61a8c404b..4ca9ac2cd 100644 --- a/src/components/CollaborationView.vue +++ b/src/components/CollaborationView.vue @@ -35,7 +35,7 @@ import { CollectionList } from 'nextcloud-vue-collections' export default { name: 'CollaborationView', components: { - CollectionList: CollectionList, + CollectionList, }, computed: { boardId() { diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue index 50e388031..fa9e5ec90 100644 --- a/src/components/board/Board.vue +++ b/src/components/board/Board.vue @@ -72,7 +72,7 @@ export default { default: null, }, }, - data: function() { + data() { return { loading: true, } diff --git a/src/components/boards/BoardItem.vue b/src/components/boards/BoardItem.vue index 47664c0aa..4efa11385 100644 --- a/src/components/boards/BoardItem.vue +++ b/src/components/boards/BoardItem.vue @@ -60,7 +60,7 @@ export default { }, }, computed: { - routeTo: function() { + routeTo() { return { name: 'board', params: { id: this.board.id }, diff --git a/src/components/boards/Boards.vue b/src/components/boards/Boards.vue index fb14cb787..ade8ed8cd 100644 --- a/src/components/boards/Boards.vue +++ b/src/components/boards/Boards.vue @@ -70,7 +70,7 @@ export default { }, }, watch: { - navFilter: function(value) { + navFilter(value) { this.$store.commit('setBoardFilter', value) }, }, diff --git a/src/components/card/CardSidebarTabAttachments.vue b/src/components/card/CardSidebarTabAttachments.vue index 3d0e9261d..8b587c02d 100644 --- a/src/components/card/CardSidebarTabAttachments.vue +++ b/src/components/card/CardSidebarTabAttachments.vue @@ -119,7 +119,7 @@ export default { this.$store.dispatch('fetchAttachments', newCard.id) }, }, - created: function() { + created() { this.$store.dispatch('fetchAttachments', this.card.id) }, methods: { diff --git a/src/components/cards/AvatarList.vue b/src/components/cards/AvatarList.vue index 22850cb63..1ab25f189 100644 --- a/src/components/cards/AvatarList.vue +++ b/src/components/cards/AvatarList.vue @@ -96,8 +96,8 @@ export default { const size = 32 const avatarUrl = generateUrl('/avatar/{user}/{size}', { - user: user, - size: size, + user, + size, }) return window.location.protocol + '//' + window.location.host + avatarUrl } diff --git a/src/components/navigation/AppNavigationAddBoard.vue b/src/components/navigation/AppNavigationAddBoard.vue index b9d9c942f..b81339689 100644 --- a/src/components/navigation/AppNavigationAddBoard.vue +++ b/src/components/navigation/AppNavigationAddBoard.vue @@ -64,7 +64,7 @@ export default { createBoard(e) { const title = e.currentTarget.childNodes[0].value this.$store.dispatch('createBoard', { - title: title, + title, color: this.color.substring(1), }) this.editing = false diff --git a/src/components/navigation/AppNavigationBoard.vue b/src/components/navigation/AppNavigationBoard.vue index 941866155..af2daefc3 100644 --- a/src/components/navigation/AppNavigationBoard.vue +++ b/src/components/navigation/AppNavigationBoard.vue @@ -123,10 +123,10 @@ export default { } return this.board.color }, - undoText: function() { + undoText() { return t('deck', 'Board {0} deleted', [this.board.title]) }, - routeTo: function() { + routeTo() { return { name: 'board', params: { id: this.board.id }, diff --git a/src/components/navigation/AppNavigationBoardCategory.vue b/src/components/navigation/AppNavigationBoardCategory.vue index a5235f68b..bbb7c4587 100644 --- a/src/components/navigation/AppNavigationBoardCategory.vue +++ b/src/components/navigation/AppNavigationBoardCategory.vue @@ -84,7 +84,7 @@ export default { }, }, watch: { - boards: function(newVal, prevVal) { + boards(newVal, prevVal) { if (this.openOnAddBoards === true && prevVal.length < newVal.length) { this.opened = true } diff --git a/src/main.js b/src/main.js index 04ae8d730..196cb3102 100644 --- a/src/main.js +++ b/src/main.js @@ -49,7 +49,7 @@ Vue.directive('tooltip', Tooltip) Vue.directive('click-outside', ClickOutside) Vue.directive('focus', { - inserted: function(el) { + inserted(el) { el.focus() }, }) diff --git a/src/services/CardApi.js b/src/services/CardApi.js index c5d7037af..114556d05 100644 --- a/src/services/CardApi.js +++ b/src/services/CardApi.js @@ -106,7 +106,7 @@ export class CardApi { } assignUser(cardId, id, type) { - return axios.post(this.url(`/cards/${cardId}/assign`), { userId: id, type: type }) + return axios.post(this.url(`/cards/${cardId}/assign`), { userId: id, type }) .then( (response) => { return Promise.resolve(response.data) @@ -121,7 +121,7 @@ export class CardApi { } removeUser(cardId, id, type) { - return axios.put(this.url(`/cards/${cardId}/unassign`), { userId: id, type: type }) + return axios.put(this.url(`/cards/${cardId}/unassign`), { userId: id, type }) .then( (response) => { return Promise.resolve(response.data) diff --git a/src/store/comment.js b/src/store/comment.js index f0635c26e..9ec0c5845 100644 --- a/src/store/comment.js +++ b/src/store/comment.js @@ -117,7 +117,7 @@ export default { }, async updateComment({ commit }, data) { const comment = await apiClient.updateComment(data) - await commit('updateComment', { cardId: data.cardId, comment: comment }) + await commit('updateComment', { cardId: data.cardId, comment }) }, async markCommentsAsRead({ commit }, cardId) { await apiClient.markCommentsAsRead(cardId)