Apply eslint fixes

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-07-31 21:18:00 +02:00
parent 9821d77796
commit fca2e3530f
13 changed files with 19 additions and 19 deletions

View File

@@ -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')
},

View File

@@ -35,7 +35,7 @@ import { CollectionList } from 'nextcloud-vue-collections'
export default {
name: 'CollaborationView',
components: {
CollectionList: CollectionList,
CollectionList,
},
computed: {
boardId() {

View File

@@ -72,7 +72,7 @@ export default {
default: null,
},
},
data: function() {
data() {
return {
loading: true,
}

View File

@@ -60,7 +60,7 @@ export default {
},
},
computed: {
routeTo: function() {
routeTo() {
return {
name: 'board',
params: { id: this.board.id },

View File

@@ -70,7 +70,7 @@ export default {
},
},
watch: {
navFilter: function(value) {
navFilter(value) {
this.$store.commit('setBoardFilter', value)
},
},

View File

@@ -119,7 +119,7 @@ export default {
this.$store.dispatch('fetchAttachments', newCard.id)
},
},
created: function() {
created() {
this.$store.dispatch('fetchAttachments', this.card.id)
},
methods: {

View File

@@ -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
}

View File

@@ -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

View File

@@ -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 },

View File

@@ -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
}

View File

@@ -49,7 +49,7 @@ Vue.directive('tooltip', Tooltip)
Vue.directive('click-outside', ClickOutside)
Vue.directive('focus', {
inserted: function(el) {
inserted(el) {
el.focus()
},
})

View File

@@ -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)

View File

@@ -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)