aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/app.js
Commit message (Collapse)AuthorAgeFilesLines
* chore(files): Remove legacy UI scripts now that everything is migrated to VueFerdinand Thiessen2024-09-201-398/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-11/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Remove some dead code in files appVarun Patil2023-05-171-3/+0
| | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* fix(search): fix load moreJohn Molakvoæ2023-05-161-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Do not show Tags action when systemtag is disabledLouis Chemineau2023-04-271-6/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-061-1/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): actions apiJohn Molakvoæ2023-04-061-1/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): custom columnsJohn Molakvoæ2023-04-061-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files_trashbin): migrate to vueJohn Molakvoæ2023-04-061-3/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add component testingJohn Molakvoæ2023-01-041-6/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix preview cropJohn Molakvoæ2023-01-041-9/+17
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port settings to ModalJohn Molakvoæ2023-01-041-64/+10
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port Files navigation to vueJohn Molakvoæ2023-01-041-22/+32
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace custom tooltips with native ones in filesjulia.kirschenheuter2022-12-221-9/+3
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Fix sidebar not automatically hidden in Files appDaniel Calviño Sánchez2022-11-091-2/+2
| | | | | | | | | | | | | | | | 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>
* l10n: Correct text stringValdnet2022-09-191-2/+2
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.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-141-1/+42
| | | | | | | | | | 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>
* Merge pull request #30572 from nextcloud/fix/lint_warningsLouis2022-01-121-1/+1
|\ | | | | Fix lint warnings
| * Typing correctionsLouis Chemineau2022-01-111-1/+1
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Trigger "changeDirectory" even on URL changeVincent Petry2022-01-111-4/+6
|/ | | | | | | | | | | | | | | | | 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>
* add missing order attribute to tag multiselect actionJulien Veyssier2021-07-291-1/+2
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* add an option to the multiple files selected actions to add and remove tags ↵Roland Scheidel2021-07-231-0/+5
| | | | | | | from multiple files at once Signed-off-by: Roland Scheidel <kontakt@scheidel.at> Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Trigger click event when scrollTo is setLouis Chemineau2021-06-091-0/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow apps to register a file action for multiselectJulius Härtl2021-05-121-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add "Crop image previews" setting to filesNina Pypchenko2021-01-141-1/+31
| | | | | | | | | | | | | | 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>
* Expose currently active file list though OCA.Files.AppJulius Härtl2020-08-251-0/+25
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use DOMContentLoaded and fix sharebymail loading issueJohn Molakvoæ (skjnldsv)2020-07-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove deprecated legacy file actionsJulius Härtl2019-10-141-6/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add more accessible method of selecting file rangesTomasz Grobelny2019-01-241-1/+2
| | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Only check whatsnew once per hourRoeland Jago Douma2018-12-201-1/+4
| | | | | | | | Store the last check in the session storage. (Which gets cleared on logout). And only check once an hour. Saves a request to the server on most requests when browsing. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fixed scrolling containerJohn Molakvoæ (skjnldsv)2018-07-241-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #10110 from nextcloud/feature/100500/whats-new-info-usersMorris Jobke2018-07-131-0/+2
|\ | | | | Display What's New info to users
| * Backend work to provide NC whats New info to usersArthur Schiwon2018-07-051-0/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Fixed testsJohn Molakvoæ (skjnldsv)2018-07-121-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fixed favorite folder view displayJohn Molakvoæ (skjnldsv)2018-07-121-2/+2
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Added toggleable QuickAccessfnuesse2018-07-121-38/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: fnuesse <felix.nuesse@t-online.de> Deleted wrongly commited File Signed-off-by: fnuesse <felix.nuesse@t-online.de> Added quickaccess-state persistence Signed-off-by: fnuesse <felix.nuesse@t-online.de> Started implementing sorting-algorithm for proper alphabetical display Signed-off-by: fnuesse <felix.nuesse@t-online.de> Finished Sorting of Quickaccess elements Signed-off-by: fnuesse <felix.nuesse@t-online.de> Implemented persistence for reverse-list and sorting-strategy Signed-off-by: fnuesse <felix.nuesse@t-online.de> Implemented initial sorting for reverse-list and sorting-strategy Signed-off-by: fnuesse <felix.nuesse@t-online.de> Refactored Code Signed-off-by: fnuesse <felix.nuesse@t-online.de> Refactored Code Signed-off-by: fnuesse <felix.nuesse@t-online.de> Refactored Code Signed-off-by: fnuesse <felix.nuesse@t-online.de>
* | Added FavoritesQuickaccess-Sidebarfnuesse2018-07-121-1/+39
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added FavoritesQuickaccess-Sidebar Added Files-FavoritesQuickaccess-Toggle Fixed CSS for SpacerElement Removed Unnessessary Alerts and added Translations Tried fixing initial Quick-Access Checkboxstate Signed-off-by: fnuesse <fnuesse@techfak.uni-bielefeld.de> Tried fixing initial Quick-Access Checkboxstate Changed double-Quotes to single-Quotes Revert webdavurl which was changed by mistake Revert quota-icon which was changed by mistake Changed the Folderhandling from custom-designed to nextcloud-NavigationManager-handling Signed-off-by: fnuesse <fnuesse@techfak.uni-bielefeld.de> Moved CSS-Spacerclass to apps.scss for global usage Signed-off-by: fnuesse <felix.nuesse@t-online.de> Renamed settings-caption in apps.scss to app-navigation-caption Signed-off-by: fnuesse <felix.nuesse@t-online.de> Removed old input-tag for showQuickAccess-state Signed-off-by: fnuesse <felix.nuesse@t-online.de> Removed old spacer element in files.scss Signed-off-by: fnuesse <felix.nuesse@t-online.de> Changed style of favorites-sublist and disabled the ability to disable files-quickaccess Signed-off-by: fnuesse <felix.nuesse@t-online.de>
* Fixes issues found during running of test cases.Abijeet2018-06-181-1/+1
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Added a new action menu in files and trash list.Abijeet2018-06-181-1/+18
| | | | | | | | Uses the new file-multi-select-menu component. Towards #7647 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Enable chunking for bigger files in authenticated web uploadVincent Petry2017-11-031-1/+2
| | | | | | | | | | | | | | | | This commit adds chunked uploads in the Web UI (for authenticated users, but not for public uploads). To do that the server endpoint used by the uploader is changed from WebDAV v1 to WebDAV v2. The chunking itself is done automatically by the jQuery-File-Upload plugin when the "maxChunkSize" parameter is set; in "fileuploadchunksend" the request is adjusted to adapt the behaviour of the plugin to the one expected by "uploads/" in WebDAV v2. The chunk size to be used by the Web UI can be set in the "max_chunk_size" parameter of the Files app configuration. By default it is set to 10MiB. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Put the quota bar to the bottomMorris Jobke2017-06-131-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add quota to the files viewJoas Schilling2017-06-131-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* added quit option in commentstabview.jsnoveens2017-03-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-0/+1
| | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve the UX for "not found" perma linksJoas Schilling2016-06-071-0/+3
|
* Do not encode slashes in "dir" URL param in files JSVincent Petry2016-05-061-2/+15
|
* Auto-add fileid in URL for currently displayed folderVincent Petry2016-05-061-3/+21
|
* filter hidden files on the web interfaceChristoph Wurst2016-04-191-2/+49
| | | | | | | | | | | | | | | | | | add checkbox to toggle show/hide hidden files persist show hidden setting fix settings menu layout test ApiController::showHiddenFiles don't show hidden files by default Store config in Backbone model and inject it into FileList Filter files only temporarily when rending the file list Fix file rename validation
* persist file sorting changesChristoph Wurst2016-04-131-1/+4
|