diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-01-12 15:48:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 15:48:36 +0100 |
commit | 2e1491771e47eb02d297215eba6e6ce0019fc9c1 (patch) | |
tree | f327c9ae125cbddd86a1da588b3562d08b3bbe65 /apps/files/js | |
parent | db9fbc93072049b8816a683ca015ba53976db03a (diff) | |
parent | bfdfafde79a17b1683467c800cf2a63ba14fb1a0 (diff) | |
download | nextcloud-server-2e1491771e47eb02d297215eba6e6ce0019fc9c1.tar.gz nextcloud-server-2e1491771e47eb02d297215eba6e6ce0019fc9c1.zip |
Merge pull request #30572 from nextcloud/fix/lint_warnings
Fix lint warnings
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/app.js | 2 | ||||
-rw-r--r-- | apps/files/js/breadcrumb.js | 2 | ||||
-rw-r--r-- | apps/files/js/detailtabview.js | 2 | ||||
-rw-r--r-- | apps/files/js/file-upload.js | 12 | ||||
-rw-r--r-- | apps/files/js/fileactions.js | 10 | ||||
-rw-r--r-- | apps/files/js/fileinfomodel.js | 6 | ||||
-rw-r--r-- | apps/files/js/filelist.js | 28 | ||||
-rw-r--r-- | apps/files/js/files.js | 6 |
8 files changed, 34 insertions, 34 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js index d6b7a79b362..f7863de09be 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -187,7 +187,7 @@ * they have initialized themselves. Therefore the files list needs to call this * method manually * - * @param {OCA.Files.FileList} newFileList + * @param {OCA.Files.FileList} newFileList - */ updateCurrentFileList: function(newFileList) { this.currentFileList = newFileList; diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js index f0a4da2d6d9..383d3debd09 100644 --- a/apps/files/js/breadcrumb.js +++ b/apps/files/js/breadcrumb.js @@ -104,7 +104,7 @@ * Returns the full URL to the given directory * * @param {Object.<String, String>} part crumb data as map - * @param {int} index crumb index + * @param {number} index crumb index * @return full URL */ getCrumbUrl: function(part, index) { diff --git a/apps/files/js/detailtabview.js b/apps/files/js/detailtabview.js index 1e046f30246..dcb25190003 100644 --- a/apps/files/js/detailtabview.js +++ b/apps/files/js/detailtabview.js @@ -126,7 +126,7 @@ * the given file info, for example based on mime type. * * @param {OCA.Files.FileInfoModel} fileInfo file info model - * @return {bool} whether to display this tab + * @return {boolean} whether to display this tab */ canDisplay: function(fileInfo) { return true; diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 7ab88ed61bd..9f51f05d561 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -163,7 +163,7 @@ OC.FileUpload.prototype = { /** * Returns conflict resolution mode. * - * @return {int} conflict mode + * @return {number} conflict mode */ getConflictMode: function() { return this._conflictMode || OC.FileUpload.CONFLICT_MODE_DETECT; @@ -173,7 +173,7 @@ OC.FileUpload.prototype = { * Set conflict resolution mode. * See CONFLICT_MODE_* constants. * - * @param {int} mode conflict mode + * @param {number} mode conflict mode */ setConflictMode: function(mode) { this._conflictMode = mode; @@ -383,7 +383,7 @@ OC.FileUpload.prototype = { /** * Returns the status code from the response * - * @return {int} status code + * @return {number} status code */ getResponseStatus: function() { if (this.uploader.isXHRUpload()) { @@ -515,7 +515,7 @@ OC.Uploader.prototype = _.extend({ /** * Returns whether an XHR upload will be used * - * @return {bool} true if XHR upload will be used, + * @return {boolean} true if XHR upload will be used, * false for iframe upload */ isXHRUpload: function () { @@ -656,7 +656,7 @@ OC.Uploader.prototype = _.extend({ /** * Returns an upload by id * - * @param {int} data uploadId + * @param {number} data uploadId * @return {OC.FileUpload} file upload */ getUpload: function(data) { @@ -860,7 +860,7 @@ OC.Uploader.prototype = _.extend({ * Returns whether the given file is known to be a received shared file * * @param {Object} file file - * @return {bool} true if the file is a shared file + * @return {boolean} true if the file is a shared file */ _isReceivedSharedFile: function(file) { if (!window.FileList) { diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index d413bf7471b..505ab21c10c 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -191,7 +191,7 @@ * * @param {string} mime mime type * @param {string} type "dir" or "file" - * @param {int} permissions permissions + * @param {number} permissions permissions * @param {string} filename filename * * @return {Object.<string,OCA.Files.FileActions~actionHandler>} map of action name to action spec @@ -210,7 +210,7 @@ * * @param {string} mime mime type * @param {string} type "dir" or "file" - * @param {int} permissions permissions + * @param {number} permissions permissions * @param {string} filename filename * * @return {Array.<OCA.Files.FileAction>} array of action specs @@ -262,7 +262,7 @@ * * @param {string} mime mime type * @param {string} type "dir" or "file" - * @param {int} permissions permissions + * @param {number} permissions permissions * * @return {OCA.Files.FileActions~actionHandler} action handler * @@ -294,7 +294,7 @@ * * @param {string} mime mime type * @param {string} type "dir" or "file" - * @param {int} permissions permissions + * @param {number} permissions permissions * * @return {OCA.Files.FileActions~actionSpec} action spec * @since 8.2 @@ -797,7 +797,7 @@ * Defaults to the name given in name property * @property {String} mime mime type * @property {String} filename filename - * @property {int} permissions permissions + * @property {number} permissions permissions * @property {(Function|String)} icon icon path to the icon or function that returns it (deprecated, use iconClass instead) * @property {(String|OCA.Files.FileActions~iconClassFunction)} iconClass class name of the icon (recommended for theming) * @property {OCA.Files.FileActions~renderActionFunction} [render] optional rendering function diff --git a/apps/files/js/fileinfomodel.js b/apps/files/js/fileinfomodel.js index 2205c7e6477..8e7b399544c 100644 --- a/apps/files/js/fileinfomodel.js +++ b/apps/files/js/fileinfomodel.js @@ -15,14 +15,14 @@ * @classdesc File information * * @param {Object} attributes file data - * @param {int} attributes.id file id + * @param {number} attributes.id file id * @param {string} attributes.name file name * @param {string} attributes.path path leading to the file, * without the file name and with a leading slash - * @param {int} attributes.size size + * @param {number} attributes.size size * @param {string} attributes.mimetype mime type * @param {string} attributes.icon icon URL - * @param {int} attributes.permissions permissions + * @param {number} attributes.permissions permissions * @param {Date} attributes.mtime modification time * @param {string} attributes.etag etag * @param {string} mountType mount type diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index a653aac25b9..33e942bbc72 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -102,7 +102,7 @@ * Number of files per page * Always show a minimum of 1 * - * @return {int} page size + * @return {number} page size */ pageSize: function() { var isGridView = this.$showGridView.is(':checked'); @@ -803,7 +803,7 @@ * the internal selection cache. * * @param {Object} $tr single file row element - * @param {bool} state true to select, false to deselect + * @param {boolean} state true to select, false to deselect */ _selectFileEl: function($tr, state) { var $checkbox = $tr.find('td.selection>.selectCheckBox'); @@ -1203,7 +1203,7 @@ /** * Custom code * Set tag for all selected files - * @param tagModel + * @param {any} tagModel - * @private */ _onSelectTag: function(tagModel) { @@ -1221,7 +1221,7 @@ }, /** * remove tag from all selected files - * @param tagId + * @param {any} tagId - * @private */ _onDeselectTag: function(tagId) { @@ -1958,7 +1958,7 @@ * * @param {OC.Files.FileInfo} fileData map of file attributes * @param {Object} [options] map of attributes - * @param {int} [options.index] index at which to insert the element + * @param {number} [options.index] index at which to insert the element * @param {boolean} [options.updateSummary] true to update the summary * after adding (default), false otherwise. Defaults to true. * @param {boolean} [options.animate] true to animate the thumbnail image after load @@ -2351,8 +2351,8 @@ /** * Generates a preview URL based on the URL space. * @param urlSpec attributes for the URL - * @param {int} urlSpec.x width - * @param {int} urlSpec.y height + * @param {number} urlSpec.x width + * @param {number} urlSpec.y height * @param {String} urlSpec.file path to the file * @return preview URL */ @@ -3169,7 +3169,7 @@ * * @param {string} file file name * - * @return {bool} true if the file exists in the list, false otherwise + * @return {boolean} true if the file exists in the list, false otherwise */ inList:function(file) { return this.findFile(file); @@ -3179,7 +3179,7 @@ * Shows busy state on a given file row or multiple * * @param {string|Array.<string>} files file name or array of file names - * @param {bool} [busy=true] busy state, true for busy, false to remove busy state + * @param {boolean} [busy=true] busy state, true for busy, false to remove busy state * * @since 8.2 */ @@ -3351,7 +3351,7 @@ }, /** * hide files matching the given filter - * @param filter + * @param {any} filter - */ setFilter:function(filter) { var total = 0; @@ -3416,7 +3416,7 @@ }, /** * get the current filter - * @param filter + * @param {any} filter - */ getFilter:function(filter) { return this._filter; @@ -3955,7 +3955,7 @@ * * @param {OC.Files.FileInfo} fileInfo1 file info * @param {OC.Files.FileInfo} fileInfo2 file info - * @return {int} -1 if the first file must appear before the second one, + * @return {number} -1 if the first file must appear before the second one, * 0 if they are identify, 1 otherwise. */ name: function(fileInfo1, fileInfo2) { @@ -3972,7 +3972,7 @@ * * @param {OC.Files.FileInfo} fileInfo1 file info * @param {OC.Files.FileInfo} fileInfo2 file info - * @return {int} -1 if the first file must appear before the second one, + * @return {number} -1 if the first file must appear before the second one, * 0 if they are identify, 1 otherwise. */ size: function(fileInfo1, fileInfo2) { @@ -3983,7 +3983,7 @@ * * @param {OC.Files.FileInfo} fileInfo1 file info * @param {OC.Files.FileInfo} fileInfo2 file info - * @return {int} -1 if the first file must appear before the second one, + * @return {number} -1 if the first file must appear before the second one, * 0 if they are identify, 1 otherwise. */ mtime: function(fileInfo1, fileInfo2) { diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 4de3fb4352f..03778fb92f9 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -219,7 +219,7 @@ * Returns the download URL of the given file(s) * @param {string} filename string or array of file names to download * @param {string} [dir] optional directory in which the file name is, defaults to the current directory - * @param {bool} [isDir=false] whether the given filename is a directory and might need a special URL + * @param {boolean} [isDir=false] whether the given filename is a directory and might need a special URL */ getDownloadUrl: function(filename, dir, isDir) { if (!_.isArray(filename) && !isDir) { @@ -271,8 +271,8 @@ /** * Generates a preview URL based on the URL space. * @param urlSpec attributes for the URL - * @param {int} urlSpec.x width - * @param {int} urlSpec.y height + * @param {number} urlSpec.x width + * @param {number} urlSpec.y height * @param {String} urlSpec.file path to the file * @return preview URL * @deprecated used OCA.Files.FileList.generatePreviewUrl instead |