Merge pull request #2656 from nextcloud/dependabot/npm_and_yarn/master/eslint-config-standard-14.1.1

This commit is contained in:
Julius Härtl
2020-12-28 15:47:51 +01:00
committed by GitHub
17 changed files with 25 additions and 24 deletions

6
package-lock.json generated
View File

@@ -8736,9 +8736,9 @@
}
},
"eslint-config-standard": {
"version": "12.0.0",
"resolved": "http://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-12.0.0.tgz",
"integrity": "sha512-COUz8FnXhqFitYj4DTqHzidjIL/t4mumGZto5c7DrBpvWoie+Sn3P4sLEzUGeYhRElWuFEf8K1S1EfvD1vixCQ==",
"version": "14.1.1",
"resolved": "http://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-14.1.1.tgz",
"integrity": "sha512-Z9B+VR+JIXRxz21udPTL9HpFMyoMUEeX1G251EQ6e05WD9aPVtVBn09XUmZ259wCMlCDmYDSZG62Hhm+ZTJcUg==",
"dev": true
},
"eslint-friendly-formatter": {

View File

@@ -82,7 +82,7 @@
"babel-loader": "^8.2.2",
"css-loader": "^4.3.0",
"eslint": "^6.8.0",
"eslint-config-standard": "^12.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.1",

View File

@@ -63,7 +63,7 @@ export default {
components: {
RichText,
},
mixins: [ relativeDate ],
mixins: [relativeDate],
props: {
activity: {
type: Object,

View File

@@ -79,7 +79,7 @@ try {
export default {
name: 'AttachmentDragAndDrop',
components: { Modal },
mixins: [ attachmentUpload ],
mixins: [attachmentUpload],
props: {
cardId: {
type: Number,

View File

@@ -206,7 +206,7 @@ export default {
components: {
Actions, ActionButton, Popover, Avatar,
},
mixins: [ labelStyle ],
mixins: [labelStyle],
props: {
board: {
type: Object,

View File

@@ -38,7 +38,7 @@ import relativeDate from '../../mixins/relativeDate'
export default {
name: 'DeletedTabSidebar',
mixins: [ relativeDate ],
mixins: [relativeDate],
props: {
board: {
type: Object,

View File

@@ -71,7 +71,7 @@ export default {
},
},
watch: {
'card': {
card: {
immediate: true,
handler() {
this.loadComments()

View File

@@ -60,7 +60,7 @@ const AtMention = {
const { user, displayName } = context.props
return createElement(
'span',
{ attrs: { 'data-at-embedded': true, 'contenteditable': false } },
{ attrs: { 'data-at-embedded': true, contenteditable: false } },
[createElement(UserBubble, { props: { user, displayName }, attrs: { 'data-mention-id': user } })]
)
},
@@ -76,7 +76,7 @@ export default {
CommentForm,
RichText,
},
mixins: [ relativeDate ],
mixins: [relativeDate],
props: {
comment: {
type: Object,

View File

@@ -35,7 +35,7 @@ export default {
async onLocalAttachmentSelected(file) {
if (this.maxUploadSize > 0 && file.size > this.maxUploadSize) {
showError(
t('deck', `Failed to upload {name}`, { name: file.name }) + ' - '
t('deck', 'Failed to upload {name}', { name: file.name }) + ' - '
+ t('deck', 'Maximum file size of {size} exceeded', { size: formatFileSize(this.maxUploadSize) })
)
event.target.value = ''
@@ -49,7 +49,8 @@ export default {
bodyFormData.append('file', file)
await queue.add(async() => {
try {
await this.$store.dispatch('createAttachment', { cardId: this.cardId,
await this.$store.dispatch('createAttachment', {
cardId: this.cardId,
formData: bodyFormData,
onUploadProgress: (e) => {
const percentCompleted = Math.round((e.loaded * 100) / e.total)

View File

@@ -23,7 +23,7 @@
import Color from './color'
export default {
mixins: [ Color ],
mixins: [Color],
computed: {
labelStyle() {
return (label) => {

View File

@@ -31,7 +31,7 @@ export class CardApi {
}
addCard(card) {
return axios.post(this.url(`/cards`), card)
return axios.post(this.url('/cards'), card)
.then(
(response) => {
return Promise.resolve(response.data)

View File

@@ -31,7 +31,7 @@ export class CommentApi {
}
async loadComments({ cardId, limit, offset }) {
const api = await axios.get(generateOcsUrl(`apps/deck/api/v1.0/cards`, 2) + `${cardId}/comments`, {
const api = await axios.get(generateOcsUrl('apps/deck/api/v1.0/cards', 2) + `${cardId}/comments`, {
params: { limit, offset },
headers: { 'OCS-APIRequest': 'true' },
})
@@ -39,7 +39,7 @@ export class CommentApi {
}
async createComment({ cardId, comment, replyTo }) {
const api = await axios.post(generateOcsUrl(`apps/deck/api/v1.0/cards`, 2) + `${cardId}/comments`, {
const api = await axios.post(generateOcsUrl('apps/deck/api/v1.0/cards', 2) + `${cardId}/comments`, {
message: `${comment}`,
parentId: replyTo ? replyTo.id : null,
})
@@ -47,14 +47,14 @@ export class CommentApi {
}
async updateComment({ cardId, id, comment }) {
const api = await axios.put(generateOcsUrl(`apps/deck/api/v1.0/cards`, 2) + `${cardId}/comments/${id}`, {
const api = await axios.put(generateOcsUrl('apps/deck/api/v1.0/cards', 2) + `${cardId}/comments/${id}`, {
message: `${comment}`,
})
return api.data.ocs.data
}
async deleteComment({ cardId, id }) {
const api = await axios.delete(generateOcsUrl(`apps/deck/api/v1.0/cards`, 2) + `${cardId}/comments/${id}`)
const api = await axios.delete(generateOcsUrl('apps/deck/api/v1.0/cards', 2) + `${cardId}/comments/${id}`)
return api.data.ocs.data
}

View File

@@ -26,7 +26,7 @@ import { generateOcsUrl } from '@nextcloud/router'
export class OverviewApi {
url(url) {
return generateOcsUrl(`apps/deck/api/v1.0`) + url
return generateOcsUrl('apps/deck/api/v1.0') + url
}
get(filter) {

View File

@@ -81,7 +81,7 @@ export class StackApi {
* @returns {Promise}
*/
createStack(stack) {
return axios.post(this.url(`/stacks`), stack)
return axios.post(this.url('/stacks'), stack)
.then(
(response) => {
return Promise.resolve(response.data)

View File

@@ -53,7 +53,7 @@ export default {
if (state.comments[cardId] === undefined) {
Vue.set(state.comments, cardId, {
hasMore: comments.length > 0,
comments: [ ...comments ],
comments: [...comments],
})
} else {
const newComments = comments.filter((comment) => {

View File

@@ -312,7 +312,7 @@ export default new Vuex.Store({
async setConfig({ commit }, config) {
for (const key in config) {
try {
await axios.post(generateOcsUrl(`apps/deck/api/v1.0/config`) + key, {
await axios.post(generateOcsUrl('apps/deck/api/v1.0/config') + key, {
value: config[key],
})
commit('SET_CONFIG', { key, value: config[key] })

View File

@@ -62,7 +62,7 @@ export default {
DueDate,
DashboardWidget,
},
mixins: [ labelStyle ],
mixins: [labelStyle],
data() {
return {
loading: false,