aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove trailing and in between spacesChristoph Wurst2020-04-093-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-096-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-2/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-274-4/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-254-4/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-31/+31
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix mismatching docblock return typesChristoph Wurst2020-03-061-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18231 from nextcloud/fix/shared_version_restoreRoeland Jago Douma2019-12-092-11/+8
|\ | | | | Fix restoring shared versions
| * Fix restoring shared versionsRoeland Jago Douma2019-12-052-11/+8
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Update license headersChristoph Wurst2019-12-0527-36/+99
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* respect shareapi_allow_share_dialog_user_enumeration in Principal backend ↵Georg Ehrke2019-12-031-1/+2
| | | | | | for Sabre/DAV Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Some php-cs fixesRoeland Jago Douma2019-11-228-13/+12
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix files_versions app LoadSidebar eventJohn Molakvoæ (skjnldsv)2019-11-064-29/+143
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #17509 from nextcloud/fix/application-singletonJohn Molakvoæ2019-11-041-2/+2
|\ | | | | Fix Application instances created multiple times
| * Do not create Application instances directlyChristoph Wurst2019-10-111-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | use OCP\EventDispatcher\Event over Symfony's deprecated EventArthur Schiwon2019-10-171-3/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Set the proper filename for version downloadsRoeland Jago Douma2019-10-142-0/+87
|/ | | | | | | Before it just used the internalid (timestamp often) which is not really user friendly. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the proxymapper to obtain valid proxy dataRoeland Jago Douma2019-08-151-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure we only fetch the file by id for the actual ownerJulius Härtl2019-08-011-1/+1
| | | | | | | Otherwise this will fetch all mounts for the file id which is quite expensive and causes long saving times in big sharing structures Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #15869 from nextcloud/multiple-version-backendsRobin Appelman2019-06-191-10/+21
|\ | | | | fix loading multiple version backends from one app
| * fix loading multiple version backends from one appRobin Appelman2019-06-041-10/+21
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow non integer version idsRobin Appelman2019-06-046-10/+10
|/ | | | | | | currently version ids are timestamps, but for storage provided versions this is not always the case and they might be strings Signed-off-by: Robin Appelman <robin@icewind.nl>
* add way for version backends to programmatically specify if they should be usedRobin Appelman2019-05-213-12/+45
| | | | | | this allows for backends that should only be used if specific conditions are met Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #6512 from coletivoEITA/add_circles_sharing_to_caldavMorris Jobke2019-03-131-1/+2
|\ | | | | Change CALDAV to allow calendars be shared with circles.
| * Use proper dependency injection for app managerMorris Jobke2019-03-051-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | set availableSpace to 0 if userFolder not foundFelix Nieuwenhuizen2019-03-021-6/+7
| | | | | | | | Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
* | use node API for free space calculation in versions app (same method as ↵Felix Nieuwenhuizen2019-03-021-3/+5
|/ | | | | | trashbin app) Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
* Move of files_versions to webpackRoeland Jago Douma2019-02-131-1/+1
| | | | | | | | * Move CSS into bundle * Old merged.json no longer needed! * No need to load the style still Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow shared versions again in legacy backendRoeland Jago Douma2019-01-251-2/+15
| | | | | | | | To make sure that the versions in the legacy backend are shared again we have to check the storage of a file. Since all shared files are still on the owners storage. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* actually return the user when creating version dav nodesRobin Appelman2018-11-151-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* modular versions apiRobin Appelman2018-11-0116-102/+726
| | | | | | | Allows apps to register version backends for storage types The existing versions backend is wrapped in a "legacy" backend. Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow admins to override FreeBusy capabilities without modifying ShareAPI ↵Georg Ehrke2018-05-221-1/+2
| | | | | | capabilities Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Delete the previews when a version is restoredRoeland Jago Douma2018-05-141-0/+8
| | | | | | | | | Fixes #9469 When a version of a file is restored the previews are no longer valid. Thus we should remove them so they are regenerated. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use more magic DI in files_versionsRoeland Jago Douma2018-05-114-28/+8
| | | | | | | There is no need to register this. The system can figure out by itself what it needs to do :) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* If not in debug disable principal listingRoeland Jago Douma2018-05-081-1/+5
| | | | | | | Trashbin and Version should have the same behaviour as the other collections. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to read get old versionsRoeland Jago Douma2018-05-012-4/+20
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add rollbackRoeland Jago Douma2018-05-014-0/+103
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add version collection to DAVRoeland Jago Douma2018-05-016-0/+431
| | | | | | | listed as versions/<username>/versions/<file id>/<timastamp> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-4/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-292-10/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-262-5/+5
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8053 from nextcloud/simplify-substrJoas Schilling2018-01-261-1/+1
|\ | | | | Use short for of substr to not need strlen()
| * Use short for of substr to not need strlen()Morris Jobke2018-01-251-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use $var[] = $a instead of array_push - 2x fasterMorris Jobke2018-01-251-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-2/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded check if app is enabledMorris Jobke2017-10-231-44/+28
| | | | | | App code will not be executable if the app is not enabled, because the autoloader refuses to load that class. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to disable versions for some filesBjoern Schiessle2017-09-152-0/+93
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove undocumented configJoas Schilling2017-08-011-77/+73
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>