From df42a10e56d2fd0721c97c8ef4ba4d8eadcea6af Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 12 Jul 2024 15:11:10 +0200 Subject: chore(files_sharing): lint & refactor fixes Signed-off-by: skjnldsv --- apps/files/src/actions/moveOrCopyActionUtils.ts | 2 +- .../files_sharing/lib/Controller/ShareAPIController.php | 2 +- apps/files_sharing/openapi.json | 2 +- .../src/components/NewFileRequestDialog.vue | 17 +++++++++-------- .../NewFileRequestDialogDatePassword.vue | 4 ++-- .../NewFileRequestDialog/NewFileRequestDialogFinish.vue | 4 ++-- .../NewFileRequestDialog/NewFileRequestDialogIntro.vue | 4 ++-- 7 files changed, 18 insertions(+), 17 deletions(-) (limited to 'apps') diff --git a/apps/files/src/actions/moveOrCopyActionUtils.ts b/apps/files/src/actions/moveOrCopyActionUtils.ts index 2092087cd9b..091df56e655 100644 --- a/apps/files/src/actions/moveOrCopyActionUtils.ts +++ b/apps/files/src/actions/moveOrCopyActionUtils.ts @@ -24,7 +24,7 @@ export const getQueue = () => { } type ShareAttribute = { - value: any + value: boolean|string|number|null|object|Array key: string scope: string } diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 4b044450957..1ba4d441bc0 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -2059,7 +2059,7 @@ class ShareAPIController extends OCSController { * Send a mail notification again for a share. * The mail_send option must be enabled for the given share. * @param string $id the share ID - * @param string $password optional, the password to check against. Necessary for password protected shares. + * @param string $password the password to check against. Necessary for password protected shares. * @throws OCSNotFoundException Share not found * @throws OCSForbiddenException You are not allowed to send mail notifications * @throws OCSBadRequestException Invalid request or wrong password diff --git a/apps/files_sharing/openapi.json b/apps/files_sharing/openapi.json index 8669fdcc8e1..cf1e7206d01 100644 --- a/apps/files_sharing/openapi.json +++ b/apps/files_sharing/openapi.json @@ -2562,7 +2562,7 @@ "password": { "type": "string", "default": "", - "description": "optional, the password to check against. Necessary for password protected shares." + "description": "the password to check against. Necessary for password protected shares." } } } diff --git a/apps/files_sharing/src/components/NewFileRequestDialog.vue b/apps/files_sharing/src/components/NewFileRequestDialog.vue index 6f5044d21e5..31bca5d045b 100644 --- a/apps/files_sharing/src/components/NewFileRequestDialog.vue +++ b/apps/files_sharing/src/components/NewFileRequestDialog.vue @@ -14,7 +14,7 @@

- {{ t('files_sharing', 'Collect files from others even if they don\'t have an account.') }} + {{ t('files_sharing', 'Collect files from others even if they do not have an account.') }} {{ t('files_sharing', 'To ensure you can receive files, verify you have enough storage available.') }}

@@ -103,8 +103,7 @@