aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
Commit message (Collapse)AuthorAgeFilesLines
...
* chore(deps): Update `debounce` to 2.1.0Ferdinand Thiessen2024-06-231-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Update `@nextcloud/files` to v3.5.0Ferdinand Thiessen2024-06-239-55/+10
| | | | | | * Removed now duplicated code Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Don't react to clicks when renamingLouis Chemineau2024-06-201-0/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Do not import from `axios` but only `@nextcloud/axios`Ferdinand Thiessen2024-06-204-12/+10
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Show non writable folders during move or copyLouis Chemineau2024-06-191-5/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Rename openFileInfo to fileInfoLouis Chemineau2024-06-191-2/+5
| | | | | | And check if openFile is set in the URL before opening a file. Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(deleteAction): Bump up delete requests concurrency to 5fenn-cs2024-06-171-1/+1
| | | | | | A concurrency of who is not efficient. Low throughput, underutilization, high latency etc... Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files): Ignore right click for default actionLouis Chemineau2024-06-131-0/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): fetch nodes if we have multiple of the same fileid in the storeskjnldsv2024-06-121-3/+44
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): do not rely on unique fileidskjnldsv2024-06-1212-80/+88
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): also trigger new tab on file name middle clickJohn Molakvoæ (skjnldsv)2024-06-124-5/+9
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files_sharing): fix parsing of remote sharesskjnldsv2024-06-122-7/+8
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Use `data-cy` (data attribute) instead of `cy-data`Ferdinand Thiessen2024-06-111-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Migrate `personal` view to `@nextcloud/files` functionsFerdinand Thiessen2024-06-111-23/+22
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Migrate `favorites` view to `@nextcloud/files` functions ↵Ferdinand Thiessen2024-06-112-40/+35
| | | | | | | | and make it cancelable Also this fixes the view being writeable Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Migrate `recent` view to `@nextcloud/files` functions and ↵Ferdinand Thiessen2024-06-111-28/+34
| | | | | | make it cancelable Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Migrate files service to functions from `@nextcloud/files`Ferdinand Thiessen2024-06-112-101/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure that focussed file is always scrolled rightFerdinand Thiessen2024-06-081-0/+24
| | | | | | | | Ensure the correct file is scrolled if the content changes, this also sets a minimal height to the virtual scrolling area so that the `scrollTop` can be set. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Keep query when trigger the sidebar actionFerdinand Thiessen2024-06-081-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): `open-in-files` action should also set `openfile` queryFerdinand Thiessen2024-06-082-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Fix TypeScript issues in FileEntryActionsFerdinand Thiessen2024-06-082-7/+9
| | | | | | | | * We filter the array in `enabledSubmenuActions` so we can be sure the action does have a parent * Node attributes must be accessed using the `attributes` getter not the private `_attributes` property * Cast action ref to correct component interface to make TypeScript happy Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Correctly type virtual files list ref typeFerdinand Thiessen2024-06-071-2/+4
| | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-0/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): reset menu pos when opening in grid modeJohn Molakvoæ (skjnldsv)2024-06-041-9/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix(files): Only execute default action if there is an action to performFerdinand Thiessen2024-06-041-7/+11
| | | | | | | Some files do not have a default action (can not be viewed and only downloaded). If the `openfile` query is set on them the `handleOpenFile` will throw an error. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Update current fileid in route if that node was deletedFerdinand Thiessen2024-06-043-3/+40
| | | | | | | We do not change the view to the trash bin but stay in the current view, so we need to update the current fileid on the route if that was deleted. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Close sidebar if shown node is deletedFerdinand Thiessen2024-06-041-1/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Make `currentView` a prop of `FilesListTableFooter`Ferdinand Thiessen2024-05-312-6/+7
| | | | | | | | We already have this as a required prop in `FilesListVirtual`, so passing it to the footer is straight forward and removed need of computed value. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Properly add type information to FilesListTableFooterFerdinand Thiessen2024-05-311-8/+8
| | | | | | | | - Add correct type for `nodes` prop. - Use `defineComponent` to properly infer Typescript information - Correct usage of nullish coalescing operator Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Fix Typescript issues in filesListWidth mixinFerdinand Thiessen2024-05-311-4/+9
| | | | | | | | | Use `defineComponent` to properly inherit typings. Expect TS errors for the `$resizeOberserver` as we attach it directly on the component instance. `filesListWidth` is now a number which defaults to 0, making compares like `this.fileListWidth < 768` valid in Typescript. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Correctly cast table ref to fix TypeScript errorsFerdinand Thiessen2024-05-311-6/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(deps): Update `@nextcloud/event-bus` to version 3.3.1Ferdinand Thiessen2024-05-315-4/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Update `@nextcloud/files` to 3.4.0 to fix public link sharesFerdinand Thiessen2024-05-312-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Consistently sort imports of FileEntryMixinFerdinand Thiessen2024-05-311-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure entry with `fileid` is marked as activeFerdinand Thiessen2024-05-312-8/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Keep 'back'-button for not found directories or if user can not ↵Ferdinand Thiessen2024-05-291-3/+17
| | | | | | upload Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Show upload menu in folders' emptycontentMarco2024-05-291-14/+8
| | | | Signed-off-by: Marco <marcoambrosini@icloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-29111-1993/+269
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): Adjust type import and usage for removed dependencyFerdinand Thiessen2024-05-271-2/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Implement `SortingService` to fix sorting of filesFerdinand Thiessen2024-05-273-1/+160
| | | | | | | The previously used library was parsing strings to try to detect dates, but for filenames it makes no sense to parse them as dates. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): refresh preview on etag changeskjnldsv2024-05-232-2/+8
| | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files): Debounce does not return a function so it should be used as computedFerdinand Thiessen2024-05-231-9/+10
| | | | | | This also fixes hacky solution to `this` access Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Use translation function directly instead of calling the ↵Ferdinand Thiessen2024-05-231-13/+13
| | | | | | instance method Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Fix typing issues with dataFerdinand Thiessen2024-05-231-11/+20
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Fix naming issue for reserved Vue property namesFerdinand Thiessen2024-05-231-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Drop `xml2js` dependency and use browser native DOMParserFerdinand Thiessen2024-05-171-16/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* perf(deleteAction): Queue delete requestsfenn-cs2024-05-151-1/+16
| | | | | | | | | | When multiple files are deleted at once, all the requests bombard the server simultaneously, causing performance issues. This commit adds queuing that limits the concurrency of these requests to 5 at a time. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(deleteAction): Remove unused nc l10n importfenn-cs2024-05-151-1/+1
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: Do not import styles that are already included in server bundleFerdinand Thiessen2024-05-063-6/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Add missing properties and fix Typescript errors in `FileEntryName`Ferdinand Thiessen2024-05-021-21/+33
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>