Merge pull request #2130 from nextcloud/dependabot/npm_and_yarn/nextcloud/eslint-config-2.1.0

This commit is contained in:
dependabot-preview[bot]
2020-07-31 19:27:11 +00:00
committed by GitHub
15 changed files with 23 additions and 23 deletions

6
package-lock.json generated
View File

@@ -5397,9 +5397,9 @@
} }
}, },
"@nextcloud/eslint-config": { "@nextcloud/eslint-config": {
"version": "2.0.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/@nextcloud/eslint-config/-/eslint-config-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/eslint-config/-/eslint-config-2.1.0.tgz",
"integrity": "sha512-rpBCwFm4/UpJUhGf38CHbOGzoQikvht90JqqbI0GtbpP2Ty1F8Pvr/3ntg+OVeu6utkJL1hybtD9pQswiZfWCg==", "integrity": "sha512-E1ehi28zuIbbj5qRkU39VxVmGVaDvAmBFwPId0qwTO8+cBvIUiDMOZ1DaOGyNZoPpuss39GUPPiX9Sr3cYEW5A==",
"dev": true "dev": true
}, },
"@nextcloud/eslint-plugin": { "@nextcloud/eslint-plugin": {

View File

@@ -70,7 +70,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.10.4", "@babel/preset-env": "^7.10.4",
"@nextcloud/browserslist-config": "^1.0.0", "@nextcloud/browserslist-config": "^1.0.0",
"@nextcloud/eslint-config": "^2.0.0", "@nextcloud/eslint-config": "^2.1.0",
"@nextcloud/eslint-plugin": "^1.4.0", "@nextcloud/eslint-plugin": "^1.4.0",
"@vue/test-utils": "^1.0.3", "@vue/test-utils": "^1.0.3",
"acorn": "^7.3.1", "acorn": "^7.3.1",

View File

@@ -43,7 +43,7 @@ export default {
components: { components: {
AppNavigation, AppNavigation,
}, },
data: function() { data() {
return { return {
addButton: { addButton: {
icon: 'icon-add', icon: 'icon-add',
@@ -77,12 +77,12 @@ export default {
return this.sidebarRouterView || this.sidebarShownState return this.sidebarRouterView || this.sidebarShownState
}, },
}, },
provide: function() { provide() {
return { return {
boardApi: boardApi, boardApi,
} }
}, },
created: function() { created() {
this.$store.dispatch('loadBoards') this.$store.dispatch('loadBoards')
this.$store.dispatch('loadSharees') this.$store.dispatch('loadSharees')
}, },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -96,8 +96,8 @@ export default {
const size = 32 const size = 32
const avatarUrl = generateUrl('/avatar/{user}/{size}', const avatarUrl = generateUrl('/avatar/{user}/{size}',
{ {
user: user, user,
size: size, size,
}) })
return window.location.protocol + '//' + window.location.host + avatarUrl return window.location.protocol + '//' + window.location.host + avatarUrl
} }

View File

@@ -64,7 +64,7 @@ export default {
createBoard(e) { createBoard(e) {
const title = e.currentTarget.childNodes[0].value const title = e.currentTarget.childNodes[0].value
this.$store.dispatch('createBoard', { this.$store.dispatch('createBoard', {
title: title, title,
color: this.color.substring(1), color: this.color.substring(1),
}) })
this.editing = false this.editing = false

View File

@@ -123,10 +123,10 @@ export default {
} }
return this.board.color return this.board.color
}, },
undoText: function() { undoText() {
return t('deck', 'Board {0} deleted', [this.board.title]) return t('deck', 'Board {0} deleted', [this.board.title])
}, },
routeTo: function() { routeTo() {
return { return {
name: 'board', name: 'board',
params: { id: this.board.id }, params: { id: this.board.id },

View File

@@ -84,7 +84,7 @@ export default {
}, },
}, },
watch: { watch: {
boards: function(newVal, prevVal) { boards(newVal, prevVal) {
if (this.openOnAddBoards === true && prevVal.length < newVal.length) { if (this.openOnAddBoards === true && prevVal.length < newVal.length) {
this.opened = true this.opened = true
} }

View File

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

View File

@@ -106,7 +106,7 @@ export class CardApi {
} }
assignUser(cardId, id, type) { 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( .then(
(response) => { (response) => {
return Promise.resolve(response.data) return Promise.resolve(response.data)
@@ -121,7 +121,7 @@ export class CardApi {
} }
removeUser(cardId, id, type) { 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( .then(
(response) => { (response) => {
return Promise.resolve(response.data) return Promise.resolve(response.data)

View File

@@ -117,7 +117,7 @@ export default {
}, },
async updateComment({ commit }, data) { async updateComment({ commit }, data) {
const comment = await apiClient.updateComment(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) { async markCommentsAsRead({ commit }, cardId) {
await apiClient.markCommentsAsRead(cardId) await apiClient.markCommentsAsRead(cardId)