aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
Commit message (Collapse)AuthorAgeFilesLines
* chore(files): Remove legacy UI scripts now that everything is migrated to VueFerdinand Thiessen2024-09-201-5/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(files): Add tests for path handlingFerdinand Thiessen2024-09-201-0/+130
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure children are removed from folder and not duplicatedFerdinand Thiessen2024-09-202-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: Restore missing dot in FilesListVirtual.vueartonge/fix/missing_dotLouis Chemineau2024-09-151-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: Reset route if neither the Viewer of the Sidebar is openLouis Chemineau2024-09-141-7/+23
| | | | | | | | | | 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): Make `openMenu` watcher null safeFerdinand Thiessen2024-09-111-3/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Reset context menu position on closeFerdinand Thiessen2024-09-101-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): Render folders in natural sort orderChristopher Ng2024-09-091-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-092-2/+0
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Fallback icons should fill the containerFerdinand Thiessen2024-09-061-2/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Add end-to-end tests for new public share Vue UIFerdinand Thiessen2024-09-062-2/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): "Edit locally" action should not be shown on public sharesFerdinand Thiessen2024-09-061-0/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not add click listener if there is no default action on ↵Ferdinand Thiessen2024-09-063-31/+46
| | | | | | public shares Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): "New folder" menu entry requires read permissionFerdinand Thiessen2024-09-062-6/+8
| | | | | | This will disable "New folder" menu entry for file-drop shares. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Disable internal views on public sharesFerdinand Thiessen2024-09-061-6/+9
| | | | | | This is needed because some views have side effects, like `favorites` doing requests on registration time. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Handle download permission the same way for public and ↵Ferdinand Thiessen2024-09-061-5/+5
| | | | | | internal shares Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not allow copy action on public shares without `create` ↵Ferdinand Thiessen2024-09-061-3/+17
| | | | | | permission Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Allow to download files on public sharesFerdinand Thiessen2024-09-062-17/+36
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not allow rename action on single-file-sharesFerdinand Thiessen2024-09-061-5/+11
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Disable copy-move-action of single file sharesFerdinand Thiessen2024-09-061-1/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Make `RouterService` provide a protected getter for the ↵Ferdinand Thiessen2024-09-062-16/+17
| | | | | | router to allow injecting the `files_sharing` router Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Adjust files list for sharing permissions on public sharesFerdinand Thiessen2024-09-062-4/+25
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Fix file previews for public sharesFerdinand Thiessen2024-09-061-7/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not use `favorite`, `sidebar` and `view-in-folder` action for ↵Ferdinand Thiessen2024-09-063-6/+29
| | | | | | public shares Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files_sharing): Migrate public share to use Vue files listFerdinand Thiessen2024-09-064-12/+22
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): undefined displayname for outdated `@nextcloud/files`<3.6.0 appsskjnldsv2024-09-041-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-08-311-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>
* chore(files): Fix remaining TypeScript errors in FileEntryPreviewFerdinand Thiessen2024-08-291-7/+9
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Use the blurhash in FilesLouis Chemineau2024-08-293-11/+69
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* 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: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix: Adjust more places for logical positionFerdinand Thiessen2024-08-292-18/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Add bidi support in core directoryMostafa Ahangarha2024-08-297-20/+21
| | | | Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
* 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>
* test(files): Adapt favorite views specChristopher Ng2024-08-271-23/+50
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow more than 50 favorite viewsChristopher Ng2024-08-273-24/+15
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(templates): add support for checkboxes in template fillerElizabeth Danzberger2024-08-273-12/+100
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* fix(files): Correctly check for already used names when creating new folderFerdinand Thiessen2024-08-271-1/+1
| | | | | | Also add Cypress tests for the "new"-menu. 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>
* Merge pull request #47490 from nextcloud/chore/adjust-translationsFerdinand Thiessen2024-08-261-1/+2
|\ | | | | 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): 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>
* Merge pull request #47466 from nextcloud/chore/migrate-vitestFerdinand Thiessen2024-08-2613-172/+174
|\ | | | | test: Migrate from Jest to vitest
| * test: Migrated all Jest tests to vitestFerdinand Thiessen2024-08-2613-172/+174
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(files): Remove huge margin on bottomFerdinand Thiessen2024-08-262-13/+6
|/ | | | | | Instead make it relative to screen size. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Consolidate node registrationChristopher Ng2024-08-222-52/+15
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(files): Organize event subscriptionsChristopher Ng2024-08-221-14/+10
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Respect "Show hidden files" setting in treeChristopher Ng2024-08-221-0/+22
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: use empty template by default when pressing enterElizabeth Danzberger2024-08-212-0/+10
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>