summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
Commit message (Collapse)AuthorAgeFilesLines
* Compile assetsnpmbuildbot-nextcloud[bot]2020-11-262-2/+2
| | | | Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Fix default internal expiration date enforceJohn Molakvoæ (skjnldsv)2020-11-132-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Disable share input for a received share if resharing is not allowedDaniel Calviño Sánchez2020-11-112-2/+2
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Do not show "Can reshare" in the menu if resharing is not allowedDaniel Calviño Sánchez2020-11-112-2/+2
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix js search in undefined ocs responseJohn Molakvoæ (skjnldsv)2020-11-092-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Indicate preview availability in share api responsesRichard Steinmetz2020-11-063-2/+3
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Fix sharing input placeholder for emailsJohn Molakvoæ (skjnldsv)2020-10-242-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Never copy the share link when the password is forcedJoas Schilling2020-09-282-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only copy the link when updating a share or no password was forcedJoas Schilling2020-08-242-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Improve error reporting on sharing errorsJoas Schilling2020-07-232-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Compile assetsnpmbuildbot[bot]2020-07-232-2/+2
| | | | Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Build source maps on production build againJulius Härtl2020-07-1411-11/+17
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Do not quote properties when optimizing bundlesJulius Härtl2020-07-076-902/+6
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix share permission checkboxes enabled when permissions can not be setDaniel Calviño Sánchez2020-06-292-15/+15
| | | | | | | | | | | | | | | A sharee can reshare a file and set the edit, create, delete and share permissions of the reshare only if the received share has edit, create, delete and share permissions, or if they were revoked in the received share after being set in the reshare. Therefore, the permission checkboxes in the share menu should be enabled only if the user can set them (otherwise trying to check them will lead to an error). Note that "sharePermissions" has all the permissions if the file is not a reshare but a file owned by the user. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Pass the proper share permissions to the create share callRoeland Jago Douma2020-06-102-2/+2
| | | | | | | | | Fixes #21188 This way we do not run into the share permission issue Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Restore previous state when failing to change video verification stateDaniel Calviño Sánchez2020-06-032-19/+19
| | | | | | | | | 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> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Don't load text file preview when text app is available (Fixes: #20615)Jonas Meurer2020-05-181-1/+2
| | | | | | | | | | | When opening a shared text document, the files_sharing app uses internal preview support in case no other app to open the text file is available. So far, it only checks for the old files_texteditor app, not for the new new text app. This commit fixes this by checking for both. Signed-off-by: Jonas Meurer <jonas@freesources.org>
* Do not process the same FileInfo twiceJohn Molakvoæ (skjnldsv)2020-05-082-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Do not filter id matching userId on non-user-share sharesJohn Molakvoæ (skjnldsv)2020-05-052-4/+4
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix filtering our owner & current user from sharesJohn Molakvoæ (skjnldsv)2020-05-052-15/+15
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix federated link sharing permissionsJohn Molakvoæ (skjnldsv)2020-05-042-4/+4
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix expiry datepicker allowing all datesGary Kim2020-05-022-4/+4
| | | | | | | | | | vue2-datepicker expects a `disabled-date` function rather than `not-before` and `not-after` dates. This commit updates it so that we now provide vue2-datepicker with a `disabled-date` function. Signed-off-by: Gary Kim <gary@garykim.dev>
* Process shares only once, better debug and expiration date codeJohn Molakvoæ (skjnldsv)2020-05-012-8/+8
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix share expiration date not shownGary Kim2020-04-302-4/+4
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Allow to navigate to others with access from the sidebarRoeland Jago Douma2020-04-2912-48/+48
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump webpack from 4.42.1 to 4.43.0dependabot-preview[bot]2020-04-294-4/+4
| | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.42.1 to 4.43.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.42.1...v4.43.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix Sharing recommendation user displayJohn Molakvoæ (skjnldsv)2020-04-212-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Properly display share error messagesJohn Molakvoæ (skjnldsv)2020-04-142-2/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Merge pull request #20446 from ↵Roeland Jago Douma2020-04-134-4/+4
|\ | | | | | | | | nextcloud/dependabot/npm_and_yarn/css-loader-3.5.2 Bump css-loader from 3.4.1 to 3.5.2
| * Bump css-loader from 3.4.1 to 3.5.2dependabot-preview[bot]2020-04-134-4/+4
| | | | | | | | | | | | | | | | | | | | Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.4.1 to 3.5.2. - [Release notes](https://github.com/webpack-contrib/css-loader/releases) - [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.4.1...v3.5.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Changing the translation catalog for "Share"Valdnet2020-04-122-2/+2
|/ | | | | | Change "files" to "files_sharing". Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Merge pull request #20185 from azul/open-new_tabJohn Molakvoæ2020-04-111-8/+4
|\ | | | | Modify do_action so default ctrl-click opens tab
| * Allow opening files for editing in new tabsAzul2020-04-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a file list files with a default action have an href that will trigger the action. This way ctrl-click and middle button click open the default action in a new tab. In order to achieve this a new param `openfile` was introduced to the files app. It will make the files app trigger the default action for the file in question. This also allows linking to file content rather than just the details display. Introduce fileList.getDefaultActionUrl() to create a link with that param set. It's overwritten in the trashbin fileList so that anchors continue to have `#` as a href. Fix the link generation for subfolders of public shares: 58a87d0 was the last commit that touched the linkTo function in public.js. It included the params as arguments to the generateUrl function. Turns out this completely ignores the dir parameter now. The inclusion was reverted in other places so revert it here as well. Also change `dir` to `path` in the param as that is respected when following the link. Add Test for the new link url for files with default action. Remove test for multiple selects with ctrl-click as that is not what we are doing anymore. Signed-off-by: Azul <azul@riseup.net>
| * refactor: fileActions.getCurrentDefaultFileAction()Azul2020-04-081-6/+2
| | | | | | | | | | | | | | | | | | | | fileActions.getCurrentDefaultFileAction() returns the default file action for the currently selected file. There were a number of places querying for the mime, type and permissions of that file first to then query for the default action. Signed-off-by: Azul <azul@riseup.net>
* | Bump core-js from 1.4.1 to 1.5.0John Molakvoæ (skjnldsv)2020-04-1012-56/+54
|/ | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump @nextcloud/l10n from 1.1.1 to 1.2.2dependabot-preview[bot]2020-04-064-22/+22
| | | | | | | | | | Bumps [@nextcloud/l10n](https://github.com/nextcloud/nextcloud-l10n) from 1.1.1 to 1.2.2. - [Release notes](https://github.com/nextcloud/nextcloud-l10n/releases) - [Changelog](https://github.com/nextcloud/nextcloud-l10n/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-l10n/compare/v1.1.1...v1.2.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* l10n: Triple dot to ellipsis.rakekniven2020-04-041-1/+1
| | | Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
* Merge pull request #20217 from ↵Roeland Jago Douma2020-04-032-2/+2
|\ | | | | | | | | nextcloud/dependabot/npm_and_yarn/regenerator-runtime-0.13.5 Bump regenerator-runtime from 0.13.3 to 0.13.5
| * Bump regenerator-runtime from 0.13.3 to 0.13.5dependabot-preview[bot]2020-04-032-2/+2
| | | | | | | | | | | | | | | | | | Bumps [regenerator-runtime](https://github.com/facebook/regenerator) from 0.13.3 to 0.13.5. - [Release notes](https://github.com/facebook/regenerator/releases) - [Commits](https://github.com/facebook/regenerator/compare/regenerator-runtime@0.13.3...regenerator-runtime@0.13.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Merge pull request #20244 from CHRINIMUE/add-progress-bar-to-public-uploadRoeland Jago Douma2020-04-033-8/+21
|\ \ | |/ |/| Add basic progressbar to public upload page
| * fix wrong indentationChristopher Mueller2020-03-311-6/+6
| | | | | | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
| * add translation strings & add margin to uploaded files-listChristopher Mueller2020-03-311-4/+3
| | | | | | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
| * add progressbar for every element & better designChristopher Mueller2020-03-313-10/+21
| | | | | | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
| * Add basic progressbar to public upload pageChristopher Mueller2020-03-312-1/+4
| | | | | | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
* | Bump webpack from 4.42.0 to 4.42.1dependabot-preview[bot]2020-03-304-9/+9
|/ | | | | | | | | Bumps [webpack](https://github.com/webpack/webpack) from 4.42.0 to 4.42.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v4.42.0...v4.42.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump @nextcloud/logger from 1.1.1 to 1.1.2, @nextcloud/router from 1.0.0 to ↵dependabot-preview[bot]2020-03-2312-54/+54
| | | | | | 1.0.2, @nextcloud/axios from 1.3.1 to 1.3.2 and @babel/core from 7.8.7 to 7.9.0 Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump marked from 0.7.0 to 0.8.1John Molakvoæ (skjnldsv)2020-03-2112-106/+54
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump @nextcloud/initial-state from 1.1.0 to 1.1.1dependabot-preview[bot]2020-03-212-2/+2
| | | | | | | | | | Bumps [@nextcloud/initial-state](https://github.com/nextcloud/nextcloud-initial-state) from 1.1.0 to 1.1.1. - [Release notes](https://github.com/nextcloud/nextcloud-initial-state/releases) - [Changelog](https://github.com/nextcloud/nextcloud-initial-state/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-initial-state/compare/v1.1.0...v1.1.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Bump @nextcloud/vue from 1.3.1 to 1.4.0dependabot-preview[bot]2020-03-1012-56/+56
| | | | | | | | | Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 1.3.1 to 1.4.0. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v1.3.1...v1.4.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix default action for deleted sharesGretaD2020-03-093-2/+3
| | | | | Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>