aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller
Commit message (Collapse)AuthorAgeFilesLines
* fix(tests): Adapt tests to appManager usageCôme Chilliet2025-02-241-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): properly forward open params from short urlsskjnldsv2025-02-181-28/+114
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Harden thumbnail endpointFerdinand Thiessen2025-01-261-0/+85
| | | | | | | | - Catch all thrown exceptions and handle in such a way you do not get information about forbidden files. - Resepect download permissions of shares. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): add conversion actionskjnldsv2025-01-221-0/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(api): File conversion APIElizabeth Danzberger2025-01-151-0/+91
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-152-7/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-152-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* perf(files): Do not block files page load with server-side favorites retrievalChristopher Ng2024-08-271-48/+16
| | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* test(files): Fix ApiController testChristopher Ng2024-08-011-1/+16
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Ignore preview requests for invalid file idsJulius Härtl2024-07-221-0/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* refactor: Remove deprecated `Util` function for filename validation to ↵Ferdinand Thiessen2024-07-161-4/+7
| | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-292-53/+8
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): Use OCP\Util::getForbiddenFileNameChars instead of direct access ↵Ferdinand Thiessen2024-04-291-5/+0
| | | | | | to system config Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-5/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files): Remove dead code from files controllersFerdinand Thiessen2024-02-121-3/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): combine navigation and files list into single Vue appGrigorii K. Shartsev2024-01-251-5/+0
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): Adjust ID for skip content buttonsFerdinand Thiessen2023-12-211-0/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): disallow illegal charactersJohn Molakvoæ (skjnldsv)2023-10-041-1/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix(files): trashbin redirect and default fileid Sidebar openJohn Molakvoæ2023-08-171-156/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix various deprecation warnings in tests on PHP 8.3Côme Chilliet2023-08-141-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(files): migrate recent viewJohn Molakvoæ (skjnldsv)2023-08-021-17/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcherJoas Schilling2023-07-251-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: drop legacy sharing filesJohn Molakvoæ2023-07-111-74/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore: remove old favorites viewJohn Molakvoæ2023-07-051-79/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): add view config service to store user-config per viewJohn Molakvoæ2023-04-182-47/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-062-30/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): Quota in navigationJohn Molakvoæ2023-01-171-8/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix favourite openingJohn Molakvoæ2023-01-041-12/+16
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fixing testsJohn Molakvoæ2023-01-042-11/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port Files navigation to vueJohn Molakvoæ2023-01-041-4/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Remove at() matcher for tests for files appCôme Chilliet2022-05-242-14/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Redirection now only happens when dir is emptyCarl Schwan2022-02-211-4/+4
| | | | | | Otherwise dir it's just ignored and fileid is used Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove isIE and associated legacy scriptsJohn Molakvoæ (skjnldsv)2021-11-301-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix errors from files applications tests on PHP 8.1Côme Chilliet2021-11-231-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviewsJohn Molakvoæ (skjnldsv)2021-10-131-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Let apps toggle an unread counter on app iconsJulius Härtl2021-06-161-1/+7
| | | | | Co-authored-by: Louis Chemineau <louis@chmn.me> Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix test on masterLukas Reschke2021-05-291-1/+1
| | | | | | Regression by https://github.com/nextcloud/server/pull/26410 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* load share settings from the share manager in more placesRobin Appelman2021-05-121-0/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* files: Create files from template APIJulius Härtl2021-01-281-0/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add "Crop image previews" setting to filesNina Pypchenko2021-01-142-0/+15
| | | | | | | | | | | | | | Added a new user setting that toggles cropping on image previews in grid view. True (default value): crops each image to a square. False: keep original aspect ratio. Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com> Closes #18439. Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-9/+9
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+1
| | | | | | | | | | | | | | | 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>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-33/+33
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix webdav urlJohn Molakvoæ (skjnldsv)2020-01-101-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>