diff options
Diffstat (limited to 'core')
92 files changed, 179 insertions, 178 deletions
diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js index 7cca96e1d01..adb1c4dd2fc 100644 --- a/core/js/public/publicpage.js +++ b/core/js/public/publicpage.js @@ -3,7 +3,7 @@ * * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/js/tests/specs/contactsmenuSpec.js b/core/js/tests/specs/contactsmenuSpec.js index 7eaf2660799..dba8a5580d0 100644 --- a/core/js/tests/specs/contactsmenuSpec.js +++ b/core/js/tests/specs/contactsmenuSpec.js @@ -5,7 +5,7 @@ * * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/js/tests/specs/files/clientSpec.js b/core/js/tests/specs/files/clientSpec.js index 6c15857c57d..94d52bebacf 100644 --- a/core/js/tests/specs/files/clientSpec.js +++ b/core/js/tests/specs/files/clientSpec.js @@ -50,7 +50,7 @@ describe('OC.Files.Client tests', function() { * status code * * @param {Promise} promise promise - * @param {int} status status to test + * @param {number} status status to test */ function respondAndCheckStatus(promise, status) { var successHandler = sinon.stub(); @@ -79,7 +79,7 @@ describe('OC.Files.Client tests', function() { * status code * * @param {Promise} promise promise object - * @param {int} status error status to test + * @param {number} status error status to test */ function respondAndCheckError(promise, status) { var successHandler = sinon.stub(); diff --git a/core/src/OC/admin.js b/core/src/OC/admin.js index 96ad6cd4048..5c939415266 100644 --- a/core/src/OC/admin.js +++ b/core/src/OC/admin.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -26,7 +26,7 @@ const isAdmin = !!window._oc_isadmin /** * Returns whether the current user is an administrator * - * @return {bool} true if the user is an admin, false otherwise + * @return {boolean} true if the user is an admin, false otherwise * @since 9.0.0 */ export const isUserAdmin = () => isAdmin diff --git a/core/src/OC/appconfig.js b/core/src/OC/appconfig.js index cf70d7b1262..4b03f8db5fb 100644 --- a/core/src/OC/appconfig.js +++ b/core/src/OC/appconfig.js @@ -8,7 +8,7 @@ * @author Robin Appelman <robin@icewind.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/apps.js b/core/src/OC/apps.js index 89b7b10247e..bbda177409e 100644 --- a/core/src/OC/apps.js +++ b/core/src/OC/apps.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/appsettings.js b/core/src/OC/appsettings.js index f8e419cb15b..a81708ca461 100644 --- a/core/src/OC/appsettings.js +++ b/core/src/OC/appsettings.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/appswebroots.js b/core/src/OC/appswebroots.js index 9a7a24c2aa3..ec2420eeed5 100644 --- a/core/src/OC/appswebroots.js +++ b/core/src/OC/appswebroots.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/backbone-webdav.js b/core/src/OC/backbone-webdav.js index d7d5c5bf434..ab234e22005 100644 --- a/core/src/OC/backbone-webdav.js +++ b/core/src/OC/backbone-webdav.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/backbone.js b/core/src/OC/backbone.js index 23dca847a44..17ef1c87109 100644 --- a/core/src/OC/backbone.js +++ b/core/src/OC/backbone.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/capabilities.js b/core/src/OC/capabilities.js index 01405ec9b29..c7df9b4f3d1 100644 --- a/core/src/OC/capabilities.js +++ b/core/src/OC/capabilities.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -29,7 +29,7 @@ import { getCapabilities as realGetCapabilities } from '@nextcloud/capabilities' * * @return {Array} capabilities * - * @since 14.0 + * @since 14.0.0 */ export const getCapabilities = () => { console.warn('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities') diff --git a/core/src/OC/config.js b/core/src/OC/config.js index 46188e5dea3..702105a4836 100644 --- a/core/src/OC/config.js +++ b/core/src/OC/config.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/constants.js b/core/src/OC/constants.js index 300380ce90f..f2ba7bf7a97 100644 --- a/core/src/OC/constants.js +++ b/core/src/OC/constants.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/contactsmenu.js b/core/src/OC/contactsmenu.js index 8cb8e808417..7e1586aeead 100644 --- a/core/src/OC/contactsmenu.js +++ b/core/src/OC/contactsmenu.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/currentuser.js b/core/src/OC/currentuser.js index b6dc900b6f3..c6e8a8ee62c 100644 --- a/core/src/OC/currentuser.js +++ b/core/src/OC/currentuser.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author Joas Schilling <coding@schilljs.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/debug.js b/core/src/OC/debug.js index ec52e470ef4..25a6eae9597 100644 --- a/core/src/OC/debug.js +++ b/core/src/OC/debug.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 8423677e832..b1d0e24c076 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -26,7 +26,7 @@ * @author Thomas Tanghus <thomas@tanghus.net> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/eventsource.js b/core/src/OC/eventsource.js index b4b719d0dd4..0a0a150cd78 100644 --- a/core/src/OC/eventsource.js +++ b/core/src/OC/eventsource.js @@ -9,7 +9,7 @@ * @author Thomas Müller <thomas.mueller@tmit.eu> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/get_set.js b/core/src/OC/get_set.js index 082cef67ca8..32f202ad35b 100644 --- a/core/src/OC/get_set.js +++ b/core/src/OC/get_set.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/host.js b/core/src/OC/host.js index d525818a6ca..31f13d01a7f 100644 --- a/core/src/OC/host.js +++ b/core/src/OC/host.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -34,7 +34,7 @@ export const getProtocol = () => window.location.protocol.split(':')[0] * * @return {string} host * - * @since 8.2 + * @since 8.2.0 * @deprecated 17.0.0 use window.location.host directly */ export const getHost = () => window.location.host @@ -44,7 +44,7 @@ export const getHost = () => window.location.host * The hostname is always stripped of the port * * @return {string} hostname - * @since 9.0 + * @since 9.0.0 * @deprecated 17.0.0 use window.location.hostname directly */ export const getHostName = () => window.location.hostname @@ -52,9 +52,9 @@ export const getHostName = () => window.location.hostname /** * Returns the port number used to access this Nextcloud instance * - * @return {int} port number + * @return {number} port number * - * @since 8.2 + * @since 8.2.0 * @deprecated 17.0.0 use window.location.port directly */ export const getPort = () => window.location.port diff --git a/core/src/OC/index.js b/core/src/OC/index.js index 7f811c51a56..5267e2491f4 100644 --- a/core/src/OC/index.js +++ b/core/src/OC/index.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -153,7 +153,7 @@ export default { /** * Currently logged in user or null if none * - * @type String + * @type {string} * @deprecated use `getCurrentUser` from https://www.npmjs.com/package/@nextcloud/auth */ currentUser, @@ -307,7 +307,7 @@ export default { * Relative path to Nextcloud root. * For example: "/nextcloud" * - * @type string + * @type {string} * * @deprecated 19.0.0 use `getRootUrl` from https://www.npmjs.com/package/@nextcloud/router * @see OC#getRootPath diff --git a/core/src/OC/l10n-registry.js b/core/src/OC/l10n-registry.js index b2579fd67cf..9e542b1aa8c 100644 --- a/core/src/OC/l10n-registry.js +++ b/core/src/OC/l10n-registry.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js index 48dfe6c1785..38dcf7f765e 100644 --- a/core/src/OC/l10n.js +++ b/core/src/OC/l10n.js @@ -11,7 +11,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -106,8 +106,8 @@ const L10n = { * @param {object} [vars] map of placeholder key to value * @param {number} [count] number to replace %n with * @param {Array} [options] options array - * @param {bool} [options.escape=true] enable/disable auto escape of placeholders (by default enabled) - * @param {bool} [options.sanitize=true] enable/disable sanitization (by default enabled) + * @param {boolean} [options.escape=true] enable/disable auto escape of placeholders (by default enabled) + * @param {boolean} [options.sanitize=true] enable/disable sanitization (by default enabled) * @return {string} */ translate(app, text, vars, count, options) { @@ -159,7 +159,7 @@ const L10n = { * @param {number} count number to determine whether to use singular or plural * @param {object} [vars] map of placeholder key to value * @param {Array} [options] options array - * @param {bool} [options.escape=true] enable/disable auto escape of placeholders (by default enabled) + * @param {boolean} [options.escape=true] enable/disable auto escape of placeholders (by default enabled) * @return {string} Translated string */ translatePlural(app, textSingular, textPlural, count, vars, options) { diff --git a/core/src/OC/legacy-loader.js b/core/src/OC/legacy-loader.js index 07efbef0fc6..e5bbac8f3a0 100644 --- a/core/src/OC/legacy-loader.js +++ b/core/src/OC/legacy-loader.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -22,6 +22,7 @@ * */ +/** @typedef {import('jquery')} jQuery */ import $ from 'jquery' import { generateFilePath } from '@nextcloud/router' diff --git a/core/src/OC/menu.js b/core/src/OC/menu.js index 669b1f1566b..93de943b37e 100644 --- a/core/src/OC/menu.js +++ b/core/src/OC/menu.js @@ -5,7 +5,7 @@ * @author Daniel Calviño Sánchez <danxuliu@gmail.com> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -23,6 +23,7 @@ */ import _ from 'underscore' +/** @typedef {import('jquery')} jQuery */ import $ from 'jquery' import { menuSpeed } from './constants' @@ -37,7 +38,7 @@ export let currentMenuToggle = null * @param {jQuery} $menuEl the menu container element * @param {Function | undefined} toggle callback invoked everytime the menu is opened * @param {boolean} headerMenu is this a top right header menu? - * @return {undefined} + * @return {void} */ export const registerMenu = function($toggle, $menuEl, toggle, headerMenu) { $menuEl.addClass('menu') diff --git a/core/src/OC/msg.js b/core/src/OC/msg.js index 861fe2b9086..ef6f9ec0f09 100644 --- a/core/src/OC/msg.js +++ b/core/src/OC/msg.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author rakekniven <mark.ziegler@rakekniven.de> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/navigation.js b/core/src/OC/navigation.js index 4c72e9e71db..2102c37b3f5 100644 --- a/core/src/OC/navigation.js +++ b/core/src/OC/navigation.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/notification.js b/core/src/OC/notification.js index 02383af81df..949df6a519c 100644 --- a/core/src/OC/notification.js +++ b/core/src/OC/notification.js @@ -8,7 +8,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author npmbuildbot[bot] "npmbuildbot[bot]@users.noreply.github.com" * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -26,6 +26,7 @@ */ import _ from 'underscore' +/** @typedef {import('jquery')} jQuery */ import $ from 'jquery' import { showMessage, TOAST_DEFAULT_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs' @@ -97,7 +98,7 @@ export default { * @param {string} html Message to display * @param {object} [options] options * @param {string} [options.type] notification type - * @param {int} [options.timeout=0] timeout value, defaults to 0 (permanent) + * @param {number} [options.timeout=0] timeout value, defaults to 0 (permanent) * @return {jQuery} jQuery element for notification row * @deprecated 17.0.0 use the `@nextcloud/dialogs` package */ @@ -116,7 +117,7 @@ export default { * @param {string} text Message to display * @param {object} [options] options * @param {string} [options.type] notification type - * @param {int} [options.timeout=0] timeout value, defaults to 0 (permanent) + * @param {number} [options.timeout=0] timeout value, defaults to 0 (permanent) * @return {jQuery} jQuery element for notification row * @deprecated 17.0.0 use the `@nextcloud/dialogs` package */ @@ -159,10 +160,10 @@ export default { * * @param {string} text Message to show * @param {Array} [options] options array - * @param {int} [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 {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 */ showTemporary(text, options) { diff --git a/core/src/OC/password-confirmation.js b/core/src/OC/password-confirmation.js index e387de74ae3..4aa643c19fb 100644 --- a/core/src/OC/password-confirmation.js +++ b/core/src/OC/password-confirmation.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/plugins.js b/core/src/OC/plugins.js index 6be76a2d5a4..4425c118589 100644 --- a/core/src/OC/plugins.js +++ b/core/src/OC/plugins.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -24,7 +24,7 @@ export default { /** - * @type Array.<OC.Plugin> + * @type {Array.<OC.Plugin>} */ _plugins: {}, diff --git a/core/src/OC/query-string.js b/core/src/OC/query-string.js index b61f84c7a6b..8d56eb70705 100644 --- a/core/src/OC/query-string.js +++ b/core/src/OC/query-string.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/requesttoken.js b/core/src/OC/requesttoken.js index f532b6f19d6..eba15e88e08 100644 --- a/core/src/OC/requesttoken.js +++ b/core/src/OC/requesttoken.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/routing.js b/core/src/OC/routing.js index b978d92c500..8752aa3883e 100644 --- a/core/src/OC/routing.js +++ b/core/src/OC/routing.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/theme.js b/core/src/OC/theme.js index 1af0f721475..b7fcfd8ce4d 100644 --- a/core/src/OC/theme.js +++ b/core/src/OC/theme.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/util-history.js b/core/src/OC/util-history.js index 64d15997ecc..a7398b4a2fc 100644 --- a/core/src/OC/util-history.js +++ b/core/src/OC/util-history.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/util.js b/core/src/OC/util.js index e3e3e2a3171..e1a2f8f0687 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -28,7 +28,7 @@ import OC from './index' import { formatFileSize as humanFileSize } from '@nextcloud/files' /** - * @param t + * @param {any} t - */ function chunkify(t) { // Adapted from http://my.opera.com/GreyWyvern/blog/show.dml/1671288 @@ -148,7 +148,7 @@ export default { /** * Returns the width of a generic browser scrollbar * - * @return {int} width of scrollbar + * @return {number} width of scrollbar */ getScrollBarWidth() { if (this._scrollBarWidth) { @@ -230,7 +230,7 @@ export default { * Calls the callback in a given interval until it returns true * * @param {Function} callback function to call on success - * @param {integer} interval in milliseconds + * @param {number} interval in milliseconds */ waitFor(callback, interval) { const internalCallback = function() { diff --git a/core/src/OC/webroot.js b/core/src/OC/webroot.js index 41752bc0c78..f5d063d6b50 100644 --- a/core/src/OC/webroot.js +++ b/core/src/OC/webroot.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OC/xhr-error.js b/core/src/OC/xhr-error.js index 3bf31e649e8..990340a1fda 100644 --- a/core/src/OC/xhr-error.js +++ b/core/src/OC/xhr-error.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OCA/index.js b/core/src/OCA/index.js index 1db47ba0d31..1fde0dc5918 100644 --- a/core/src/OCA/index.js +++ b/core/src/OCA/index.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OCA/search.js b/core/src/OCA/search.js index 909ec28480f..10b629a0cf3 100644 --- a/core/src/OCA/search.js +++ b/core/src/OCA/search.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OCP/appconfig.js b/core/src/OCP/appconfig.js index b4062bdf850..57e13048fe0 100644 --- a/core/src/OCP/appconfig.js +++ b/core/src/OCP/appconfig.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -33,7 +33,6 @@ import OC from '../OC/index' * @param {object} [options.data] option data * @param {Function} [options.success] success callback * @param {Function} [options.error] error callback - * @internal */ function call(method, endpoint, options) { if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) { diff --git a/core/src/OCP/collaboration.js b/core/src/OCP/collaboration.js index 129440033e3..2e49cebe9f1 100644 --- a/core/src/OCP/collaboration.js +++ b/core/src/OCP/collaboration.js @@ -4,7 +4,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -25,7 +25,7 @@ import escapeHTML from 'escape-html' /** * @typedef TypeDefinition - * @function {callback} action This action is executed to let the user select a resource + * @function {Function} action This action is executed to let the user select a resource * @param {string} icon Contains the icon css class for the type * @function Object() { [native code] } */ diff --git a/core/src/OCP/comments.js b/core/src/OCP/comments.js index 9f30557d231..ed7ac67a073 100644 --- a/core/src/OCP/comments.js +++ b/core/src/OCP/comments.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -26,7 +26,7 @@ import $ from 'jquery' /* * Detects links: * Either the http(s) protocol is given or two strings, basically limited to ascii with the last - * word being at least one digit long, + * word being at least one digit long, * followed by at least another character * * The downside: anything not ascii is excluded. Not sure how common it is in areas using different @@ -35,21 +35,21 @@ import $ from 'jquery' const urlRegex = /(\s|^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig /** - * @param content + * @param {any} content - */ export function plainToRich(content) { return this.formatLinksRich(content) } /** - * @param content + * @param {any} content - */ export function richToPlain(content) { return this.formatLinksPlain(content) } /** - * @param content + * @param {any} content - */ export function formatLinksRich(content) { return content.replace(urlRegex, function(_, leadingSpace, protocol, url, trailingSpace) { @@ -65,7 +65,7 @@ export function formatLinksRich(content) { } /** - * @param content + * @param {any} content - */ export function formatLinksPlain(content) { const $content = $('<div></div>').html(content) diff --git a/core/src/OCP/index.js b/core/src/OCP/index.js index cb524a2be70..a6a5fe3e127 100644 --- a/core/src/OCP/index.js +++ b/core/src/OCP/index.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OCP/loader.js b/core/src/OCP/loader.js index 354475b7fc1..6e58208a849 100644 --- a/core/src/OCP/loader.js +++ b/core/src/OCP/loader.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OCP/toast.js b/core/src/OCP/toast.js index ad1c572e0a1..40c46aa8f51 100644 --- a/core/src/OCP/toast.js +++ b/core/src/OCP/toast.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/OCP/whatsnew.js b/core/src/OCP/whatsnew.js index d125f85e11a..aafe1740e0d 100644 --- a/core/src/OCP/whatsnew.js +++ b/core/src/OCP/whatsnew.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -26,7 +26,7 @@ import $ from 'jquery' import { generateOcsUrl } from '@nextcloud/router' /** - * @param options + * @param {any} options - */ export function query(options) { options = options || {} @@ -42,8 +42,8 @@ export function query(options) { } /** - * @param version - * @param options + * @param {any} version - + * @param {any} options - */ export function dismiss(version, options) { options = options || {} @@ -59,10 +59,10 @@ export function dismiss(version, options) { } /** - * @param data - * @param statusText - * @param xhr - * @param dismissOptions + * @param {any} data - + * @param {any} statusText - + * @param {any} xhr - + * @param {any} dismissOptions - */ function onQuerySuccess(data, statusText, xhr, dismissOptions) { console.debug('querying Whats New data was successful: ' + statusText) @@ -145,9 +145,9 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { } /** - * @param x - * @param t - * @param e + * @param {any} x - + * @param {any} t - + * @param {any} e - */ function onQueryError(x, t, e) { console.debug('querying Whats New Data resulted in an error: ' + t + e) @@ -155,14 +155,14 @@ function onQueryError(x, t, e) { } /** - * @param data + * @param {any} data - */ function onDismissSuccess(data) { // noop } /** - * @param data + * @param {any} data - */ function onDismissError(data) { console.debug('dismissing Whats New data resulted in an error: ' + data) diff --git a/core/src/Polyfill/closest.js b/core/src/Polyfill/closest.js index 059f981e973..68751fad38c 100644 --- a/core/src/Polyfill/closest.js +++ b/core/src/Polyfill/closest.js @@ -3,7 +3,7 @@ * * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/Polyfill/console.js b/core/src/Polyfill/console.js index 0659cd6dc42..be3aca1a9b3 100644 --- a/core/src/Polyfill/console.js +++ b/core/src/Polyfill/console.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/Polyfill/index.js b/core/src/Polyfill/index.js index 57a1f516695..34af68ef262 100644 --- a/core/src/Polyfill/index.js +++ b/core/src/Polyfill/index.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/Polyfill/tooltip.js b/core/src/Polyfill/tooltip.js index a5a1416521b..452cb30305b 100644 --- a/core/src/Polyfill/tooltip.js +++ b/core/src/Polyfill/tooltip.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/Polyfill/windows-phone.js b/core/src/Polyfill/windows-phone.js index 6bb01888c43..27b45d701c6 100644 --- a/core/src/Polyfill/windows-phone.js +++ b/core/src/Polyfill/windows-phone.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/Util/get-url-parameter.js b/core/src/Util/get-url-parameter.js index 32214d6bfe3..00fa66a9eb3 100644 --- a/core/src/Util/get-url-parameter.js +++ b/core/src/Util/get-url-parameter.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -22,7 +22,7 @@ */ /** - * @param name + * @param {any} name - */ export default function getURLParameter(name) { return decodeURIComponent( diff --git a/core/src/components/ContactsMenu.js b/core/src/components/ContactsMenu.js index a2e09341067..cf031331a50 100644 --- a/core/src/components/ContactsMenu.js +++ b/core/src/components/ContactsMenu.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/components/MainMenu.js b/core/src/components/MainMenu.js index 3b5aa19245e..3b7fef6afca 100644 --- a/core/src/components/MainMenu.js +++ b/core/src/components/MainMenu.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Julius Härtl <jus@bitgrid.net> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/components/UserMenu.js b/core/src/components/UserMenu.js index aaecec546b9..ef80eb1e338 100644 --- a/core/src/components/UserMenu.js +++ b/core/src/components/UserMenu.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/files/client.js b/core/src/files/client.js index 679457e38cf..630e9fb98ad 100644 --- a/core/src/files/client.js +++ b/core/src/files/client.js @@ -13,7 +13,7 @@ * @author Vincent Petry <vincent@nextcloud.com> * @author Vinicius Cubas Brand <vinicius@eita.org.br> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -42,7 +42,7 @@ import escapeHTML from 'escape-html' * * @param {Object} options * @param {String} options.host host name - * @param {int} [options.port] port + * @param {number} [options.port] port * @param {boolean} [options.useHTTPS] whether to use https * @param {String} [options.root] root path * @param {String} [options.userName] user name @@ -449,7 +449,7 @@ import escapeHTML from 'escape-html' /** * Returns whether the given status code means success * - * @param {int} status status code + * @param {number} status status code * * @returns true if status code is between 200 and 299 included */ @@ -546,7 +546,7 @@ import escapeHTML from 'escape-html' * * @param {Object} filter filter criteria * @param {Object} [filter.systemTagIds] list of system tag ids to filter by - * @param {bool} [filter.favorite] set it to filter by favorites + * @param {boolean} [filter.favorite] set it to filter by favorites * @param {Object} [options] options * @param {Array} [options.properties] list of Webdav properties to retrieve * @@ -698,7 +698,7 @@ import escapeHTML from 'escape-html' * @param {String} body file body * @param {Object} [options] * @param {String} [options.contentType='text/plain'] content type - * @param {bool} [options.overwrite=true] whether to overwrite an existing file + * @param {boolean} [options.overwrite=true] whether to overwrite an existing file * * @returns {Promise} */ diff --git a/core/src/files/fileinfo.js b/core/src/files/fileinfo.js index 936c3c0331b..ea49e8c1447 100644 --- a/core/src/files/fileinfo.js +++ b/core/src/files/fileinfo.js @@ -6,7 +6,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/globals.js b/core/src/globals.js index 45a2fba3dd4..59343511bee 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -6,7 +6,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -69,7 +69,7 @@ const warnIfNotTesting = function() { * * @param {Function} func the library to deprecate * @param {string} funcName the name of the library - * @param {Int} version the version this gets removed + * @param {number} version the version this gets removed * @return {Function} */ const deprecate = (func, funcName, version) => { diff --git a/core/src/init.js b/core/src/init.js index 077d18efd27..07cc5c87542 100644 --- a/core/src/init.js +++ b/core/src/init.js @@ -7,7 +7,7 @@ * @author nacho <nacho@ownyourbits.com> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/install.js b/core/src/install.js index a8d3ed7afc0..51358e6f70d 100644 --- a/core/src/install.js +++ b/core/src/install.js @@ -5,7 +5,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author Richard Steinmetz <richard@steinmetz.cloud> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/avatar.js b/core/src/jquery/avatar.js index 3849af3b359..12fcc7264ae 100644 --- a/core/src/jquery/avatar.js +++ b/core/src/jquery/avatar.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/contactsmenu.js b/core/src/jquery/contactsmenu.js index ed05d4602a7..85a5c280d34 100644 --- a/core/src/jquery/contactsmenu.js +++ b/core/src/jquery/contactsmenu.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/exists.js b/core/src/jquery/exists.js index 4006982a8b6..0f545cc8107 100644 --- a/core/src/jquery/exists.js +++ b/core/src/jquery/exists.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -27,7 +27,7 @@ import $ from 'jquery' * check if an element exists. * allows you to write if ($('#myid').exists()) to increase readability * - * @link http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery + * @see {@link http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery} * @return {boolean} */ $.fn.exists = function() { diff --git a/core/src/jquery/filterattr.js b/core/src/jquery/filterattr.js index fb8d45c4dd3..44aad5b8ea2 100644 --- a/core/src/jquery/filterattr.js +++ b/core/src/jquery/filterattr.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -28,7 +28,7 @@ import $ from 'jquery' * * @param {string} attrName attribute name * @param {string} attrValue attribute value - * @return {Void} + * @return {void} */ $.fn.filterAttr = function(attrName, attrValue) { return this.filter(function() { diff --git a/core/src/jquery/index.js b/core/src/jquery/index.js index c8ab1a7f673..305b038ce37 100644 --- a/core/src/jquery/index.js +++ b/core/src/jquery/index.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 14abd5aa666..4148c16e92b 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -6,7 +6,7 @@ * @author Joas Schilling <coding@schilljs.com> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/octemplate.js b/core/src/jquery/octemplate.js index 9e060881e21..7bf9f8dcb19 100644 --- a/core/src/jquery/octemplate.js +++ b/core/src/jquery/octemplate.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -65,14 +65,14 @@ import escapeHTML from 'escape-html' * var contacts = // fetched in some ajax call * * $.each(contacts, function(idx, contact) { - * $contactList.append( - * $tmpl.octemplate({ - * id: contact.getId(), - * name: contact.getDisplayName(), - * email: contact.getPreferredEmail(), - * phone: contact.getPreferredPhone(), - * }); - * ); + * $contactList.append( + * $tmpl.octemplate({ + * id: contact.getId(), + * name: contact.getDisplayName(), + * email: contact.getPreferredEmail(), + * phone: contact.getPreferredPhone(), + * }); + * ); * }); */ /** diff --git a/core/src/jquery/placeholder.js b/core/src/jquery/placeholder.js index 001e71f102c..03647059131 100644 --- a/core/src/jquery/placeholder.js +++ b/core/src/jquery/placeholder.js @@ -7,7 +7,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author Sergey Shliakhov <husband.sergey@gmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/requesttoken.js b/core/src/jquery/requesttoken.js index 65d4ac01a48..07524966994 100644 --- a/core/src/jquery/requesttoken.js +++ b/core/src/jquery/requesttoken.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/jquery/selectrange.js b/core/src/jquery/selectrange.js index b8f0d3dc122..713fd1edf8d 100644 --- a/core/src/jquery/selectrange.js +++ b/core/src/jquery/selectrange.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -26,10 +26,10 @@ import $ from 'jquery' /** * select a range in an input field * - * @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area - * @param {int} start start selection from - * @param {int} end number of char from start - * @return {Void} + * @see {@link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area} + * @param {number} start start selection from + * @param {number} end number of char from start + * @return {void} */ $.fn.selectRange = function(start, end) { return this.each(function() { diff --git a/core/src/jquery/showpassword.js b/core/src/jquery/showpassword.js index 3423ea5fc17..a00a57cc867 100644 --- a/core/src/jquery/showpassword.js +++ b/core/src/jquery/showpassword.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -23,20 +23,19 @@ import $ from 'jquery' -/* -* @name Show Password -* @description -* @version 1.3 -* @requires Jquery 1.5 -* -* @author Jan Jarfalk -* @author-email jan.jarfalk@unwrongest.com -* @author-website http://www.unwrongest.com -* -* @special-thanks Michel Gratton -* -* @licens MIT License - http://www.opensource.org/licenses/mit-license.php -*/ +/** + * @name Show Password + * @description + * @version 1.3.0 + * @requires Jquery 1.5 + * + * @author Jan Jarfalk <jan.jarfalk@unwrongest.com> + * author-website http://www.unwrongest.com + * + * special-thanks Michel Gratton + * + * @license MIT + */ $.fn.extend({ showPassword(c) { diff --git a/core/src/jquery/ui-fixes.js b/core/src/jquery/ui-fixes.js index 39da7084e44..ab4235d9b53 100644 --- a/core/src/jquery/ui-fixes.js +++ b/core/src/jquery/ui-fixes.js @@ -4,7 +4,7 @@ * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/logger.js b/core/src/logger.js index edf2e35e2b7..593cc071850 100644 --- a/core/src/logger.js +++ b/core/src/logger.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/login.js b/core/src/login.js index 13f6bfb86c9..6757c5e7bdd 100644 --- a/core/src/login.js +++ b/core/src/login.js @@ -6,7 +6,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/main.js b/core/src/main.js index 25316952866..f9d89327a6a 100644 --- a/core/src/main.js +++ b/core/src/main.js @@ -6,7 +6,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/maintenance.js b/core/src/maintenance.js index b49fcd8d83c..3c13a45894c 100644 --- a/core/src/maintenance.js +++ b/core/src/maintenance.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/mixins/Nextcloud.js b/core/src/mixins/Nextcloud.js index d1307f90e8e..7fda65d3d9d 100644 --- a/core/src/mixins/Nextcloud.js +++ b/core/src/mixins/Nextcloud.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/profile.js b/core/src/profile.js index 4e99a11b0e2..b1e58a2b467 100644 --- a/core/src/profile.js +++ b/core/src/profile.js @@ -3,7 +3,7 @@ * * @author Christopher Ng <chrng8@gmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/recommendedapps.js b/core/src/recommendedapps.js index 31d0e5c932c..89e8b930827 100644 --- a/core/src/recommendedapps.js +++ b/core/src/recommendedapps.js @@ -3,7 +3,7 @@ * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js index 1c2b5d617c8..85526adffa2 100644 --- a/core/src/services/UnifiedSearchService.js +++ b/core/src/services/UnifiedSearchService.js @@ -6,7 +6,7 @@ * @author Joas Schilling <coding@schilljs.com> * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -35,14 +35,14 @@ export const regexFilterNot = /-in:([a-z_-]+)/ig /** * Create a cancel token * - * @return {CancelTokenSource} + * @return {import('axios').CancelTokenSource} */ const createCancelToken = () => axios.CancelToken.source() /** * Get the list of available search providers * - * @return {Array} + * @return {Promise<Array>} */ export async function getTypes() { try { @@ -68,7 +68,7 @@ export async function getTypes() { * @param {object} options destructuring object * @param {string} options.type the type to search * @param {string} options.query the search - * @param {int|string|undefined} options.cursor the offset for paginated searches + * @param {number|string|undefined} options.cursor the offset for paginated searches * @return {object} {request: Promise, cancel: Promise} */ export function search({ type, query, cursor }) { diff --git a/core/src/services/WebAuthnAuthenticationService.js b/core/src/services/WebAuthnAuthenticationService.js index 1e33dc78b3b..3eabceef5e4 100644 --- a/core/src/services/WebAuthnAuthenticationService.js +++ b/core/src/services/WebAuthnAuthenticationService.js @@ -3,7 +3,7 @@ * * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -24,7 +24,7 @@ import Axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' /** - * @param loginName + * @param {any} loginName - */ export function startAuthentication(loginName) { const url = generateUrl('/login/webauthn/start') @@ -34,7 +34,7 @@ export function startAuthentication(loginName) { } /** - * @param data + * @param {any} data - */ export function finishAuthentication(data) { const url = generateUrl('/login/webauthn/finish') diff --git a/core/src/session-heartbeat.js b/core/src/session-heartbeat.js index 3dc6792f522..4a15d7d2de9 100644 --- a/core/src/session-heartbeat.js +++ b/core/src/session-heartbeat.js @@ -6,7 +6,7 @@ * @author Julius Härtl <jus@bitgrid.net> * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/systemtags/merged-systemtags.js b/core/src/systemtags/merged-systemtags.js index 1dc8be0ae62..87b0a7da378 100644 --- a/core/src/systemtags/merged-systemtags.js +++ b/core/src/systemtags/merged-systemtags.js @@ -3,7 +3,7 @@ * * @author Roeland Jago Douma <roeland@famdouma.nl> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/systemtags/systemtagmodel.js b/core/src/systemtags/systemtagmodel.js index 588d6a26fc2..72f2d6f0915 100644 --- a/core/src/systemtags/systemtagmodel.js +++ b/core/src/systemtags/systemtagmodel.js @@ -6,7 +6,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/systemtags/systemtags.js b/core/src/systemtags/systemtags.js index 6254941296c..91ace6b3425 100644 --- a/core/src/systemtags/systemtags.js +++ b/core/src/systemtags/systemtags.js @@ -7,7 +7,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/systemtags/systemtagscollection.js b/core/src/systemtags/systemtagscollection.js index 5e6c43314e1..685eb65182a 100644 --- a/core/src/systemtags/systemtagscollection.js +++ b/core/src/systemtags/systemtagscollection.js @@ -4,7 +4,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -61,7 +61,7 @@ * Lazy fetch. * Only fetches once, subsequent calls will directly call the success handler. * - * @param options + * @param {any} options - * @param [options.force] true to force fetch even if cached entries exist * * @see Backbone.Collection#fetch diff --git a/core/src/systemtags/systemtagsinputfield.js b/core/src/systemtags/systemtagsinputfield.js index f0aac9381d6..e1bbf5a34c6 100644 --- a/core/src/systemtags/systemtagsinputfield.js +++ b/core/src/systemtags/systemtagsinputfield.js @@ -6,7 +6,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -57,10 +57,10 @@ import templateSelection from './templates/selection.handlebars' * * @param {Object} [options] * @param {string} [options.objectType=files] object type for which tags are assigned to - * @param {bool} [options.multiple=false] whether to allow selecting multiple tags - * @param {bool} [options.allowActions=true] whether tags can be renamed/delete within the dropdown - * @param {bool} [options.allowCreate=true] whether new tags can be created - * @param {bool} [options.isAdmin=true] whether the user is an administrator + * @param {boolean} [options.multiple=false] whether to allow selecting multiple tags + * @param {boolean} [options.allowActions=true] whether tags can be renamed/delete within the dropdown + * @param {boolean} [options.allowCreate=true] whether new tags can be created + * @param {boolean} [options.isAdmin=true] whether the user is an administrator * @param {Function} options.initSelection function to convert selection to data */ initialize: function(options) { diff --git a/core/src/systemtags/systemtagsmappingcollection.js b/core/src/systemtags/systemtagsmappingcollection.js index f47b6a81ec2..f7e9e9cfe40 100644 --- a/core/src/systemtags/systemtagsmappingcollection.js +++ b/core/src/systemtags/systemtagsmappingcollection.js @@ -5,7 +5,7 @@ * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Vincent Petry <vincent@nextcloud.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -65,7 +65,7 @@ import { generateRemoteUrl } from '@nextcloud/router' /** * Sets the object id to filter by or null for all. * - * @param {int} objectId file id or null + * @param {number} objectId file id or null */ setObjectId(objectId) { this._objectId = objectId @@ -74,7 +74,7 @@ import { generateRemoteUrl } from '@nextcloud/router' /** * Sets the object type to filter by or null for all. * - * @param {int} objectType file id or null + * @param {number} objectType file id or null */ setObjectType(objectType) { this._objectType = objectType diff --git a/core/src/tests/.eslintrc.js b/core/src/tests/.eslintrc.js index 1559824cbcd..b44ea2c697d 100644 --- a/core/src/tests/.eslintrc.js +++ b/core/src/tests/.eslintrc.js @@ -3,7 +3,7 @@ * * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/tests/OC/requesttoken.spec.js b/core/src/tests/OC/requesttoken.spec.js index fb550a93ebe..741dc65746b 100644 --- a/core/src/tests/OC/requesttoken.spec.js +++ b/core/src/tests/OC/requesttoken.spec.js @@ -5,7 +5,7 @@ * @author John Molakvoæ <skjnldsv@protonmail.com> * @author François Freitag <mail@franek.fr> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/core/src/unified-search.js b/core/src/unified-search.js index 91db8b34dd0..cc390c0d6e7 100644 --- a/core/src/unified-search.js +++ b/core/src/unified-search.js @@ -3,7 +3,7 @@ * * @author John Molakvoæ <skjnldsv@protonmail.com> * - * @license GNU AGPL version 3 or any later version + * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as |