summaryrefslogtreecommitdiffstats
path: root/apps/files/js
Commit message (Collapse)AuthorAgeFilesLines
* Fix scrolling while dragging in file list viewLouis Chemineau2023-01-051-17/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Add component testingJohn Molakvoæ2023-01-042-8/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix preview cropJohn Molakvoæ2023-01-044-15/+22
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port settings to ModalJohn Molakvoæ2023-01-043-98/+48
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port Files navigation to vueJohn Molakvoæ2023-01-042-23/+32
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace custom tooltips with native ones in filesjulia.kirschenheuter2022-12-228-49/+10
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Merge pull request #35521 from ↵Simon L2022-12-061-4/+4
|\ | | | | | | | | nextmcloud/nmcpr/1416-prevents-selection-of-encrypted-folders [BUGFIX] Prevents the selection of encrypted files at the bottom of the list(before scrolling)
| * Prevents the selection of encrypted files when scroll the pagekavita.sonawane@t-systems.com2022-12-011-4/+4
| | | | | | | | Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
* | Merge pull request #35299 from ↵Vincent Petry2022-11-221-1/+7
|\| | | | | | | | | nextmcloud/nmcpr/1416-prevents-selection-of-encrypted-folders Prevents the selection of encrypted folders when clicking on the "Select all" checkbox
| * Prevent selection of encrypted folderskavita.sonawane@t-systems.com2022-11-221-1/+4
| | | | | | | | Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
| * Prevents the selection of encrypted folder on next page loadkavita.sonawane@t-systems.com2022-11-221-1/+1
| | | | | | | | Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
| * Prevents the selection of encrypted folder on scroll pagekavita.sonawane@t-systems.com2022-11-221-1/+2
| | | | | | | | Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
| * Add comments for prevents the selection of encrypted folderskavita.sonawane@t-systems.com2022-11-221-0/+1
| | | | | | | | Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
| * Filelist:-Deselecting all files checkboxes within cells of encrypted folderkavita.sonawane@t-systems.com2022-11-221-1/+2
| | | | | | | | Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
* | Also cancel XHR when cancelling uploadsVincent Petry2022-11-181-0/+9
|/ | | | | | Fixes issue when cancelling a long list of uploads. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix sidebar not automatically hidden in Files appDaniel Calviño Sánchez2022-11-092-3/+3
| | | | | | | | | | | | | | | | Although the Files app creates the legacy sidebar (details view) it is then replaced with the newer Vue app sidebar. Due to this ".detailsView" no longer finds an element and therefore nothing was hidden when "hideAppSidebar($('.detailsView'))" was called (for example, when changing to another section). However, "OC.Apps.hideAppSidebar()" does not properly work either with the Vue sidebar used in the Files app (once hidden the sidebar is not shown again). For simplicity, and to avoid any possible side effect in other apps from changing "OC.Apps.hideAppSidebar", now "OC.Files.Sidebar.close()" is used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Require a token for "Edit locally"Joas Schilling2022-10-111-5/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* do not show editlocally on mobileszaimen2022-10-111-23/+25
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #34134 from nextcloud/Valdnet-patch-4Joas Schilling2022-09-271-2/+2
|\ | | | | l10n: Fix text string
| * l10n: Correct text stringValdnet2022-09-191-2/+2
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Remove port parameter which is included in hostChristopher Ng2022-09-211-1/+1
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Use computer icon for edit locally file actionChristopher Ng2022-09-211-2/+2
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add edit locally file actionChristopher Ng2022-09-202-0/+33
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Reset global search on files sidebar navigation changeChristopher Ng2022-09-151-0/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix grid view toggleVincent Petry2022-09-142-29/+44
| | | | | | | | | | Move grid view logic to the files app itself because the button does not belong to any specific file list. Then inject the grid view state when switching file lists. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-054-8/+8
| | | | | | | 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 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>