aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update file-upload.jsrakekniven2017-10-071-2/+2
|/ | | Fixed tiny translation issues. Removed space before ellipsis.
* Add proper labels to various form elements and buttonsJan-Christoph Borchardt2017-09-291-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* navigate to the root directory when showing the main filelistRobin Appelman2017-09-281-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix busy state loading animation in filesJohn Molakvoæ (skjnldsv)2017-09-231-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #6014 from nextcloud/add-copy-actionMorris Jobke2017-09-182-12/+127
|\ | | | | Allows files/folders to be copied.
| * Don't show success notifications for failed copy actions and update folder sizesThomas Citharel2017-09-151-33/+59
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Change move copy order and debug leftoverThomas Citharel2017-09-151-2/+2
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * [WIP] Added copy and move buttonsThomas Citharel2017-09-152-29/+20
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Allow files to be copied through action menu & multiple files actionsThomas Citharel2017-09-152-1/+99
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Force refresh file list when clicking on breadcrumb even if target directory ↵Chon Kou2017-09-161-1/+1
|/ | | | | | equals current directory. Signed-off-by: Chon Kou <k.kou@alumni.ubc.ca>
* Move multiple filesThomas Citharel2017-08-271-2/+36
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Don't try the actual file upload if the checks already error outRoeland Jago Douma2017-08-262-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't fetch the translation from core but from filesRoeland Jago Douma2017-08-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Replace ... with …Morris Jobke2017-08-231-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show "Uploading..." in web UI for long uploadsMorris Jobke2017-08-231-0/+4
| | | | | | | | If the estimated upload time is bigger than 4 hours it shows the text "Uploading..." because the time then doesn't give any good hint to the user anyways. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not fetch the whole text file for the sidebar previewRoeland Jago Douma2017-08-031-1/+6
| | | | | | | | Just fetch the first 10kb. This should be more than enough in 99% of the cases. And avoid downloading a 10mb text file just to display a tiny portion. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* properly block file upload to non-active filelistRobin Appelman2017-07-101-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix sorting of favorite filesDaniel Calviño Sánchez2017-07-051-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sort comparator checks the "isFavorite" property of the FileInfo objects to compare. That property is set when the file list is loaded and the response from the server is parsed, and thus a freshly loaded file list has the proper sorting for favorite files. However, the property is not set in other cases, like when the FileInfo objects are derived from FileInfoModels due to a file being marked as a favorite or a text editor being closed, which causes the file to be sorted in the wrong position. There is no need to add the property in those situations, though; in all cases the TagsPlugin adds a "tags" array property that contains an OC.TAG_FAVORITE tag, so that tag can be checked instead of "isFavorite". Moreover, although "isFavorite" was added by the main "_parseFileInfo" function it did not really belong there but to the "FileInfoParser" from the TagsPlugin; however, as that property now is not used anywhere it was removed altogether. A cleaner solution would have been to make the sort comparator extensible by plugins like other behaviours of the file list and then add the sorting logic related to favorite files to the TagsPlugin. However, right now only the TagsPlugin would need to alter the main sorting logic, and it seems like a corner case anyway. Even if it is implemented as a plugin, favorite files is a core feature, so for the time being it will be taken into account directly in the main sorting logic; making the sort comparator extensible by plugins is defered until there are other use cases for that. Fixes #5410 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #5177 from Bekcpear/masterRobin Appelman2017-06-161-13/+15
|\ | | | | Fix upload remaining time
| * Fix uploadrate value of 'original-title' attributeBekcpear2017-06-161-1/+1
| | | | | | | | | | | | | | The unit of `data.bitrate` is bit, but the argument unit of `humanFileSize` function is byte, so it should be divided by 8. Signed-off-by: Yaojin Qian <i@ume.ink>
| * Fix upload remaining timeBekcpear2017-06-161-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | The upload remaining time is always 'a few second' whatever a big or a small file uploading. This commit fixes it. The `new Date().getMilliseconds()` only return a three digits number. When time arrived the next second, the millisecond start from ZERO again. So `new Date().getTime()` is the righe choice. And remaining time variables shoule be initialized when the file starts uploading, otherwise the remaining time of a new upload will always be 'Infinity years' until you refresh the page. Signed-off-by: Yaojin Qian <i@ume.ink>
* | Merge pull request #5378 from patschi/fix-5349Morris Jobke2017-06-131-1/+1
|\ \ | | | | | | Fix #5349, no themed icon when dragging folder
| * | Fix #5349, no themed icon when dragging folderPatrik Kernstock2017-06-131-1/+1
| | | | | | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* | | Put the quota bar to the bottomMorris Jobke2017-06-131-1/+1
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Only set the active item when there is one (not the case for quota)Joas Schilling2017-06-131-1/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Add quota to the files viewJoas Schilling2017-06-131-0/+4
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Trigger pre and post render events in MainFileInfoDetailsViewDaniel Calviño Sánchez2017-06-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | The post-render event makes possible to modify the MainFileInfoDetailsView element once it has been rendered, which is needed by OCA.SystemTags.FilesPlugin to add the "Tags" label to the file details, while the pre-render event makes possible to detach added elements if needed before the MainFileInfoDetailsView is rendered again, as that removes the events from the child DOM elements even if they belong to other views. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Make possible to know the registered detail views in a details viewDaniel Calviño Sánchez2017-06-092-0/+25
| | | | | | | | | | | | | | | | In some cases, an app may need to act on a detail view registered by another app or the core, for example, to add extra elements to the element of the detail view. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Copy permalink directly on clickRoeland Jago Douma2017-05-231-9/+30
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make new file file tooltip error text changePhil Davis2017-05-211-0/+1
| | | | Signed-off-by: Phil Davis <phil@jankaritech.com>
* Make rename file tooltip error text changePhil Davis2017-05-211-0/+2
| | | | Signed-off-by: Phil Davis <phil@jankaritech.com>
* Merge pull request #4922 from nextcloud/verbose-uploadmenu-textMorris Jobke2017-05-171-2/+2
|\ | | | | Use more verbose text for upload menu
| * Use more verbose text for upload menuJan-Christoph Borchardt2017-05-161-2/+2
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | Use proper mime icons for search resultsJulius Härtl2017-05-161-26/+4
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not reload the filelist on first openRoeland Jago Douma2017-05-041-1/+10
| | | | | | | | | | | | | | | | Fixes: #4644 Without this patch the filelist would always reload. However since not all the correct data was set yet it would often: 1. fireoff a propfind to ../webdav/ 2. fireoff a propfind to ../webdav/<PATH> When just opening the file list those are the same so the result is just fine. However if opening a direct link it means that there is a race condition on which finishes first. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove dependency on jquery-migrate.js for browser detectionMorris Jobke2017-05-011-1/+1
| | | | | | * ref #4628 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure mountType is actually definedRoeland Jago Douma2017-04-281-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* allow apps to set custom mount typesRobin Appelman2017-04-281-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #4519 from nextcloud/downstream-27703Morris Jobke2017-04-261-0/+8
|\ | | | | Reload file list when leaving hidden state
| * Reload file list when leaving hidden stateVincent Petry2017-04-261-0/+8
| | | | | | | | | | | | | | | | Whenever a file list is already initialized and was hidden when switching to another file list in the navigation bar, if the user comes back to this list it gets redisplayed. At this point the list needs to be refreshed to be able to reflect any potential file changes done from the other lists.
* | Fix closing details view when viewing file in folderDaniel Calviño Sánchez2017-04-251-0/+1
|/ | | | | | | | | | | | The Files app active view is set to "files" in silent mode to avoid an unneeded load of the "/" directory. However, this also prevents the details view from being automatically closed, so it has to be explicitly closed by the Goto plugin; the approach used is the same that would have been used by OCA.Files.App._onNavigationChanged if not silenced. Fixes #1448 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* properly reload favorites listRobin Appelman2017-04-211-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Explain local linkJos Poortvliet2017-04-131-1/+1
| | | | | | | | | | The local link is a clever thing and the clients should support this imho but it might not be clear to all users. For one, the term 'local link' is a bit odd. Local with respect to what? It links directly to the file or folder, so direct link seems to make more sense to me. And we should explain the difference with a public link. So this PR: * renames local link to direct link * adds a short explanation, noting it only works for users who have access to this file/folder. As other links are called public link you could also consider calling this 'private link', I suppose. But the links we sent by mail to ppl could also be called 'private link' (they are for one user, who git it by email) so I think it might be confusing. What do @nextcloud/designers think? Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update comments to NextcloudMorris Jobke2017-04-111-1/+1
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* share api expanded by tags (#26583)Michael Jobst2017-04-111-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | * share api expanded by tags * Modified files_sharing JS Unit tests * modified tests. renamed request parameter. refactoring * Update Share20OCS.php Added missing function description * Update Helper.php Added missing function description * Update Helper.php implicit boolean conversion to !empty() * Update Share20OCSTest.php Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4153 from nextcloud/fix-uploadJoas Schilling2017-04-061-1/+2
|\ | | | | Fix upload of folders in Chrome
| * Fix upload of folders in ChromeMorris Jobke2017-04-061-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Some more hardeningJoas Schilling2017-04-041-6/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | file-upload.js modified : Remaining upload time correctedSarthikaDhawan2017-04-041-1/+10
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge file view JS filesLukas Reschke2017-03-241-0/+29
| | | | | | Removes 26 requests on the file list loading Signed-off-by: Lukas Reschke <lukas@statuscode.ch>