summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Sabre
Commit message (Collapse)AuthorAgeFilesLines
* Base versions' has-preview on mimetypeLouis Chemineau2023-07-032-26/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Provide hasPreview in files_versions DAV APILouis Chemineau2023-07-032-2/+29
| | | | | | | This allow to no request non existing previews I also set some properties to the img element to reduce preview loading to what the browser think is necessary Signed-off-by: Louis Chemineau <louis@chmn.me>
* Document that size may be a float in new class VersionEntityCôme Chilliet2023-02-071-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Handle empty files in version creation logicLouis Chemineau2023-01-261-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow to delete a version through DAVLouis Chemineau2023-01-261-2/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support getting and patching version-labelLouis Chemineau2023-01-262-5/+45
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Remove allmost all deprecation from the files_version appCarl Schwan2021-07-234-9/+11
| | | | | | | | | | The remaining deprecations are related to Utils::hooks and I will take a look at how EventDispatcher works before working on them. Aside from the deprecations, this patch also does a few minor improvements around type hinting. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-14/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-3/+0
| | | | | | | | | | | | | | | 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>
* Remove unused importsChristoph Wurst2020-03-252-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-057-7/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-1/+1
| | | | | | | | | | | * 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>
* 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>
* 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-016-59/+96
| | | | | | | 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>
* 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-015-0/+418
listed as versions/<username>/versions/<file id>/<timastamp> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>