aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/mixins
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Use new `ShareType` across file_sharingnfebe2024-12-032-18/+5
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* chore(i18n): Improved grammarrakekniven2024-10-191-1/+1
| | | Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(code-style): Adjust JS code to our code styleFerdinand Thiessen2024-10-161-2/+2
| | | | | | This resolves 68 ESLint warnings about invalid code style. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Add proper user facing messages on successFerdinand Thiessen2024-10-161-22/+43
| | | | | | | | | | 1. Use proper translated strings 2. Fix invalid use of translation message on API result 3. Log all errors Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(files_sharing): refactor Share model to tsskjnldsv2024-07-303-3/+3
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor sharing configskjnldsv2024-07-122-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-121-1/+1
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-091-1/+0
| | | | | | | | | 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(ExternalSharing): Handle template share from external sourcesfenn-cs2024-07-031-5/+6
| | | | | | | 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(FilesView): Update files view upon share creation/deletefenn-cs2024-06-251-1/+23
| | | | | | Resolves : https://github.com/nextcloud/server/issues/44961 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>
* chore: Add SPDX headerAndy Scherzinger2024-06-064-66/+12
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Fix undefined share object during expirationDate updatefenn-cs2024-02-201-1/+1
| | | | | | | | | | In 04e87337211351127cd02a0404936de8cb1b0837 a regression was introduced. `this` means nothing inside arrow functions, hence this.share was referring to an undefined object and so all attempted updates for expiration dates would fail. Resolves : https://github.com/nextcloud/server/issues/43256 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Allow user to finish typing date before formattingfenn-cs2023-12-111-3/+2
| | | | | | | Debounce `onExpirationChange` to avoid calling `formatDateToString` on invalid on uncompletely inputed date strings. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Improve share logic for enforced password & expiry datefenn-cs2023-11-301-0/+16
| | | | | | | | | | | | | | * It's possible for the admin to enforce and expiry date after, some shares have been created. This commit makes possible to update the share with the new admin constraints. * This commit would users to modify enforced expiry to anything within range and less than the enforced limit in the pre-create dialog for public shares. * This commit fixes, unable to update share without updating password. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Do not treat `isDefaultExpireDateEnforced` as fallbackfenn-cs2023-10-221-2/+2
| | | | | | | | | | | | | | | | `isDefaultExpireDateEnforced` and its corresponding `defaultExpirationDate` is currently treated as the enforcement fallback when share type enforcements are not set. However, `isDefaultExpireDateEnforced` and `defaultExpirationDate` are actually more like `isDefaultPublicExpireDateEnforced` and `defaultPublicExpirationDate` and therefore only applies to public shares. It might be ideal to rename this variables all the way from the backend config to the way we use them in the frontend code. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Consider share type for enforced share expiry datesfenn-cs2023-09-201-0/+9
| | | | | | | | | | | | | | | | | | | | | We have three kind of share expiry date enforcements. - `isDefaultExpireDateEnforced` - `isDefaultInternalExpireDateEnforced` - `isDefaultRemoteExpireDateEnforced` Before these commit, `isExpiryDateEnforced` that is used to disable/enable the set expiry date checkbox does not take those into consideration which is problematic as those have different applications. In addition, this commit now uses `isExpiryDateEnforced` to disable/enable the input for expiry date that shows up before the creation of link shares. Here, `hasExpirationDate` is also removed from 'SharingEntryLink` component as it is not used. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix invite guest for new sharing flowfenn-cs2023-09-141-4/+21
| | | | | | | | Call external handlers such as the one in the guess app https://github.com/nextcloud/guests/blob/master/src/main.js#L30 if present. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Improve sharing flowfenn-cs2023-08-303-18/+76
| | | | | | | | | | | | | This commit introduces the following changes: - Does not create new share once user is selected for internal shares - Adds a `SharingDetails` view for share configurations - Adds a quick share select to enable fast changes in share permisions. Resolves: https://github.com/nextcloud/server/issues/26691 Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
* reload filelist when adding or removing sharesRobin Appelman2023-05-221-1/+6
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore(eslint): fix missing import extensionsJohn Molakvoæ2023-03-231-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(eslint): replace node/no-missing-import by n/no-missing-importJohn Molakvoæ2023-03-231-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace custom tooltips with native one in vue components and viewsjulia.kirschenheuter2023-01-051-3/+3
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Show success on share actionsChristopher Ng2022-12-031-0/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix date handling and savingJohn Molakvoæ2022-11-161-8/+33
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace moment.js date with Date Object.julia.kirschenheuter2022-10-061-21/+5
| | | | | | | 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>
* Enforcing permission during resharingCarl Schwan2022-07-281-2/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add share attrs + download permission support in frontendVincent Petry2022-07-281-1/+7
| | | | | | | Added download permission checkbox in frontend Added share attributes parsing and setting in frontend. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Various improvements related to the recent implementation of temporary passwordsCyrille Bollu2022-06-082-2/+6
| | | | | | | | | | | | | | | 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>
* Support CRUD share permissionsLouis Chemineau2022-02-151-4/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use @nextcloud/sharing in files and files_sharingLouis Chemineau2022-01-262-24/+3
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> Update tests Signed-off-by: Louis Chemineau <louis@chmn.me>
* Replace license information to SPDX expressionLouis Chemineau2022-01-113-3/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Typing correctionsLouis Chemineau2022-01-111-3/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Bump p-queueLouis Chemineau2022-01-081-1/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Eslint fixJohn Molakvoæ (skjnldsv)2022-01-081-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Migrate to webpack v5Louis Chemineau2022-01-081-5/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix first day localeJohn Molakvoæ2021-12-091-17/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Properly format sharing datepicker localeJohn Molakvoæ2021-12-091-8/+15
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Bump p-queueJohn Molakvoæ (skjnldsv)2021-07-261-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump @nextcloud/router from 1.2.0 to 2.0.0dependabot[bot]2021-07-231-1/+1
| | | | | | | | | | Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-router/releases) - [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-313-0/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Only clear share password model when actually savedVincent Petry2021-03-111-2/+5
| | | | | | | | | | | Instead of always clearing the password in the share model, now only do it when it was actually saved. Fixes an issue where saving another field would clear the password too early and prevent it to be saved when the dropdown closed. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Show the actual error on share requestsJulius Härtl2021-01-181-3/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Let sharees endpoint properly handle deck sharesJulius Härtl2020-12-091-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix js search in undefined ocs responseJohn Molakvoæ (skjnldsv)2020-11-091-3/+3
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Bump compiled filesJohn Molakvoæ (skjnldsv)2020-07-311-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add user input for link share labelsGary Kim2020-07-141-0/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Improve error reporting on sharing errorsJoas Schilling2020-07-081-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restore previous state when failing to change video verification stateDaniel Calviño Sánchez2020-06-011-0/+8
| | | | | | | | When video verification can not be enabled or disabled the previous state is set again in the JavaScript share object. This ensures that the UI will not reflect a misleading state. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>