summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1026-35/+3
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-105-23/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove spaces after method or function callChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0913-13/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show the displayname instead of the user idJoas Schilling2020-04-081-19/+34
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Try to use the display name of file transfersJoas Schilling2020-04-081-6/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-316-1/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-274-12/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-254-12/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-265-8/+8
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19777 from nextcloud/fix/viewer-publicJohn Molakvoæ2020-03-121-0/+5
|\ | | | | Properly emit Viewer event on files and files_sharing
| * Use dispatchTypedJohn Molakvoæ (skjnldsv)2020-03-111-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Properly emit Viewer event on files and files_sharingJohn Molakvoæ (skjnldsv)2020-03-111-0/+5
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Unify the code a bitJoas Schilling2020-03-101-16/+36
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use contacts name on federated activitiesJoas Schilling2020-03-101-11/+35
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Combine move activities as wellJoas Schilling2020-03-101-1/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not allow transfer ownership when the user isn't the ownerChristoph Wurst2020-03-031-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure that the transfer entry is present in the databaseJulius Härtl2020-02-241-5/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #19412 from nextcloud/fix/19404/make-favorite-publicChristoph Wurst2020-02-211-3/+2
|\ | | | | Make TAG_FAVORITE public
| * Make TAG_FAVORITE publicDaniel Kesselberg2020-02-121-3/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fix event typeJoas Schilling2020-02-061-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow specifying this is the first loginRoeland Jago Douma2020-02-031-2/+9
| | | | | | | On firstlogin we allow non empty target folders. So that for guest transfers the user sees the same UI. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Catch \Error in Transfer::restoreSharesTobia De Koninck2020-02-031-1/+1
| | | | | | | | | This makes the command more fault tolerant. An \Error can happen when e.g. the owner of a share is null. If we don't catch this, the restore process will stop in an unknown state. Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Prevent transferring data to user which never loggedinTobia De Koninck2020-02-031-1/+1
| | | | Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Add option to transfer-ownership to move dataTobia De Koninck2020-02-032-5/+24
| | | | | | | | This will move the home folder of own user to another user. Only allowed if that other user's home folder is empty. Can be used as workaround to rename users. Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Fix Sidebar legacy FileInfoModel requirementJohn Molakvoæ (skjnldsv)2020-01-161-0/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix webdav urlJohn Molakvoæ (skjnldsv)2020-01-101-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #18478 from nextcloud/fix/direct-editing-invalid-editor-idRoeland Jago Douma2019-12-221-3/+3
|\ | | | | Do not generate tokens for editor IDs that do not exist
| * Expose exception message in the responseJulius Härtl2019-12-201-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headers for 18Christoph Wurst2019-12-2010-0/+12
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* added line breaks to incoming transfer notificationSascha Wiswedel2019-12-171-2/+2
| | | | | | wrapped notifications into double quotes to make line breaks possible Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* added patience note for shareeSascha Wiswedel2019-12-171-2/+2
| | | | | | | | note about incoming transfer taken out by background job resolves #18272 Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* transfer ownership dialog word choiceSascha Wiswedel2019-12-171-1/+1
| | | | | | | Use Reject instead of Decline Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* notification polishingSascha Wiswedel2019-12-171-18/+18
| | | | Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* Transfer ownership function polishingSascha Wiswedel2019-12-171-6/+6
| | | | Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* Merge pull request #18359 from ↵blizzz2019-12-131-2/+49
|\ | | | | | | | | nextcloud/fix/18271/dismiss_transfer_ownership_notification Dismiss transferownership notification cancels transfer
| * Dismiss transferownership notification cancels transferRoeland Jago Douma2019-12-111-2/+49
| | | | | | | | | | | | Fixes #18271 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add typed events for the filesystem/scannerChristoph Wurst2019-12-133-22/+17
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18224 from nextcloud/bugfix/noid/direct-editing-pathRoeland Jago Douma2019-12-111-2/+2
|\ | | | | Use file path for direct editing
| * Use file path for direct editingJulius Härtl2019-12-051-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Pick a shorter name for the transfer ownership tableJoas Schilling2019-12-102-10/+13
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18256 from nextcloud/files-aditional-scripts-new-eventsRoeland Jago Douma2019-12-091-1/+1
|\ \ | | | | | | Use non-depricated events for loading additional scripts in files app
| * | use OCP\EventDispatcher\GenericEvent for loading additional scripts in the ↵Robin Appelman2019-12-051-1/+1
| |/ | | | | | | | | | | files app Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Decouple resource provider registrationDaniel Kesselberg2019-12-071-4/+4
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #18242 from nextcloud/directEditingEditorWithIdRoeland Jago Douma2019-12-051-0/+1
|\ \ | | | | | | add id to editor of direct editing
| * | add id to editor of direct editingtobiasKaminsky2019-12-051-0/+1
| |/ | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* / Update license headersChristoph Wurst2019-12-0545-66/+154
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17913 from ↵Roeland Jago Douma2019-12-041-1/+6
|\ | | | | | | | | nextcloud/fix/transfer-ownership-move-files-error-handling Catch file transfer error and stop transfer ownership command
| * Catch file transfer error and stop transfer ownership commandChristoph Wurst2019-11-271-1/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>