aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* fix(tests): update jsunit tests after dep and files updateJohn Molakvoæ2023-04-064-14/+14
| | | | 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>
* Adjust breadcrumb navigation structure to the navigation listjulia.kirschenheuter2023-04-041-5/+5
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Fix name of skip method for phpunitCôme Chilliet2023-02-071-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve behavior with dates on 32bits and fix tests or skip themCôme Chilliet2023-02-071-1/+4
| | | | | | | We do not support events after 2038 on 32bits but still behave better when date range start/end is after 2038. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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-045-279/+35
| | | | 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>
* Adapt tests to new job constructorsCôme Chilliet2022-12-051-5/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-3/+3
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix jsunit testsJulius Härtl2022-09-012-4/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #33047 from nextcloud/fix/ijob-logger-deprecatedCarl Schwan2022-08-231-0/+2
|\ | | | | Deprecated ILogger from IJob
| * Port existing server code to new interfaceCarl Schwan2022-08-081-0/+2
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Use user name cache in activity providersJoas Schilling2022-08-191-9/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove more legacy idsVincent Petry2022-07-272-2/+2
| | | | | | | | Remove more unused legacy ids from early ownCloud times. This reduces the number of duplicate ids in the DOM. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Remove legacy #dir element in files listVincent Petry2022-07-274-20/+19
| | | | | | | | | | Removed legacy "#dir" input element in the DOM. Apps should use OCA.Files.App.currentFileList or OCA.Sharing.PublicApp.fileList and call getCurrentDirectory() to retrieve the current directory and changeDirectory() to change it. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace files app ids to classesVincent Petry2022-07-268-134/+136
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Remove at() matcher for tests for files appCôme Chilliet2022-05-243-21/+19
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve accessibility with more visible focus indication for non vue appsCarl Schwan2022-05-161-4/+4
| | | | | | | | | | | | - Add visible-focus effect on each header entry - Show focus outline when using focus-visible (keyboard navigation) - Add polyfy for focus-visible since it's only very recently available on webkit - Change text for link to home button to describe the destination and not the current page - Improve focus effect in app sidebar navigation Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Show the child folders in the breadcrumb menu when on a parent entry."Simon L2022-04-291-4/+2
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* fix filelist not loading after refresh in firefoxRobin Appelman2022-04-071-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix ILogger instances in application tests for core parametersCôme Chilliet2022-03-241-2/+2
| | | | 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>
* Show the parent folders in the breadcrumb menu when on a child entry.Christian Paier2022-02-021-2/+4
| | | | | | | | | | | | Previously, clicking on an menu item in the breadcrumb menu removed the parent entries of the path, i.e.: Clicking on the "to" entry in "/path/to/some/folder" changed the breadcrumb menu to show only the "/path/to" entries. With this change the breadcrumb menu changes this behaviour as the full path is still visible (and usable) but with the "to" entry beeing highlighted. Signed-off-by: Christian Paier <hallo+git@cpaier.com>
* Replace license information to SPDX expressionLouis Chemineau2022-01-1114-15/+15
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix testsRobin Appelman2021-12-021-3/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* Merge pull request #27196 from ↵John Molakvoæ2021-10-201-1/+1
|\ | | | | | | nextcloud/fix/ApiControllerTest-testShowHiddenFiles
| * Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviewsJohn Molakvoæ (skjnldsv)2021-10-131-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix bug introduced on drag and drop external filespjft2021-08-131-0/+1
|/ | | | | | | | | | | | | | | | | | Drag and drop of external (OS filesystem) to subdirectories in the browser would fail on specific cases, mainly when the subdirectory was no longer off the root folder. This seemed to have been an issue introduced with the subdirectory free space calculation [here](https://github.com/nextcloud/server/commit/f9536b08096ed1c80391af36d33a18198be1fced) and it seems to fail for any subdirectory that doesn't belong to the root folder. Bug reports: - https://help.nextcloud.com/t/drag-drop-into-subfolders/120731 - https://github.com/nextcloud/server/issues/24720 I couldn't find any reference on scenarios or quota management that would suggest when a subdirectory's free space would be different to the parent's free space, other than when on the root folder, where subdirectories can be external mounts. As such, if my understanding is correct (please review), this calculation can - and should - be made by getting the free space from the first subdirectory in the total path, which caters for all subdirectory scenarios. Please advise, happy to help improve this. Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com> Signed-off-by: pjft <pjft@users.noreply.github.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-0410-19/+6
| | | | 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>
* Merge pull request #26727 from nextcloud/group-exclude-link-shareMorris Jobke2021-05-211-0/+7
|\ | | | | Add option to exclude groups from creating link shares
| * load share settings from the share manager in more placesRobin Appelman2021-05-121-0/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Change the values in testValdnet2021-05-101-3/+3
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Change the values in the testValdnet2021-05-101-5/+5
|/
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-3114-211/+320
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-166-6/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check for target folder available quota when uploadingJulius Härtl2020-11-171-0/+5
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump jquery from 2.2.4 to 3.1.0Christoph Wurst2020-11-135-225/+245
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* only run the background scanner for users that have unscanned filesRobin Appelman2020-10-201-95/+60
| | | | | | instead of looping trough all users and seeing if they have unscanned files, we do a single query to find all storages that need scanning and run trough the users for them Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-243-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* merge file activity settings into a single 'favorite changed' itemRobin Appelman2020-08-131-8/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-14/+14
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>