diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-12-02 20:32:57 +0300 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-01-08 12:14:05 +0300 |
commit | 74b980310852a0b406fa9d073870f92c409d5444 (patch) | |
tree | 055cbdf57886077bf3a6ea476813deedb54064e0 /apps/files_sharing/src/services | |
parent | 85bc8513557f5ff37fc283d53893d4cb77ec7c3b (diff) |
Eslint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/services')
4 files changed, 37 insertions, 37 deletions
diff --git a/apps/files_sharing/src/services/ConfigService.js b/apps/files_sharing/src/services/ConfigService.js index 4c8326b1570..919c0db7b36 100644 --- a/apps/files_sharing/src/services/ConfigService.js +++ b/apps/files_sharing/src/services/ConfigService.js @@ -27,7 +27,7 @@ export default class Config { /** * Is public upload allowed on link shares ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -39,7 +39,7 @@ export default class Config { /** * Are link share allowed ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -51,7 +51,7 @@ export default class Config { /** * Get the federated sharing documentation link * - * @returns {string} + * @return {string} * @readonly * @memberof Config */ @@ -62,7 +62,7 @@ export default class Config { /** * Get the default link share expiration date as string * - * @returns {string} + * @return {string} * @readonly * @memberof Config */ @@ -80,7 +80,7 @@ export default class Config { /** * Get the default internal expiration date as string * - * @returns {string} + * @return {string} * @readonly * @memberof Config */ @@ -98,7 +98,7 @@ export default class Config { /** * Get the default remote expiration date as string * - * @returns {string} + * @return {string} * @readonly * @memberof Config */ @@ -116,7 +116,7 @@ export default class Config { /** * Are link shares password-enforced ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -127,7 +127,7 @@ export default class Config { /** * Is password asked by default on link shares ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -138,7 +138,7 @@ export default class Config { /** * Is link shares expiration enforced ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -149,7 +149,7 @@ export default class Config { /** * Is there a default expiration date for new link shares ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -160,7 +160,7 @@ export default class Config { /** * Is internal shares expiration enforced ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -171,7 +171,7 @@ export default class Config { /** * Is remote shares expiration enforced ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -182,7 +182,7 @@ export default class Config { /** * Is there a default expiration date for new internal shares ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -193,7 +193,7 @@ export default class Config { /** * Are users on this server allowed to send shares to other servers ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -204,7 +204,7 @@ export default class Config { /** * Is sharing my mail (link share) enabled ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -219,7 +219,7 @@ export default class Config { /** * Get the default days to link shares expiration * - * @returns {int} + * @return {int} * @readonly * @memberof Config */ @@ -230,7 +230,7 @@ export default class Config { /** * Get the default days to internal shares expiration * - * @returns {int} + * @return {int} * @readonly * @memberof Config */ @@ -241,7 +241,7 @@ export default class Config { /** * Get the default days to remote shares expiration * - * @returns {int} + * @return {int} * @readonly * @memberof Config */ @@ -252,7 +252,7 @@ export default class Config { /** * Is resharing allowed ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -263,7 +263,7 @@ export default class Config { /** * Is password enforced for mail shares ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -272,7 +272,7 @@ export default class Config { } /** - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -283,7 +283,7 @@ export default class Config { /** * Is sharing with groups allowed ? * - * @returns {boolean} + * @return {boolean} * @readonly * @memberof Config */ @@ -294,7 +294,7 @@ export default class Config { /** * Get the maximum results of a share search * - * @returns {int} + * @return {int} * @readonly * @memberof Config */ @@ -306,7 +306,7 @@ export default class Config { * Get the minimal string length * to initiate a share search * - * @returns {int} + * @return {int} * @readonly * @memberof Config */ @@ -317,7 +317,7 @@ export default class Config { /** * Get the password policy config * - * @returns {Object} + * @return {object} * @readonly * @memberof Config */ diff --git a/apps/files_sharing/src/services/ExternalLinkActions.js b/apps/files_sharing/src/services/ExternalLinkActions.js index 3903bec643f..c9229d13163 100644 --- a/apps/files_sharing/src/services/ExternalLinkActions.js +++ b/apps/files_sharing/src/services/ExternalLinkActions.js @@ -38,7 +38,7 @@ export default class ExternalLinkActions { * * @readonly * @memberof ExternalLinkActions - * @returns {Object} the data state + * @return {object} the data state */ get state() { return this._state @@ -48,8 +48,8 @@ export default class ExternalLinkActions { * Register a new action for the link share * Mostly used by the social sharing app. * - * @param {Object} action new action component to register - * @returns {boolean} + * @param {object} action new action component to register + * @return {boolean} */ registerAction(action) { console.warn('OCA.Sharing.ExternalLinkActions is deprecated, use OCA.Sharing.ExternalShareAction instead') diff --git a/apps/files_sharing/src/services/ExternalShareActions.js b/apps/files_sharing/src/services/ExternalShareActions.js index 821bf479755..dd5b73e1345 100644 --- a/apps/files_sharing/src/services/ExternalShareActions.js +++ b/apps/files_sharing/src/services/ExternalShareActions.js @@ -38,7 +38,7 @@ export default class ExternalShareActions { * * @readonly * @memberof ExternalLinkActions - * @returns {Object} the data state + * @return {object} the data state */ get state() { return this._state @@ -47,12 +47,12 @@ export default class ExternalShareActions { /** * Register a new option/entry for the a given share type * - * @param {Object} action new action component to register + * @param {object} action new action component to register * @param {string} action.id unique action id * @param {Function} action.data data to bind the component to * @param {Array} action.shareType list of OC.Share.SHARE_XXX to be mounted on - * @param {Object} action.handlers list of listeners - * @returns {boolean} + * @param {object} action.handlers list of listeners + * @return {boolean} */ registerAction(action) { // Validate action diff --git a/apps/files_sharing/src/services/ShareSearch.js b/apps/files_sharing/src/services/ShareSearch.js index a96822223c5..00750c0e0b4 100644 --- a/apps/files_sharing/src/services/ShareSearch.js +++ b/apps/files_sharing/src/services/ShareSearch.js @@ -38,7 +38,7 @@ export default class ShareSearch { * * @readonly * @memberof ShareSearch - * @returns {Object} the data state + * @return {object} the data state */ get state() { return this._state @@ -49,14 +49,14 @@ export default class ShareSearch { * Mostly used by the guests app. * We should consider deprecation and add results via php ? * - * @param {Object} result entry to append + * @param {object} result entry to append * @param {string} [result.user] entry user * @param {string} result.displayName entry first line * @param {string} [result.desc] entry second line * @param {string} [result.icon] entry icon - * @param {function} result.handler function to run on entry selection - * @param {function} [result.condition] condition to add entry or not - * @returns {boolean} + * @param {Function} result.handler function to run on entry selection + * @param {Function} [result.condition] condition to add entry or not + * @return {boolean} */ addNewResult(result) { if (result.displayName.trim() !== '' |