aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ViewControllerTest.php
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>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-4/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-2/+2
| | | | 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>
* 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-291-29/+4
| | | | 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-181-0/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-061-18/+1
| | | | 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-041-10/+14
| | | | 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-241-9/+9
| | | | 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>
* 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-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-141-0/+2
| | | | | | | | | | | | | | 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-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-7/+7
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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-251-31/+31
| | | | 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>
* Add pending share list to frontendJulius Härtl2020-01-071-0/+11
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-051-3/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-6/+6
| | | | | | | | | | | * 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>
* Add new LoadAdditionalScriptsEventRoeland Jago Douma2019-09-231-1/+2
| | | | | | | This adds a new event that is in the new style of event dispatching. This should allow more lazy loading and better sepeartion of concerns Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Revert "Fix usage view tests"Daniel Kesselberg2019-07-021-1/+1
| | | | | | This reverts commit 7da7acd0 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix usage view testsRoeland Jago Douma2019-07-021-1/+1
| | | | | | Follow up to #16049 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Rollback to default list viewJohn Molakvoæ (skjnldsv)2018-11-151-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>