aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(files_sharing): file request creation permissions and link copy displayskjnldsv2024-07-181-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): use ClipboardText icon and fix trailing-button-clickskjnldsv2024-07-181-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): improve file request email handlingskjnldsv2024-07-183-9/+19
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): file request margin and buttons orderskjnldsv2024-07-182-18/+27
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): file request add email on focusoutskjnldsv2024-07-181-2/+3
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): file request use l10n `t` and `n` aliasesskjnldsv2024-07-184-33/+31
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): file request conditions with link/email global settingsskjnldsv2024-07-183-13/+37
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Close the sidebar on navigationFerdinand Thiessen2024-07-151-2/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): fix label usage of file request featureJohn Molakvoæ2024-07-124-8/+10
| | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* chore(files_sharing): lint & refactor fixesskjnldsv2024-07-124-14/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-128-99/+99
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): cleanup NewFileRequestDialog vueskjnldsv2024-07-124-22/+28
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: psalm, cs, autoloader and lintskjnldsv2024-07-122-6/+6
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor sharing configskjnldsv2024-07-1214-378/+463
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): adjust NewFileRequestDialog for emails invitesskjnldsv2024-07-121-4/+14
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-125-9/+9
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): add `new file request` optionskjnldsv2024-07-1210-13/+997
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): rename `File drop` to `File requests`skjnldsv2024-07-123-4/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): Only enable mixed sharing types if there is at least one ↵Ferdinand Thiessen2024-07-091-1/+2
| | | | | | | | sharing type If the array is empty it means it is not shared. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(files): Fix ESLint issues with files and files_sharing appFerdinand Thiessen2024-07-093-3/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Adjust Typescript definitions for OCP and OCFerdinand Thiessen2024-07-097-22/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-093-7/+9
| | | | | | | | | Nevertheless this causes a huge amount of new warnings. Previously the shell script for directories to lint was wrong it was generating all app names to lint, but was missing the `apps/` prefix. Causing only `core` to be linted. Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(SharingDetailsView): Prevent illegal unselection of read permissionsfenn-cs2024-07-081-1/+8
| | | | | | With the exception of "file drop" on link shares all other shares need the read permissions at least. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(SharingInput): Remove unused addSharefenn-cs2024-07-032-81/+0
| | | | | | | | | | | The new sharing flow since NC27 requires that users open the sharing details tab and customize their share before creating it. In https://github.com/nextcloud/server/pull/39472 the work of `addShare` was handed down to `openSharingDetails` that opens the sharing details tab for the user to customize and manually creat their share. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(ExternalSharing): Handle template share from external sourcesfenn-cs2024-07-032-5/+12
| | | | | | | The new sharing flow requires or implies that users should edit share before creating. External sources should not created the share IF we would upon sharing details tab on first request. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(SharingEntryLink): Show enforced password input labelfenn-cs2024-06-271-1/+3
| | | | | | | | | While upgrading icons in b3ec461fe86258a0a3831dff28e394018d0044c9 enforced password label icon was not correctly wrapped. Resolves : https://github.com/nextcloud/server/issues/45941 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(SharingDetailsView): Use NC loggerfenn-cs2024-06-251-4/+4
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(FilesView): Update files view upon share creation/deletefenn-cs2024-06-254-7/+57
| | | | | | Resolves : https://github.com/nextcloud/server/issues/44961 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: Do not import from `axios` but only `@nextcloud/axios`Ferdinand Thiessen2024-06-201-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update copy icon to Material Design iconAndy Scherzinger2024-06-192-3/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_sharing): Improve recursion in `onNewLinShare`fenn-cs2024-06-122-37/+80
| | | | | | | | | | | | | | | These changes fixes the issue of having the refresh the UI after share creation, as the share is not immediately removed from the UI list. Important changes - The basis of checking wether a password/expire date is no longer based on config values alone because the config is not expected in a share creation circle. Hence we check the configs and check if the share object (this.share) has the expected values set. This way, once the required properties are set, code control does not enter the block meant to handle the setting of required properties unneccessarily. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(ShareDetails): Prevent undefined errors for `share.permissions`fenn-cs2024-06-121-1/+2
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): dark avatar supportskjnldsv2024-06-121-1/+5
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): fix parsing of remote sharesskjnldsv2024-06-123-16/+53
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): `open-in-files` action should also set `openfile` queryFerdinand Thiessen2024-06-082-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-0655-1018/+135
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_sharing): usage of NcTextField in SelectShareFolderDialogueLouis Chemineau2024-06-061-1/+1
| | | | | | The NcTextField needs a value property to be set. Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(deps): Update `@nextcloud/event-bus` to version 3.3.1Ferdinand Thiessen2024-05-313-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(sharingDetails): Show correct share targetfenn-cs2024-04-181-4/+14
| | | | | | | The share details page should show the target email or user/server to which the user is creating the share. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): Disable autocomplete for share label and passwordFerdinand Thiessen2024-04-021-3/+4
| | | | | | Prevent browsers - as good as possible - from filling in user credentials as share label and password. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Create passwords when enforced for mail sharesFerdinand Thiessen2024-03-292-10/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(share): Send correct share attributes upon share creationfenn-cs2024-03-261-8/+8
| | | | | | | | | | - Send correct share attributes (`share.attributes`) to server upon creation. - Delete parts of code that create or reference, `share.hasDownloadPermission` (Not required by Share API) Resolves : https://github.com/nextcloud/server/issues/44131 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(share): Send empty expireDate when not expireDate setfenn-cs2024-03-261-4/+2
| | | | | | | | | | When creating a new share, if the user unchecks "Set expiry date" no `expireDate` is sent to the server. However, the server then assumes the default configured, hence better to send an empty value. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(tests): Add mock for `window._oc_webroot`Ferdinand Thiessen2024-03-234-0/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: List specific share permissions as sublinefenn-cs2024-03-161-3/+9
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: No password set for new mail sharesfenn-cs2024-03-141-1/+1
| | | | | | | | | | | | | | Before the password is set on a new share, the computed property `hasUnsavedPassword` is used to check that `this.share.newPassword` is not undefined. Direct assignment without using Vue's `this.$set` makes it impossible for vue to detect that changes have happened on the share object. Hence the inreactivity. This worked initially most likely because `this.share.newPassword = await GeneratePassword()` was executed before the computed properties where evaluated. Resolves : https://github.com/nextcloud/server/issues/43919 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* feat: Allow registration of advanced external share actionsChristopher Ng2024-03-063-3/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat: reconfigured NcActions to use MDI'sEduardo Morales2024-03-062-24/+66
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* chore: manual lintingEduardo Morales2024-03-061-5/+11
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: added new action for qrcode popup linkshareEduardo Morales2024-03-061-1/+44
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>