aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_sharing): hide download permission for circle sharesRichard Steinmetz2023-07-101-0/+6
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: upgrade typescript, eslint and fix lintJohn Molakvoæ2023-06-271-1/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Don't disable actions when saving share permissionsLouis Chemineau2023-06-191-8/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Show pending popover menu when password is enabled by defaultDaniel Calviño Sánchez2023-05-221-8/+8
| | | | | | | | | | | | | | | | When "Enforce password protection" is enabled in the sharing settings a popover menu is shown to set a password before the share is created. On the other hand, when "Always ask for a password" was enabled in the sharing settings and a new link share was created the share was immediately created with a default password; the user was not able to specify a password (nor create the share without password). The component template already provided the needed elements to also ask for the password without enforcing it, but the popover menu was not shown due to "enableLinkPasswordByDefault" being missing in "if" conditions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Rename "pendingPassword" to "pendingEnforcedPassword"Daniel Calviño Sánchez2023-05-221-4/+4
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use the color-primary-element* variablesSimon L2023-05-131-1/+1
| | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Do not allow to toggle between password and text in sharingLouis Chemineau2023-05-091-0/+1
| | | | | | This does not makes sense as we do not have the clear text value. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix share input idChristopher Ng2023-05-021-1/+1
| | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(l10n): Fixed grammarrakekniven2023-04-181-1/+1
| | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* chore(eslint): fix missing import extensionsJohn Molakvoæ2023-03-239-39/+39
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+6
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Fix share select dropdown not opening when viewer is openChristopher Ng2023-03-011-0/+7
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Adapt native tooltip for new structure of NcAvatarjulia.kirschenheuter2023-02-272-3/+2
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Drop vue-clipboard2 to fix copy to clipboardChristopher Ng2023-02-012-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Port files sharing selectorChristopher Ng2023-01-241-56/+61
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add visible share labelChristopher Ng2023-01-121-4/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Differentiate share linksChristopher Ng2023-01-121-1/+19
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix inability to re-enter share password after invalid inputChristopher Ng2023-01-101-1/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Replace custom tooltips with native one in vue components and viewsjulia.kirschenheuter2023-01-055-75/+27
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Revert "Copy to clipboard with button instead of link"Christopher Ng2022-12-142-39/+25
| | | | | | This reverts commit 4ffc022c8b5d2a4df3b1b1452de769c4ad27fe4f. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add success popup message for copying share linksChristopher Ng2022-12-062-6/+11
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Show success on share actionsChristopher Ng2022-12-031-1/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Copy to clipboard with button instead of linkChristopher Ng2022-11-242-25/+39
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add label to sharing search fieldChristopher Ng2022-11-231-39/+53
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix date handling and savingJohn Molakvoæ2022-11-162-28/+34
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix visibility of internal expire dateVincent Petry2022-10-281-3/+6
| | | | | | | Fixed visibility of the expiration date field for internal shares by aligning the logic with the one from the public link shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace moment.js date with Date Object.julia.kirschenheuter2022-10-062-48/+31
| | | | | | | Replace vue2-datepicker with native date picker for expiration date. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Update apps/files_sharing/src/components/SharingEntryInternal.vueVincent Petry2022-09-271-2/+1
| | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix focussing to internal link after copyVincent Petry2022-09-272-5/+7
| | | | | | | | | | Since a recent change to NcActions it's not possible to add a "ref" attribute on a NcAction* component. As a workaround, a ref was added on the NcActions parent component instead. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Port Profile section checbox to NcCheckoxRadioSwitch componentCarl Schwan2022-09-121-2/+2
| | | | | | Improve accessibility and unify the design Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-052-3/+3
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Add Nc prefix to Nc vue component namesVincent Petry2022-08-257-163/+163
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix label for allow download share permissionJulius Härtl2022-08-041-5/+1
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Multiple fixesCarl Schwan2022-07-312-3/+39
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Enforcing permission during resharingCarl Schwan2022-07-282-0/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix adding to empty attributes and duplicate requestJulius Härtl2022-07-281-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add share attrs + download permission support in frontendVincent Petry2022-07-281-1/+41
| | | | | | | Added download permission checkbox in frontend Added share attributes parsing and setting in frontend. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Accessible names for share panel buttonsVincent Petry2022-07-262-0/+2
| | | | | | | Added aria-label for the buttons on the share panel. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix sharing panel lighthouse warningsVincent Petry2022-07-225-102/+106
| | | | | | | Replaced h5 with span and adjusted selectors. Fixed ul/li hierarchy of some elements. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add expanded attribute to button for listing others with accessChristopher Ng2022-07-071-1/+16
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Various improvements related to the recent implementation of temporary passwordsCyrille Bollu2022-06-081-0/+20
| | | | | | | | | | | | | | | for mail shares: 1- Changes style of "forgot password?" and "Back" button 2- Adds information about share password's expiration time in the emails sent. 3- Shows password expiration time in the Share menu 4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords) 5- At share's creation, password should only be sent when it's a permanent one See also https://github.com/nextcloud/server/issues/31952 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix share permissions renderingLouis Chemineau2022-05-311-1/+2
| | | | | | | | The `SHARE` permissions falls into the `default` case in the switch case, causing the rendering to look like ` , Upload, Read`. This PR changes the return value of the `default` case and adds a `filter` to remove those values. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Cleanup and compileJohn Molakvoæ2022-05-131-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-2/+2
| | | | | | | | | | | | | | | | | | shares of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves. - Creates a migration step for the files_sharing app to add the 'password_expiration_time' attribute to the oc_shares table. - Makes share temporary passwords' expiration time configurable via a system value. - Adds a system config value to allow permanent share passwords -Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue See https://github.com/nextcloud/server/issues/31005 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* Fix regression for edit perm on file shareLouis Chemineau2022-02-211-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support CRUD share permissionsLouis Chemineau2022-02-152-107/+303
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use @nextcloud/sharing in files and files_sharingLouis Chemineau2022-01-261-4/+5
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> Update tests Signed-off-by: Louis Chemineau <louis@chmn.me>
* Auto fix warningsLouis Chemineau2022-01-214-22/+11
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Typing correctionsLouis Chemineau2022-01-111-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Eslint fixJohn Molakvoæ (skjnldsv)2022-01-084-35/+63
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>