summaryrefslogtreecommitdiffstats
path: root/apps/files/js
Commit message (Collapse)AuthorAgeFilesLines
* Fix file list scrollingJulius Härtl2022-09-012-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #33746 from nextcloud/a11y/33739/fix-legacy-navVincent Petry2022-08-311-2/+2
|\ | | | | Add a11y attributes for legacy app navigation
| * Add a11y attributes for legacy app navigationVincent Petry2022-08-291-2/+2
| | | | | | | | | | | | | | Aded "role=navigation" Added "aria-current=page" for the currently selected item. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Remove copy in file actions when not allowedVincent Petry2022-08-262-2/+20
|/ | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add ```aria-expanded``` value to select2-container om systemtag and file tagsjulia.kirschenheuter2022-08-174-2/+13
| | | | | | | | | | | | Add ```aria-expanded``` to color picker Add ```aria-expanded``` to UnifiedSearch.vue Add ```aria-expanded``` to new button on files Add ```aria-expanded``` to action menu Add ```aria-expanded``` to icon .federation-menu Add ```aria-expanded``` to app navigation collapse button Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Show usage percenteage in the tooltipDaniel Calviño Sánchez2022-08-101-1/+1
| | | | | | | | | | | | | The tooltip of the initial quota display showed the usage percenteage and the total available space. However, the total available space was redundant, as it was shown just below. The tooltip of the updated quota display showed the usage percenteage, but based on the quota rather than the total available space, so there was a mismatch between the tooltip and the bar below. Now the tooltip of the initial and the updated quota display both show just the usage percenteage based on the total available space. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use total available space rather than quota when updating the displayDaniel Calviño Sánchez2022-08-101-2/+3
| | | | | | | | | The initial quota display uses the total available space rather than the quota. Moreover, the relative usage is based on the total space rather than the quota. Due to this now the total available space is also used when updating the quota display. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #32482 from nextcloud/enh/noid/share-attributesCarl Schwan2022-08-011-0/+9
|\ | | | | Add share attributes + prevent download permission
| * Add share attributes + prevent download permissionVincent Petry2022-07-281-0/+9
| | | | | | | | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Merge pull request #33394 from ↵Julia Kirschenheuter2022-07-281-3/+4
|\ \ | |/ |/| | | | | nextcloud/fix/fix-370-Label_not_connected_to_form-element_in_file_listing Connect ```input``` checkbox with corresponding file name via ```aria-describedby```
| * Connect ```input``` checkbox with corresponding file name via ↵julia.kirschenheuter2022-07-281-3/+4
| | | | | | | | | | | | ```aria-describedby``` Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* | Merge pull request #33299 from nextcloud/fix/files-dark-color-themeLouis2022-07-281-2/+5
|\ \ | |/ |/| [files app]: Fix dark color mode detection for filelist
| * files: Fix colormode detection for filelistFerdinand Thiessen2022-07-261-2/+5
| | | | | | | | | | | | | | | | | | | | When system default color theme is selected for theming, the `enabledThemes` array is empty or just contains on entry `'default'`, in this case the color theme has to be retrieved from the browser to ensure text like the modified date is readable. This fixes #33298 Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | Remove more legacy idsVincent Petry2022-07-272-4/+1
| | | | | | | | | | | | | | | | 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>
* | Merge pull request #33373 from nextcloud/techdebt/noid/remove-legacy-dirVincent Petry2022-07-271-4/+6
|\ \ | | | | | | Remove legacy #dir element in files list
| * | Remove legacy #dir element in files listVincent Petry2022-07-271-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #33271 from nextcloud/enh/a11y-new-file-menuVincent Petry2022-07-271-2/+2
|\ \ \ | |/ / |/| | Use explicit name for new file/folder menu
| * | Use explicit name for new file/folder menuChristopher Ng2022-07-181-2/+2
| |/ | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* / Replace files app ids to classesVincent Petry2022-07-265-47/+48
|/ | | | | | | | | | | 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>
* Merge pull request #32993 from nextcloud/fixes-for-quota-text-in-navigation-barDaniel Calviño Sánchez2022-07-052-4/+10
|\ | | | | Fixes for quota text in navigation bar
| * Fix quota text not updated after copying or moving a fileDaniel Calviño Sánchez2022-06-231-2/+8
| | | | | | | | | | | | | | | | | | | | Note that the quota may change too when files are moved if the file is moved, for example, to or from a folder shared by other user. Besides the quota the storage statistics are also updated, similar to what is done when a file is deleted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Fix quota text shown escapedDaniel Calviño Sánchez2022-06-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | "t()" escapes and sanitizes the returned text by default, so strings like "<" are converted to "&lt;". However, the "jQuery.text()" parameter does not need to be escaped, as "&lt;" is shown literally as "&lt;" rather than "<". Now "jQuery.html()" is used instead, which "unescapes" the given text and sets it as a new text node (as the text in the parameter does not contain markup for elements, only text). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #33107 from nextcloud/enh/a11y-dynamic-grid-toggle-tooltipPytal2022-07-051-5/+9
|\ \
| * | Change tooltip title of files grid view toggle dynamicallyChristopher Ng2022-07-041-5/+9
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | add missing GET param to getstoragestats urlJulien Veyssier2022-07-051-1/+1
| | | | | | | | | | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* | | Fix 404 when using index.php in the urlCarl Schwan2022-07-051-2/+4
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Fix translation of home breadcrumbChristopher Ng2022-07-041-1/+1
|/ / | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Merge pull request #32962 from nextcloud/getstoragestat-change-urlCarl Schwan2022-06-231-2/+2
|\ \ | |/ |/| Remove .php from url
| * Remove .php from urlCarl Schwan2022-06-211-2/+2
| | | | | | | | | | | | | | Probably here for legacy reasons, but it is a bit weird to call an .php endpoint that doesn't correspond to a .php file Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add title to file nameCarl Schwan2022-06-211-1/+1
|/ | | | | | Fix #32157 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix default toast message for failed uploads with HTTP/2Daniel Calviño Sánchez2022-06-141-1/+1
| | | | | | | | | | | | | | | | When an upload fails a toast is shown with either a specific message or just the textual part of the HTTP error code (which comes from the upload failure handler and set by "jQuery.ajax()". However, if there is neither a message nor an error then the toast will show the default message from the Toastify-js library, which is an undescriptive "Hi there!". When HTTP/2 is used Chromium does not provide the textual part of the HTTP error code, so when an upload fails the toast can receive an empty message and thus just show "Hi there!". Now an explicit message is provided as a fallback to prevent that. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* l10n: Delete apostropheValdnet2022-06-071-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Improve accessibility with more visible focus indication for non vue appsCarl Schwan2022-05-161-1/+3
| | | | | | | | | | | | - 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-20/+3
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Remove accessibilityJohn Molakvoæ2022-04-211-1/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix filelist not loading after refresh in firefoxRobin Appelman2022-04-071-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Explicitly close div elementLouis Chemineau2022-04-043-5/+5
| | | | | | Fix: #30002 Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* try to fix broken tooltipszaimen2022-02-141-1/+0
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #30925 from ↵Louis2022-02-081-3/+20
|\ | | | | | | | | paierlep/feature/breadcrumb_menu_parent_folder_visible Show the child folders in the breadcrumb menu when on a parent entry.
| * Show the parent folders in the breadcrumb menu when on a child entry.Christian Paier2022-02-021-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Fix bugs with incorrect currentFileList in the favorite and share by youCarl Schwan2022-02-031-0/+6
|/ | | | | | | | view This was causing bugs when trying to create new template in this views Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Properly hide progress bar after errorVincent Petry2022-01-121-5/+16
| | | | | | | | | Whenever an error occurs, also hide the progress bar. The logic was also adjusted to properly detect uploads that are pending deletion, in which case the progress bar can already be hidden. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Properly abort uploadsVincent Petry2022-01-121-9/+36
| | | | | | | | | Add a new approach for flagging an upload as aborted because we can't rely on the browser fully cancelling the request as we now seem to receive an error response from the server instead of a jQuery "abort" message. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #30572 from nextcloud/fix/lint_warningsLouis2022-01-128-34/+34
|\ | | | | Fix lint warnings
| * Add generic type and description when its missingLouis Chemineau2022-01-111-4/+4
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
| * Typing correctionsLouis Chemineau2022-01-118-31/+31
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Trigger "changeDirectory" even on URL changeVincent Petry2022-01-112-9/+14
|/ | | | | | | | | | | | | | | | | When using the browser back button or clicking on sections on the left sidebar (like favorites), the "changeDirectory" jQuery event did not get called, so apps like recommendations would not notice the directory change. This fixes the issue by also setting changeUrl to true when the file list's directory got changed as a result from a URL change. Added optional changedThroughUrl argument to make sure the event recipient knows if the change was done through a URL change and make it possible prevent a loop in the onDirectoryChange handler that actually changes the URL when the origin was already from a URL change. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Delete outdated bundlesJohn Molakvoæ (skjnldsv)2022-01-086-1110/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump core-js from 3.20.0 to 3.20.1dependabot[bot]2022-01-016-6/+6
| | | | | | | | | | | | | | | | | Bumps [core-js](https://github.com/zloirock/core-js) from 3.20.0 to 3.20.1. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v3.20.0...v3.20.1) --- updated-dependencies: - dependency-name: core-js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix template picker for file actions using the fileInfoModelJulien Veyssier2021-12-302-3/+3
| | | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>