Bump @nextcloud/eslint-config from 5.1.0 to 6.0.0

Bumps [@nextcloud/eslint-config](https://github.com/nextcloud/eslint-config) from 5.1.0 to 6.0.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/v5.1.0...v6.0.0)

---
updated-dependencies:
- dependency-name: "@nextcloud/eslint-config"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2021-08-03 07:24:56 +00:00
committed by Julius Härtl
parent 3e68801774
commit d98c2bc926
14 changed files with 238 additions and 34 deletions

View File

@@ -204,7 +204,7 @@ export default {
},
shareFromFiles() {
picker.pick()
.then(async(path) => {
.then(async (path) => {
console.debug(`path ${path} selected for sharing`)
if (!path.startsWith('/')) {
throw new Error(t('files', 'Invalid path selected'))

View File

@@ -223,7 +223,7 @@ export default {
updateDescription() {
this.descriptionLastEdit = Date.now()
clearTimeout(this.descriptionSaveTimeout)
this.descriptionSaveTimeout = setTimeout(async() => {
this.descriptionSaveTimeout = setTimeout(async () => {
await this.saveDescription()
}, 2500)
},

View File

@@ -39,6 +39,9 @@
<script>
import { ColorPicker, ActionButton, Actions, AppNavigationItem } from '@nextcloud/vue'
/**
*
*/
function randomColor() {
let randomHexColor = ((1 << 24) * Math.random() | 0).toString(16)
while (randomHexColor.length < 6) {

View File

@@ -63,10 +63,15 @@ import { Actions, ActionButton } from '@nextcloud/vue'
const createCancelToken = () => axios.CancelToken.source()
/**
* @param root0
* @param root0.query
* @param root0.cursor
*/
function search({ query, cursor }) {
const cancelToken = createCancelToken()
const request = async() => axios.get(generateOcsUrl('apps/deck/api/v1.0/search'), {
const request = async () => axios.get(generateOcsUrl('apps/deck/api/v1.0/search'), {
cancelToken: cancelToken.token,
params: {
term: query,

View File

@@ -109,7 +109,7 @@ if (!window.OCA.Deck) {
}
/**
* @typedef {Object} CardRichObject
* @typedef {object} CardRichObject
* @property {string} id
* @property {string} name
* @property {string} boardname
@@ -124,13 +124,14 @@ if (!window.OCA.Deck) {
/**
* Frontend message API for adding actions to talk messages.
*
* @param {*} Object the wrapping object.
* @param {String} label the action label.
* @param {string} label the action label.
* @param {registerActionCallback} callback the callback function. This function will receive
* the card as a parameter and be triggered by a click on the
* action. The card parameter will be of the format of a rich object string
* type "deck-card"
* @param {String} icon the action label. E.g. "icon-reply"
* @param {string} icon the action label. E.g. "icon-reply"
*/
window.OCA.Deck.registerCardAction = ({ label, callback, icon }) => {
const cardAction = {

View File

@@ -47,7 +47,7 @@ export default {
bodyFormData.append('cardId', this.cardId)
bodyFormData.append('type', type)
bodyFormData.append('file', file)
await queue.add(async() => {
await queue.add(async () => {
try {
await this.$store.dispatch('createAttachment', {
cardId: this.cardId,

View File

@@ -1,8 +1,6 @@
/**
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
@@ -17,7 +15,6 @@
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
export default {

View File

@@ -23,8 +23,8 @@
/**
* Board model
*
* @typedef {Object} Board
* @property {String} title
* @typedef {object} Board
* @property {string} title
* @property {boolean} archived
* @property {number} shared 1 (shared) or 0 (not shared)
*/
@@ -32,8 +32,8 @@
/**
* Stack model
*
* @typedef {Object} Stack
* @property {String} title
* @typedef {object} Stack
* @property {string} title
* @property {number} boardId
* @property {number} order
*/
@@ -41,15 +41,15 @@
/**
* Card model
*
* @typedef {Object} Card
* @property {String} title
* @typedef {object} Card
* @property {string} title
* @property {boolean} archived
* @property {number} order
*/
/**
* Label model
*
* @typedef {Object} Label
* @property {String} title
* @property {String} color
* @typedef {object} Label
* @property {string} title
* @property {string} color
*/

View File

@@ -38,7 +38,7 @@ export class BoardApi {
* Updates a board.
*
* @param {Board} board the board object to update
* @returns {Promise}
* @return {Promise}
*/
updateBoard(board) {
return axios.put(this.url(`/boards/${board.id}`), board)
@@ -57,13 +57,13 @@ export class BoardApi {
/**
* Creates a new board.
* @typedef {Object} BoardCreateObject
*
* @typedef {object} BoardCreateObject
* @property {string} title
* @property {string} color
*
* @param {BoardCreateObject} boardData The board data to send.
* color the hexadecimal color value formated /[0-9A-F]{6}/i
* @returns {Promise}
* @return {Promise}
*/
createBoard(boardData) {
return axios.post(this.url('/boards'), boardData)

View File

@@ -78,7 +78,7 @@ export class StackApi {
/**
* @param {Stack} stack stack object to create
* @returns {Promise}
* @return {Promise}
*/
createStack(stack) {
return axios.post(this.url('/stacks'), stack)

View File

@@ -353,6 +353,7 @@ export default new Vuex.Store({
},
/**
* @param commit.commit
* @param commit
* @param state
* @param {Board} board
@@ -366,6 +367,7 @@ export default new Vuex.Store({
})
},
/**
* @param commit.commit
* @param commit
* @param state
* @param {Board} board
@@ -381,9 +383,10 @@ export default new Vuex.Store({
/**
* Updates a board API side.
*
* @param commit.commit
* @param commit
* @param board The board to update.
* @returns {Promise<void>}
* @return {Promise<void>}
*/
async updateBoard({ commit }, board) {
const storedBoard = await apiClient.updateBoard(board)

View File

@@ -46,7 +46,7 @@ export default {
ComponentVM.$destroy()
reject(new Error('Canceled'))
})
ComponentVM.$root.$on('select', async(id) => {
ComponentVM.$root.$on('select', async (id) => {
const result = await createShare({
path: self.fileInfo.path + '/' + self.fileInfo.name,
shareType: 12,