aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js
Commit message (Collapse)AuthorAgeFilesLines
* chore(files): Remove legacy UI scripts now that everything is migrated to VueFerdinand Thiessen2024-09-2010-6290/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2910-244/+30
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(cypress): formatFileSize change revert from files libraryJohn Molakvoæ2023-11-083-13/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: remove old fileUploadSpec jsunit testJohn Molakvoæ2023-09-011-303/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore: remove old favorites viewJohn Molakvoæ2023-07-052-235/+0
| | | | 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>
* Adjust breadcrumb navigation structure to the navigation listjulia.kirschenheuter2023-04-041-5/+5
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Fixing testsJohn Molakvoæ2023-01-043-268/+15
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.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>
* 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>
* 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>
* 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 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>
* 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>
* 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>
* Allow opening files for editing in new tabsAzul2020-04-091-30/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a file list files with a default action have an href that will trigger the action. This way ctrl-click and middle button click open the default action in a new tab. In order to achieve this a new param `openfile` was introduced to the files app. It will make the files app trigger the default action for the file in question. This also allows linking to file content rather than just the details display. Introduce fileList.getDefaultActionUrl() to create a link with that param set. It's overwritten in the trashbin fileList so that anchors continue to have `#` as a href. Fix the link generation for subfolders of public shares: 58a87d0 was the last commit that touched the linkTo function in public.js. It included the params as arguments to the generateUrl function. Turns out this completely ignores the dir parameter now. The inclusion was reverted in other places so revert it here as well. Also change `dir` to `path` in the param as that is respected when following the link. Add Test for the new link url for files with default action. Remove test for multiple selects with ctrl-click as that is not what we are doing anymore. Signed-off-by: Azul <azul@riseup.net>
* Adjust unit tests to new OCA.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-208/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove deprecated legacy file actionsJulius Härtl2019-10-142-92/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add link icon for public link tooJohn Molakvoæ (skjnldsv)2019-03-211-2/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unit testsTomasz Grobelny2019-02-201-49/+95
| | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Merge branch 'master' into operation_progress_improvements3Tomasz Grobelny2019-01-291-1/+2
|\ | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * Add abort stub in JSUnitMorris Jobke2018-12-061-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix unit testsTomasz Grobelny2018-11-242-176/+279
|/ | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Enhance jsunit testsMorris Jobke2018-11-151-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix file move testsJulius Härtl2018-11-071-4/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix move related testsTomasz Grobelny2018-11-031-54/+63
| | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Use grid view in other file views tooJan-Christoph Borchardt2018-10-184-4/+4
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Tests: Properly compare the file action labelJulius Härtl2018-10-151-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix usage of deprecated OC.webrootChristoph Wurst2018-10-095-37/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Improves the testsMichael Weimann2018-08-171-9/+24
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Adds a test to check that the sorting isn't stored without an userMichael Weimann2018-08-171-0/+16
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Merge pull request #10310 from nextcloud/accessibility-headerMorris Jobke2018-07-251-11/+11
|\ | | | | Accessibility fixes for header and global elements
| * Fix ability to open file or folder via keyboard, fix #10008Jan-Christoph Borchardt2018-07-241-11/+11
| | | | | | | | | | | | | | | | | | | | | | Before, the file or folder was opened when clicking on the name span, but not when clicking on the link that contains the name; clicking on the link highlighted the file and opened the sidebar, just like clicking on the file size or date. Now clicking on the link opens the file or folder, so the unit tests that tested clicks on the link were changed to test clicking on the file size instead. Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | Jsunit fixes 1John Molakvoæ (skjnldsv)2018-07-202-2/+5
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-07-121-12/+12
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Adds a test case for the loading symbol in deleted files.Abijeet2018-06-181-1/+1
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixed failing test cases for the new actions menu.Abijeet2018-06-181-18/+44
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fix jsunit testsJulius Härtl2018-05-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixed jsunitJohn Molakvoæ (skjnldsv)2018-03-081-1/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update comments in testsDaniel Calviño Sánchez2018-02-281-3/+4
| | | | | | | Menu and home are not always visible; home is always visible, but menu is shown only when needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix menu visibilityDaniel Calviño Sánchez2018-02-281-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | The crumb for the menu was shown like any other crumb when calling "_showCrumb", but it was also shown when other crumbs were hidden without taking into account the available width. This caused several related problems, like the breadcrumbs taking too much space when the menu was sometimes shown after the rest of the crumbs were adjusted to the available width, or the menu being shown instead of the last crumb even if there was room for it when the available width was increased. Now the menu is always hidden before starting the resizing of the crumbs to ensure that whether it was previously shown or not does not affect the result. In a similar way, the menu will no longer be shown by "_showCrumb", as it is not a regular crumb that has to be shown simply if there is enough room. The menu is now shown as soon as any other crumb is hidden; this ensures that the menu width will be taken into account in further width checks. As when _updateMenu" is called it no longer needs to take care of showing the menu this fixes the issue revealed when fixing the test setup in the previous commit. Finally, this implicitly fixes the failure in the breadcrumbs tests when run on Firefox, as it was caused by the menu interfering in the calculations of the other crumbs when increasing the width. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>