summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 14:16:47 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-11 17:13:04 +0100
commit9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe (patch)
tree849ea6916ae25665bd1436a2d87db961ca67344d /apps
parentd92cbf51493f0aa15745d2f9545cba2372eecec3 (diff)
downloadnextcloud-server-9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe.tar.gz
nextcloud-server-9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe.zip
Add generic type and description when its missing
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/src/services/GetComments.js8
-rw-r--r--apps/dav/src/service/CalendarService.js4
-rw-r--r--apps/files/js/filelist.js8
-rw-r--r--apps/files/src/services/FileInfo.js2
-rw-r--r--apps/files_external/js/statusmanager.js4
-rw-r--r--apps/files_sharing/js/public.js12
-rw-r--r--apps/settings/js/settings/personalInfo.js2
-rw-r--r--apps/settings/src/service/WebAuthnRegistrationSerice.js6
-rw-r--r--apps/settings/src/store/users.js9
-rw-r--r--apps/systemtags/src/systemtagsfilelist.js2
-rw-r--r--apps/systemtags/src/systemtagsinfoview.js2
-rw-r--r--apps/twofactor_backupcodes/src/service/PrintService.js2
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAdvanced.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardTabElementary.js8
-rw-r--r--apps/user_ldap/js/wizard/wizardTabExpert.js4
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardTabLoginFilter.js6
-rw-r--r--apps/user_status/src/store/predefinedStatuses.js2
18 files changed, 46 insertions, 47 deletions
diff --git a/apps/comments/src/services/GetComments.js b/apps/comments/src/services/GetComments.js
index bfce1bf9f9b..71cde8922f5 100644
--- a/apps/comments/src/services/GetComments.js
+++ b/apps/comments/src/services/GetComments.js
@@ -65,8 +65,8 @@ export default async function({ commentsType, ressourceId }, options = {}) {
// https://github.com/perry-mitchell/webdav-client/blob/9de2da4a2599e06bd86c2778145b7ade39fe0b3c/source/interface/directoryContents.js#L32
/**
- * @param result
- * @param isDetailed
+ * @param {any} result -
+ * @param {any} isDetailed -
*/
function processMultistatus(result, isDetailed = false) {
// Extract the response items (directory contents)
@@ -91,8 +91,8 @@ function processMultistatus(result, isDetailed = false) {
}
/**
- * @param value
- * @param passes
+ * @param {any} value -
+ * @param {any} passes -
*/
function decodeHtmlEntities(value, passes = 1) {
const parser = new DOMParser()
diff --git a/apps/dav/src/service/CalendarService.js b/apps/dav/src/service/CalendarService.js
index 9de0d0b5946..afef4bc2263 100644
--- a/apps/dav/src/service/CalendarService.js
+++ b/apps/dav/src/service/CalendarService.js
@@ -108,8 +108,8 @@ export async function findScheduleInboxAvailability() {
}
/**
- * @param slots
- * @param timezoneId
+ * @param {any} slots -
+ * @param {any} timezoneId -
*/
export async function saveScheduleInboxAvailability(slots, timezoneId) {
const all = [...Object.keys(slots).flatMap(dayId => slots[dayId].map(slot => ({
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index fec058effd3..2a3bea1ca16 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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) {
@@ -3348,7 +3348,7 @@
},
/**
* hide files matching the given filter
- * @param filter
+ * @param {any} filter -
*/
setFilter:function(filter) {
var total = 0;
@@ -3413,7 +3413,7 @@
},
/**
* get the current filter
- * @param filter
+ * @param {any} filter -
*/
getFilter:function(filter) {
return this._filter;
diff --git a/apps/files/src/services/FileInfo.js b/apps/files/src/services/FileInfo.js
index a94436e16a5..0a83bd90a95 100644
--- a/apps/files/src/services/FileInfo.js
+++ b/apps/files/src/services/FileInfo.js
@@ -23,7 +23,7 @@
import axios from '@nextcloud/axios'
/**
- * @param url
+ * @param {any} url -
*/
export default async function(url) {
const response = await axios({
diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js
index a6fda3dc897..e80d764baa7 100644
--- a/apps/files_external/js/statusmanager.js
+++ b/apps/files_external/js/statusmanager.js
@@ -383,8 +383,8 @@ OCA.Files_External.StatusManager = {
/**
* Function to display custom dialog to enter credentials
- * @param mountPoint
- * @param mountData
+ * @param {any} mountPoint -
+ * @param {any} mountData -
*/
showCredentialsDialog: function (mountPoint, mountData) {
var dialog = $(OCA.Files_External.Templates.credentialsDialog({
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 3aa4ed78890..b31022fc2cc 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -377,12 +377,12 @@ OCA.Sharing.PublicApp = {
* fall back to old behaviour where we redirect the user to his server to mount
* the public link instead of creating a dedicated federated share
*
- * @param remote
- * @param token
- * @param owner
- * @param ownerDisplayName
- * @param name
- * @param isProtected
+ * @param {any} remote -
+ * @param {any} token -
+ * @param {any} owner -
+ * @param {any} ownerDisplayName -
+ * @param {any} name -
+ * @param {any} isProtected -
* @private
*/
_legacyCreateFederatedShare: function (remote, token, owner, ownerDisplayName, name, isProtected) {
diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js
index a4b1713c662..98a2dfe8d48 100644
--- a/apps/settings/js/settings/personalInfo.js
+++ b/apps/settings/js/settings/personalInfo.js
@@ -16,7 +16,7 @@ OC.Settings = OC.Settings || {};
* The callback will be fired as soon as enter is pressed by the
* user or 1 second after the last data entry
*
- * @param callback
+ * @param {any} callback -
* @param allowEmptyValue if this is set to true the callback is also called when the value is empty
*/
jQuery.fn.keyUpDelayedOrEnter = function (callback, allowEmptyValue) {
diff --git a/apps/settings/src/service/WebAuthnRegistrationSerice.js b/apps/settings/src/service/WebAuthnRegistrationSerice.js
index 91ee0dae2b2..d009c5eac67 100644
--- a/apps/settings/src/service/WebAuthnRegistrationSerice.js
+++ b/apps/settings/src/service/WebAuthnRegistrationSerice.js
@@ -34,8 +34,8 @@ export async function startRegistration() {
}
/**
- * @param name
- * @param data
+ * @param {any} name -
+ * @param {any} data -
*/
export async function finishRegistration(name, data) {
const url = generateUrl('/settings/api/personal/webauthn/registration')
@@ -45,7 +45,7 @@ export async function finishRegistration(name, data) {
}
/**
- * @param id
+ * @param {any} id -
*/
export async function removeRegistration(id) {
const url = generateUrl(`/settings/api/personal/webauthn/registration/${id}`)
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js
index d898e647d32..dbbe038d4fd 100644
--- a/apps/settings/src/store/users.js
+++ b/apps/settings/src/store/users.js
@@ -278,7 +278,7 @@ const actions = {
* @param {object} options destructuring object
* @param {number} options.offset List offset to request
* @param {number} options.limit List number to return from offset
- * @param options.search
+ * @param {string} options.search -
* @return {Promise}
*/
getUsersFromList(context, { offset, limit, search }) {
@@ -301,7 +301,7 @@ const actions = {
* @param {object} options destructuring object
* @param {number} options.offset List offset to request
* @param {number} options.limit List number to return from offset
- * @param options.groupid
+ * @param {string} options.groupid -
* @return {Promise}
*/
getUsersFromGroup(context, { groupid, offset, limit }) {
@@ -462,8 +462,8 @@ const actions = {
* Add a user
*
* @param {object} context store context
- * @param {Function} context.commit
- * @param {Function} context.dispatch
+ * @param {Function} context.commit -
+ * @param {Function} context.dispatch -
* @param {object} options destructuring object
* @param {string} options.userid User id
* @param {string} options.password User password
@@ -473,7 +473,6 @@ const actions = {
* @param {string} options.subadmin User subadmin groups
* @param {string} options.quota User email
* @param {string} options.language User language
- * @param options.language
* @return {Promise}
*/
addUser({ commit, dispatch }, { userid, password, displayName, email, groups, subadmin, quota, language }) {
diff --git a/apps/systemtags/src/systemtagsfilelist.js b/apps/systemtags/src/systemtagsfilelist.js
index 4821f140222..024cab966c3 100644
--- a/apps/systemtags/src/systemtagsfilelist.js
+++ b/apps/systemtags/src/systemtagsfilelist.js
@@ -48,7 +48,7 @@
/**
* Array of system tag ids to filter by
*
- * @type Array.<string>
+ * @type {Array.<string>}
*/
_systemTagIds: [],
_lastUsedTags: [],
diff --git a/apps/systemtags/src/systemtagsinfoview.js b/apps/systemtags/src/systemtagsinfoview.js
index 353f8d555f9..d210304e920 100644
--- a/apps/systemtags/src/systemtagsinfoview.js
+++ b/apps/systemtags/src/systemtagsinfoview.js
@@ -27,7 +27,7 @@
(function(OCA) {
/**
- * @param model
+ * @param {any} model -
*/
function modelToSelection(model) {
const data = model.toJSON()
diff --git a/apps/twofactor_backupcodes/src/service/PrintService.js b/apps/twofactor_backupcodes/src/service/PrintService.js
index e8b31516532..c3f281d3f9e 100644
--- a/apps/twofactor_backupcodes/src/service/PrintService.js
+++ b/apps/twofactor_backupcodes/src/service/PrintService.js
@@ -22,7 +22,7 @@
*/
/**
- * @param data
+ * @param {any} data -
*/
export function print(data) {
const name = OC.theme.name || 'Nextcloud'
diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
index 1545147f64c..be98072dcb3 100644
--- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js
+++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
@@ -17,8 +17,8 @@ OCA = OCA || {};
/**
* initializes the instance. Always call it after initialization.
*
- * @param tabIndex
- * @param tabID
+ * @param {any} tabIndex -
+ * @param {any} tabID -
*/
init: function (tabIndex, tabID) {
this._super(tabIndex, tabID);
@@ -281,7 +281,7 @@ OCA = OCA || {};
setDynamicGroupMemberURL: function(attribute) {
this.setElementValue(this.managedItems.ldap_dynamic_group_member_url.$element, attribute);
},
-
+
/**
* enabled or disables the use of nested groups (groups in groups in
* groups…)
diff --git a/apps/user_ldap/js/wizard/wizardTabElementary.js b/apps/user_ldap/js/wizard/wizardTabElementary.js
index 24e76bd84c7..7dbb9998064 100644
--- a/apps/user_ldap/js/wizard/wizardTabElementary.js
+++ b/apps/user_ldap/js/wizard/wizardTabElementary.js
@@ -22,8 +22,8 @@ OCA = OCA || {};
/**
* initializes the instance. Always call it after initialization.
*
- * @param tabIndex
- * @param tabID
+ * @param {any} tabIndex -
+ * @param {any} tabID -
*/
init: function (tabIndex, tabID) {
tabIndex = 0;
@@ -245,8 +245,8 @@ OCA = OCA || {};
* updates the configuration chooser upon the deletion of a
* configuration and, if necessary, loads an existing one.
*
- * @param view
- * @param result
+ * @param {any} view -
+ * @param {any} result -
*/
onDeleteConfiguration: function(view, result) {
if(result.isSuccess === true) {
diff --git a/apps/user_ldap/js/wizard/wizardTabExpert.js b/apps/user_ldap/js/wizard/wizardTabExpert.js
index 634d30212ac..61a1b8c9aa3 100644
--- a/apps/user_ldap/js/wizard/wizardTabExpert.js
+++ b/apps/user_ldap/js/wizard/wizardTabExpert.js
@@ -17,8 +17,8 @@ OCA = OCA || {};
/**
* initializes the instance. Always call it after initialization.
*
- * @param tabIndex
- * @param tabID
+ * @param {any} tabIndex -
+ * @param {any} tabID -
*/
init: function (tabIndex, tabID) {
this._super(tabIndex, tabID);
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js
index b68c399f992..89ae257d368 100644
--- a/apps/user_ldap/js/wizard/wizardTabGeneric.js
+++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js
@@ -147,8 +147,8 @@ OCA = OCA || {};
/**
* displays server error messages.
*
- * @param view
- * @param payload
+ * @param {any} view -
+ * @param {any} payload -
*/
onServerError: function(view, payload) {
if ( !_.isUndefined(view.managedItems[payload.relatedKey])) {
@@ -456,7 +456,7 @@ OCA = OCA || {};
* sets the filter mode initially and resets the "isToggling" marker.
* This method is called after a save operation against the mode key.
*
- * @param mode
+ * @param {any} mode -
*/
setFilterModeOnce: function(mode) {
this.isToggling = false;
diff --git a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
index a0362c3ba93..774c02dbf4a 100644
--- a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
@@ -16,8 +16,8 @@ OCA = OCA || {};
/**
* initializes the instance. Always call it after initialization.
*
- * @param tabIndex
- * @param tabID
+ * @param {any} tabIndex -
+ * @param {any} tabID -
*/
init: function (tabIndex, tabID) {
this._super(tabIndex, tabID);
@@ -134,7 +134,7 @@ OCA = OCA || {};
/**
* presents the result of the login name test
*
- * @param result
+ * @param {any} result -
*/
handleLoginTestResult: function(result) {
var message;
diff --git a/apps/user_status/src/store/predefinedStatuses.js b/apps/user_status/src/store/predefinedStatuses.js
index aa05f8e54af..769e978227c 100644
--- a/apps/user_status/src/store/predefinedStatuses.js
+++ b/apps/user_status/src/store/predefinedStatuses.js
@@ -48,7 +48,7 @@ const actions = {
*
* @param {object} vuex The Vuex components
* @param {Function} vuex.commit The Vuex commit function
- * @param vuex.state
+ * @param {object} vuex.state -
*/
async loadAllPredefinedStatuses({ state, commit }) {
if (state.predefinedStatuses.length > 0) {