aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(files): add title for files list table header buttonGrigorii K. Shartsev2024-10-251-0/+1
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* refactor(files): migrate to @nextcloud/sharingGrigorii K. Shartsev2024-10-252-21/+3
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): handle empty view with errorGrigorii K. Shartsev2024-10-252-6/+63
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* chore(files): migrate davUtils to TSGrigorii K. Shartsev2024-10-253-15/+24
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): Adjust NavigationQuota for Nextcloud 30 designFerdinand Thiessen2024-10-232-9/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure renaming state is correctly resetFerdinand Thiessen2024-10-212-60/+93
| | | | | | | | | | | | | Problem: Is a node is renamed and the new name is out of the current visible list of nodes the component will be recycled, this means the props will change, so when the `onRename` functions is about to reset the state the `this.source` will point to a different node. To fix this, but also to separate business logic from visual representation, the logic is moved into the renaming store and the component is only responsible for rendering. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(files): Add tests for path handlingbackport/47905/stable30Ferdinand Thiessen2024-10-173-4/+137
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure children are removed from folder and not duplicatedFerdinand Thiessen2024-10-172-13/+64
| | | | | | | | | | | * Resolves https://github.com/nextcloud/server/issues/47904 We need to make sure that we only add one source (unique!) once as a child, this is ensured by simply use a native `Set`. Also we need to remove children on from folders when the `files:node:deleted` event is emitted. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Add more visual move / copy notificationFerdinand Thiessen2024-10-173-4/+36
| | | | | | | | * Resolves: https://github.com/nextcloud/server/issues/46645 This adds loading toast notification while the move operation is running. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Make `openMenu` watcher null safeFerdinand Thiessen2024-10-171-3/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Reset context menu position on closeFerdinand Thiessen2024-10-171-0/+17
| | | | | | | | | * Resolves https://github.com/nextcloud/server/issues/46934 Ensure that after a right-click the context menu position is resetted, so that pressing the "actions"-menu button it is displayed on the correct location. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Fix folders not being selectable in the smart pickerChristopher Ng2024-10-021-12/+11
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Show storage full warning when storage is actually fullbackport/48354/stable30Louis Chemineau2024-09-261-2/+2
| | | | | | | | | | < 0 values for "free" do not mean that the storage is full: https://github.com/nextcloud/server/blob/6befdd6dd7cd20fe7f7036e4665bcfbb783d6803/lib/public/Files/FileInfo.php#L31-L42 Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files): Fix having to resolve conflicts twice when dropping filesbackport/48331/stable30Christopher Ng2024-09-252-13/+14
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(translations): Changed grammarrakekniven2024-09-231-1/+1
| | | | | | [skip-ci] Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* feat: Reset route if neither the Viewer of the Sidebar is openLouis Chemineau2024-09-161-6/+22
| | | | | | | | | | When the viewer or the sidebar is opened, we add the fileid to the route. When both of them are closed, we do not remove the fileid from the route. This means that, upon reload, the sidebar will be opened even though it was closed previously. This PR ensure that the fileid is removed from the route when both the Sidebar and the Viewer are closed. Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Render folders in natural sort orderChristopher Ng2024-09-101-3/+17
| | | | | | - Nodes are returned from the endpoint in an undefined order Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Sort tree views correctly by natural orderChristopher Ng2024-09-102-2/+0
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 appsskjnldsv2024-09-051-1/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): undefined sidebarskjnldsv2024-09-041-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Fix navigating with breadcrumbs not highlighting navigation entryChristopher Ng2024-09-031-1/+4
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Node loading information should be accessibleFerdinand Thiessen2024-09-011-1/+6
| | | | | | | The loading icon visually informs that the node is currently loading, but there is no non-visual information (accessible information). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(files): Adapt favorite views specChristopher Ng2024-08-291-26/+67
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow more than 50 favorite viewsChristopher Ng2024-08-293-24/+15
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Remove margin and width to not break layoutLouis Chemineau2024-08-291-2/+0
| | | | | | | | | In grid view, this was messing with the reported available list width which was breaking the computed layout. Fix https://github.com/nextcloud/server/issues/47599 Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Correctly check for already used names when creating new folderFerdinand Thiessen2024-08-291-1/+1
| | | | | | Also add Cypress tests for the "new"-menu. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: use empty template by default when pressing enterElizabeth Danzberger2024-08-292-0/+10
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* refactor(files): Consolidate node registrationChristopher Ng2024-08-292-52/+15
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(files): Organize event subscriptionsChristopher Ng2024-08-291-14/+10
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Respect "Show hidden files" setting in treeChristopher Ng2024-08-291-0/+22
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(templates): add support for checkboxes in template fillerElizabeth Danzberger2024-08-293-12/+100
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix: Renaming does not need update but delete permissionsFerdinand Thiessen2024-08-283-4/+4
| | | | | | | Renaming is basically copy + delete (a move), so no need to update permissions. Especially if the node is in a invalid directory the node should be moveable but not editable. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #47499 from nextcloud/backport/47490/stable30Andy Scherzinger2024-08-281-1/+2
|\ | | | | [stable30] chore(files): Adjust wording for file type filter
| * chore(files): Adjust wording for file type filterFerdinand Thiessen2024-08-261-1/+2
| | | | | | | | | | | | * Resolves: https://github.com/nextcloud/server/issues/47440 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(files): Remove huge margin on bottomFerdinand Thiessen2024-08-272-13/+6
| | | | | | | | | | | | Instead make it relative to screen size. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(files): fix list gap at bottomElizabeth Danzberger2024-08-271-1/+1
| | | | | | | | | | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | fix(files): Reset drop notice on firefoxFerdinand Thiessen2024-08-261-7/+32
|/ | | | | | | | | | | On firefox there is an old bug where when you move a dragged file outside the window the `dragleave` event is never emitted. So we just use a timeout to reset the drag over state. Also a small change: Use the ID of the main container instead of relying on tag name and class. (The ID is guranteed as other APIs rely on it, while the class is just used internally). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Move loading icon before grid toggleFerdinand Thiessen2024-08-211-6/+6
| | | | | | | This prevents jumping of that toggle button when the view is loading. Also adjust the design for Nextcloud 30 (prevent jumping of breadcrumbs when loading due to increased height). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Access node owner by top level `owner` propertyFerdinand Thiessen2024-08-172-1/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* perf(files): Cache `getContents` function used for uploaderFerdinand Thiessen2024-08-143-12/+36
| | | | | | | | Instead of trigger a PROPFIND for every new-menu entry clicks, or conflict handling of uploads, we can just use the cached content from the file store. If we do not have any cache entry we fetch new, but otherwise this is not needed. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Drop unneeded initial stateFerdinand Thiessen2024-08-141-11/+20
| | | | | | | The initial state is no longer used, it was only used in legacy UI and in the f2v rewrite it was only used for the `id` which can be loaded just from the URL. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Fix non-sticky sticky views in files navChristopher Ng2024-08-141-1/+6
| | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore(i18n): Improved grammarrakekniven2024-08-141-1/+1
| | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where ↵Ferdinand Thiessen2024-08-132-6/+5
| | | | | | possible Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Add messages when "new folder" fails or gets cancelledFerdinand Thiessen2024-08-131-3/+10
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* perf(files): Prevent extraneous requests when tree children are loadingChristopher Ng2024-08-091-6/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): trim names on new node creationskjnldsv2024-08-093-7/+11
| | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files): Disable tags editing for shared files/folders with view only ↵Konstantin Myakshin2024-08-092-0/+2
| | | | | | permission Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
* feat: Load limited depth treeChristopher Ng2024-08-085-33/+101
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Add getter for all view configsChristopher Ng2024-08-081-0/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>