Signed-off-by: Louis Chemineau <louis@chmn.me>tags/v24.0.0beta1
ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'], | ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'], | ||||
}], | }], | ||||
}, | }, | ||||
settings: { | |||||
jsdoc: { | |||||
mode: 'typescript', | |||||
}, | |||||
}, | |||||
} | } |
* | * | ||||
*/ | */ | ||||
/** @typedef {import('jquery')} jQuery */ | |||||
(function() { | (function() { | ||||
OCA.Comments.ActivityTabViewPlugin = { | OCA.Comments.ActivityTabViewPlugin = { | ||||
/** | /** | ||||
* Create a cancel token | * Create a cancel token | ||||
* | * | ||||
* @return {CancelTokenSource} | |||||
* @return {import('axios').CancelTokenSource} | |||||
*/ | */ | ||||
const createCancelToken = () => axios.CancelToken.source() | const createCancelToken = () => axios.CancelToken.source() | ||||
* | * | ||||
*/ | */ | ||||
/** @typedef {import('jquery')} jQuery */ | |||||
import $ from 'jquery' | import $ from 'jquery' | ||||
import { generateFilePath } from '@nextcloud/router' | import { generateFilePath } from '@nextcloud/router' | ||||
*/ | */ | ||||
import _ from 'underscore' | import _ from 'underscore' | ||||
/** @typedef {import('jquery')} jQuery */ | |||||
import $ from 'jquery' | import $ from 'jquery' | ||||
import { menuSpeed } from './constants' | import { menuSpeed } from './constants' |
*/ | */ | ||||
import _ from 'underscore' | import _ from 'underscore' | ||||
/** @typedef {import('jquery')} jQuery */ | |||||
import $ from 'jquery' | import $ from 'jquery' | ||||
import { showMessage, TOAST_DEFAULT_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs' | import { showMessage, TOAST_DEFAULT_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs' | ||||
* @param {number} [options.timeout=7] timeout in seconds, if this is 0 it will show the message permanently | * @param {number} [options.timeout=7] timeout in seconds, if this is 0 it will show the message permanently | ||||
* @param {boolean} [options.isHTML=false] an indicator for HTML notifications (true) or text (false) | * @param {boolean} [options.isHTML=false] an indicator for HTML notifications (true) or text (false) | ||||
* @param {string} [options.type] notification type | * @param {string} [options.type] notification type | ||||
* @return {JQuery<any>} the toast element | |||||
* @return {JQuery} the toast element | |||||
* @deprecated 17.0.0 use the `@nextcloud/dialogs` package | * @deprecated 17.0.0 use the `@nextcloud/dialogs` package | ||||
*/ | */ | ||||
showTemporary(text, options) { | showTemporary(text, options) { |
* @param {object} [options.data] option data | * @param {object} [options.data] option data | ||||
* @param {Function} [options.success] success callback | * @param {Function} [options.success] success callback | ||||
* @param {Function} [options.error] error callback | * @param {Function} [options.error] error callback | ||||
* @internal | |||||
*/ | */ | ||||
function call(method, endpoint, options) { | function call(method, endpoint, options) { | ||||
if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) { | if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) { |
/** | /** | ||||
* Create a cancel token | * Create a cancel token | ||||
* | * | ||||
* @return {CancelTokenSource} | |||||
* @return {import('axios').CancelTokenSource} | |||||
*/ | */ | ||||
const createCancelToken = () => axios.CancelToken.source() | const createCancelToken = () => axios.CancelToken.source() | ||||
/** | /** | ||||
* Get the list of available search providers | * Get the list of available search providers | ||||
* | * | ||||
* @return {Array} | |||||
* @return {Promise<Array>} | |||||
*/ | */ | ||||
export async function getTypes() { | export async function getTypes() { | ||||
try { | try { |