Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-12-02 20:32:57 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 12:14:05 +0300
commit74b980310852a0b406fa9d073870f92c409d5444 (patch)
tree055cbdf57886077bf3a6ea476813deedb54064e0 /apps/files_sharing/src
parent85bc8513557f5ff37fc283d53893d4cb77ec7c3b (diff)
Eslint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue16
-rw-r--r--apps/files_sharing/src/components/SharingEntryInternal.vue6
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue59
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue17
-rw-r--r--apps/files_sharing/src/mixins/ShareRequests.js6
-rw-r--r--apps/files_sharing/src/models/Share.js80
-rw-r--r--apps/files_sharing/src/services/ConfigService.js50
-rw-r--r--apps/files_sharing/src/services/ExternalLinkActions.js6
-rw-r--r--apps/files_sharing/src/services/ExternalShareActions.js8
-rw-r--r--apps/files_sharing/src/services/ShareSearch.js10
-rw-r--r--apps/files_sharing/src/utils/GeneratePassword.js2
-rw-r--r--apps/files_sharing/src/views/SharingLinkList.vue4
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue13
13 files changed, 154 insertions, 123 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index ac7df24162c..8d610333834 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -232,7 +232,7 @@ export default {
/**
* Can the sharer set whether the sharee can edit the file ?
*
- * @returns {boolean}
+ * @return {boolean}
*/
canSetEdit() {
// If the owner revoked the permission after the resharer granted it
@@ -244,7 +244,7 @@ export default {
/**
* Can the sharer set whether the sharee can create the file ?
*
- * @returns {boolean}
+ * @return {boolean}
*/
canSetCreate() {
// If the owner revoked the permission after the resharer granted it
@@ -256,7 +256,7 @@ export default {
/**
* Can the sharer set whether the sharee can delete the file ?
*
- * @returns {boolean}
+ * @return {boolean}
*/
canSetDelete() {
// If the owner revoked the permission after the resharer granted it
@@ -268,7 +268,7 @@ export default {
/**
* Can the sharer set whether the sharee can reshare the file ?
*
- * @returns {boolean}
+ * @return {boolean}
*/
canSetReshare() {
// If the owner revoked the permission after the resharer granted it
@@ -337,7 +337,8 @@ export default {
/**
* Is the current share a folder ?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isFolder() {
return this.fileInfo.type === 'dir'
@@ -345,7 +346,8 @@ export default {
/**
* Does the current share have an expiration date
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
hasExpirationDate: {
get() {
@@ -371,7 +373,7 @@ export default {
},
/**
- * @returns {bool}
+ * @return {bool}
*/
hasStatus() {
if (this.share.type !== this.SHARE_TYPES.SHARE_TYPE_USER) {
diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue
index af677eca843..e96a85340a6 100644
--- a/apps/files_sharing/src/components/SharingEntryInternal.vue
+++ b/apps/files_sharing/src/components/SharingEntryInternal.vue
@@ -49,7 +49,8 @@ export default {
computed: {
/**
* Get the internal link to this file id
- * @returns {string}
+ *
+ * @return {string}
*/
internalLink() {
return window.location.protocol + '//' + window.location.host + generateUrl('/f/') + this.fileInfo.id
@@ -57,7 +58,8 @@ export default {
/**
* Clipboard v-tooltip message
- * @returns {string}
+ *
+ * @return {string}
*/
clipboardTooltip() {
if (this.copied) {
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index 4c11ea4b70a..af2ea4cc6e5 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -400,7 +400,8 @@ export default {
* Return the current share permissions
* We always ignore the SHARE permission as this is used for the
* federated sharing.
- * @returns {number}
+ *
+ * @return {number}
*/
sharePermissions() {
return this.share.permissions & ~OC.PERMISSION_SHARE
@@ -409,7 +410,8 @@ export default {
* Generate a unique random id for this SharingEntryLink only
* This allows ActionRadios to have the same name prop
* but not to impact others SharingEntryLink
- * @returns {string}
+ *
+ * @return {string}
*/
randomId() {
return Math.random().toString(27).substr(2)
@@ -417,7 +419,8 @@ export default {
/**
* Link share label
- * @returns {string}
+ *
+ * @return {string}
*/
title() {
// if we have a valid existing share (not pending)
@@ -452,7 +455,8 @@ export default {
/**
* Show the email on a second line if a label is set for mail shares
- * @returns {string}
+ *
+ * @return {string}
*/
subtitle() {
if (this.isEmailShareType
@@ -464,7 +468,8 @@ export default {
/**
* Does the current share have an expiration date
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
hasExpirationDate: {
get() {
@@ -490,7 +495,8 @@ export default {
/**
* Is the current share password protected ?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isPasswordProtected: {
get() {
@@ -506,7 +512,8 @@ export default {
/**
* Is Talk enabled?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isTalkEnabled() {
return OC.appswebroots.spreed !== undefined
@@ -514,7 +521,8 @@ export default {
/**
* Is it possible to protect the password by Talk?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isPasswordProtectedByTalkAvailable() {
return this.isPasswordProtected && this.isTalkEnabled
@@ -522,7 +530,8 @@ export default {
/**
* Is the current share password protected by Talk?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isPasswordProtectedByTalk: {
get() {
@@ -535,7 +544,8 @@ export default {
/**
* Is the current share an email share ?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isEmailShareType() {
return this.share
@@ -561,7 +571,8 @@ export default {
* Pending data.
* If the share still doesn't have an id, it is not synced
* Therefore this is still not valid and requires user input
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
pendingPassword() {
return this.config.enforcePasswordForPublicLink && this.share && !this.share.id
@@ -572,7 +583,8 @@ export default {
/**
* Can the recipient edit the file ?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
canUpdate: {
get() {
@@ -594,7 +606,8 @@ export default {
/**
* Is the current share a folder ?
* TODO: move to a proper FileInfo model?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
isFolder() {
return this.fileInfo.type === 'dir'
@@ -603,7 +616,8 @@ export default {
/**
* Does the current file/folder have create permissions
* TODO: move to a proper FileInfo model?
- * @returns {boolean}
+ *
+ * @return {boolean}
*/
fileHasCreatePermission() {
return !!(this.fileInfo.permissions & OC.PERMISSION_CREATE)
@@ -611,7 +625,8 @@ export default {
/**
* Return the public share link
- * @returns {string}
+ *
+ * @return {string}
*/
shareLink() {
return window.location.protocol + '//' + window.location.host + generateUrl('/s/') + this.share.token
@@ -619,7 +634,8 @@ export default {
/**
* Clipboard v-tooltip message
- * @returns {string}
+ *
+ * @return {string}
*/
clipboardTooltip() {
if (this.copied) {
@@ -632,8 +648,9 @@ export default {
/**
* External additionnai actions for the menu
+ *
* @deprecated use OCA.Sharing.ExternalShareActions
- * @returns {Array}
+ * @return {Array}
*/
externalLegacyLinkActions() {
return this.ExternalLegacyLinkActions.actions
@@ -641,7 +658,8 @@ export default {
/**
* Additional actions for the menu
- * @returns {Array}
+ *
+ * @return {Array}
*/
externalLinkActions() {
// filter only the registered actions for said link
@@ -794,6 +812,7 @@ export default {
/**
* On permissions change
+ *
* @param {Event} event js event
*/
togglePermissions(event) {
@@ -804,7 +823,8 @@ export default {
/**
* Label changed, let's save it to a different key
- * @param {String} label the share label
+ *
+ * @param {string} label the share label
*/
onLabelChange(label) {
this.$set(this.share, 'newLabel', label.trim())
@@ -846,6 +866,7 @@ export default {
* If both co-exists, the password have changed and
* we show it in plain text.
* Then on submit (or menu close), we sync it.
+ *
* @param {string} password the changed password
*/
onPasswordChange(password) {
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index 9bc4e04e722..02c1f27f173 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -114,7 +114,7 @@ export default {
* results into the autocomplete dropdown
* Used for the guests app
*
- * @returns {Array}
+ * @return {Array}
*/
externalResults() {
return this.ShareSearch.results
@@ -321,8 +321,8 @@ export default {
* Filter out existing shares from
* the provided shares search results
*
- * @param {Object[]} shares the array of shares object
- * @returns {Object[]}
+ * @param {object[]} shares the array of shares object
+ * @return {object[]}
*/
filterOutExistingShares(shares) {
return shares.reduce((arr, share) => {
@@ -376,8 +376,9 @@ export default {
/**
* Get the icon based on the share type
+ *
* @param {number} type the share type
- * @returns {string} the icon class
+ * @return {string} the icon class
*/
shareTypeToIcon(type) {
switch (type) {
@@ -406,8 +407,9 @@ export default {
/**
* Format shares for the multiselect options
- * @param {Object} result select entry item
- * @returns {Object}
+ *
+ * @param {object} result select entry item
+ * @return {object}
*/
formatForMultiselect(result) {
let subtitle
@@ -438,7 +440,8 @@ export default {
/**
* Process the new share request
- * @param {Object} value the multiselect option
+ *
+ * @param {object} value the multiselect option
*/
async addShare(value) {
if (value.lookup) {
diff --git a/apps/files_sharing/src/mixins/ShareRequests.js b/apps/files_sharing/src/mixins/ShareRequests.js
index ef45f9171b2..960e418d0fc 100644
--- a/apps/files_sharing/src/mixins/ShareRequests.js
+++ b/apps/files_sharing/src/mixins/ShareRequests.js
@@ -40,7 +40,7 @@ export default {
/**
* Create a new share
*
- * @param {Object} data destructuring object
+ * @param {object} data destructuring object
* @param {string} data.path path to the file/folder which should be shared
* @param {number} data.shareType 0 = user; 1 = group; 3 = public link; 6 = federated cloud share
* @param {string} data.shareWith user/group id with which the file should be shared (optional for shareType > 1)
@@ -50,7 +50,7 @@ export default {
* @param {boolean} [data.sendPasswordByTalk=false] send the password via a talk conversation
* @param {string} [data.expireDate=''] expire the shareautomatically after
* @param {string} [data.label=''] custom label
- * @returns {Share} the new share
+ * @return {Share} the new share
* @throws {Error}
*/
async createShare({ path, permissions, shareType, shareWith, publicUpload, password, sendPasswordByTalk, expireDate, label }) {
@@ -99,7 +99,7 @@ export default {
* Update a share
*
* @param {number} id share id
- * @param {Object} properties key-value object of the properties to update
+ * @param {object} properties key-value object of the properties to update
*/
async updateShare(id, properties) {
try {
diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js
index 32d9a78e5f9..239eb8c947e 100644
--- a/apps/files_sharing/src/models/Share.js
+++ b/apps/files_sharing/src/models/Share.js
@@ -32,7 +32,7 @@ export default class Share {
/**
* Create the share object
*
- * @param {Object} ocsData ocs request response
+ * @param {object} ocsData ocs request response
*/
constructor(ocsData) {
if (ocsData.ocs && ocsData.ocs.data && ocsData.ocs.data[0]) {
@@ -54,7 +54,7 @@ export default class Share {
* inject its watchers into the #share
* state and make the whole class reactive
*
- * @returns {Object} the share raw state
+ * @return {object} the share raw state
* @readonly
* @memberof Sidebar
*/
@@ -65,7 +65,7 @@ export default class Share {
/**
* get the share id
*
- * @returns {int}
+ * @return {int}
* @readonly
* @memberof Share
*/
@@ -76,7 +76,7 @@ export default class Share {
/**
* Get the share type
*
- * @returns {int}
+ * @return {int}
* @readonly
* @memberof Share
*/
@@ -88,7 +88,7 @@ export default class Share {
* Get the share permissions
* See OC.PERMISSION_* variables
*
- * @returns {int}
+ * @return {int}
* @readonly
* @memberof Share
*/
@@ -111,7 +111,7 @@ export default class Share {
/**
* Get the share owner uid
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -122,7 +122,7 @@ export default class Share {
/**
* Get the share owner's display name
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -134,7 +134,7 @@ export default class Share {
/**
* Get the share with entity uid
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -146,7 +146,7 @@ export default class Share {
* Get the share with entity display name
* fallback to its uid if none
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -159,7 +159,7 @@ export default class Share {
* Unique display name in case of multiple
* duplicates results with the same name.
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -171,7 +171,7 @@ export default class Share {
/**
* Get the share with entity link
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -182,7 +182,7 @@ export default class Share {
/**
* Get the share with avatar if any
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -194,7 +194,7 @@ export default class Share {
/**
* Get the shared item owner uid
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -206,7 +206,7 @@ export default class Share {
* Get the shared item display name
* fallback to its uid if none
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -219,7 +219,7 @@ export default class Share {
/**
* Get the share creation timestamp
*
- * @returns {int}
+ * @return {int}
* @readonly
* @memberof Share
*/
@@ -230,7 +230,7 @@ export default class Share {
/**
* Get the expiration date as a string format
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -253,7 +253,7 @@ export default class Share {
/**
* Get the public share token
*
- * @returns {string} the token
+ * @return {string} the token
* @readonly
* @memberof Share
*/
@@ -264,7 +264,7 @@ export default class Share {
/**
* Get the share note if any
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -286,7 +286,7 @@ export default class Share {
* Get the share label if any
* Should only exist on link shares
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -308,7 +308,7 @@ export default class Share {
/**
* Have a mail been sent
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -319,7 +319,7 @@ export default class Share {
/**
* Hide the download button on public page
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -340,7 +340,7 @@ export default class Share {
/**
* Password protection of the share
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -361,7 +361,7 @@ export default class Share {
/**
* Password protection by Talk of the share
*
- * @returns {Boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -372,7 +372,7 @@ export default class Share {
/**
* Password protection by Talk of the share
*
- * @param {Boolean} sendPasswordByTalk whether to send the password by Talk
+ * @param {boolean} sendPasswordByTalk whether to send the password by Talk
* or not
* @memberof Share
*/
@@ -384,7 +384,7 @@ export default class Share {
/**
* Get the shared item absolute full path
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -395,7 +395,7 @@ export default class Share {
/**
* Return the item type: file or folder
*
- * @returns {string} 'folder' or 'file'
+ * @return {string} 'folder' or 'file'
* @readonly
* @memberof Share
*/
@@ -406,7 +406,7 @@ export default class Share {
/**
* Get the shared item mimetype
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -417,7 +417,7 @@ export default class Share {
/**
* Get the shared item id
*
- * @returns {int}
+ * @return {int}
* @readonly
* @memberof Share
*/
@@ -430,7 +430,7 @@ export default class Share {
* e.g the file /xxx/aaa will be shared in
* the receiving root as /aaa, the fileTarget is /aaa
*
- * @returns {string}
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -441,7 +441,7 @@ export default class Share {
/**
* Get the parent folder id if any
*
- * @returns {int}
+ * @return {int}
* @readonly
* @memberof Share
*/
@@ -454,7 +454,7 @@ export default class Share {
/**
* Does this share have READ permissions
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -465,7 +465,7 @@ export default class Share {
/**
* Does this share have CREATE permissions
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -476,7 +476,7 @@ export default class Share {
/**
* Does this share have DELETE permissions
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -487,7 +487,7 @@ export default class Share {
/**
* Does this share have UPDATE permissions
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -498,7 +498,7 @@ export default class Share {
/**
* Does this share have SHARE permissions
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -512,7 +512,7 @@ export default class Share {
/**
* Can the current user EDIT this share ?
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -523,7 +523,7 @@ export default class Share {
/**
* Can the current user DELETE this share ?
*
- * @returns {boolean}
+ * @return {boolean}
* @readonly
* @memberof Share
*/
@@ -533,7 +533,8 @@ export default class Share {
/**
* Top level accessible shared folder fileid for the current user
- * @returns {string}
+ *
+ * @return {string}
* @readonly
* @memberof Share
*/
@@ -543,7 +544,8 @@ export default class Share {
/**
* Top level accessible shared folder path for the current user
- * @returns {string}
+ *
+ * @return {string}
* @readonly
* @memberof Share
*/
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() !== ''
diff --git a/apps/files_sharing/src/utils/GeneratePassword.js b/apps/files_sharing/src/utils/GeneratePassword.js
index 49a58596f7a..a12e1c66f49 100644
--- a/apps/files_sharing/src/utils/GeneratePassword.js
+++ b/apps/files_sharing/src/utils/GeneratePassword.js
@@ -31,7 +31,7 @@ const passwordSet = 'abcdefgijkmnopqrstwxyzABCDEFGHJKLMNPQRSTWXYZ23456789'
* request a valid password if password_policy
* is enabled
*
- * @returns {string} a valid password
+ * @return {string} a valid password
*/
export default async function() {
// password policy is enabled, let's request a pass
diff --git a/apps/files_sharing/src/views/SharingLinkList.vue b/apps/files_sharing/src/views/SharingLinkList.vue
index c87dcb59585..14ea879e004 100644
--- a/apps/files_sharing/src/views/SharingLinkList.vue
+++ b/apps/files_sharing/src/views/SharingLinkList.vue
@@ -87,7 +87,7 @@ export default {
* Using this to still show the `new link share`
* button regardless of mail shares
*
- * @returns {Array}
+ * @return {Array}
*/
hasLinkShares() {
return this.shares.filter(share => share.type === this.SHARE_TYPES.SHARE_TYPE_LINK).length > 0
@@ -96,7 +96,7 @@ export default {
/**
* Do we have any link or email shares?
*
- * @returns {boolean}
+ * @return {boolean}
*/
hasShares() {
return this.shares.length > 0
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index bdc81c91ccc..62d442191bc 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -144,7 +144,7 @@ export default {
/**
* Is this share shared with me?
*
- * @returns {boolean}
+ * @return {boolean}
*/
isSharedWithMe() {
return Object.keys(this.sharedWithMe).length > 0
@@ -159,7 +159,8 @@ export default {
methods: {
/**
* Update current fileInfo and fetch new data
- * @param {Object} fileInfo the current file FileInfo
+ *
+ * @param {object} fileInfo the current file FileInfo
*/
async update(fileInfo) {
this.fileInfo = fileInfo
@@ -246,8 +247,8 @@ export default {
* Process the current shares data
* and init shares[]
*
- * @param {Object} share the share ocs api request data
- * @param {Object} share.data the request data
+ * @param {object} share the share ocs api request data
+ * @param {object} share.data the request data
*/
processShares({ data }) {
if (data.ocs && data.ocs.data && data.ocs.data.length > 0) {
@@ -268,8 +269,8 @@ export default {
* Process the sharedWithMe share data
* and init sharedWithMe
*
- * @param {Object} share the share ocs api request data
- * @param {Object} share.data the request data
+ * @param {object} share the share ocs api request data
+ * @param {object} share.data the request data
*/
processSharedWithMe({ data }) {
if (data.ocs && data.ocs.data && data.ocs.data[0]) {