aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(files): Add rounded corners back in grid viewLouis Chemineau2024-07-111-5/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(files): Fix ESLint issues with files and files_sharing appFerdinand Thiessen2024-07-0911-14/+15
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Adjust Typescript definitions for OCP and OCFerdinand Thiessen2024-07-097-3/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-0918-29/+57
| | | | | | | | | Nevertheless this causes a huge amount of new warnings. Previously the shell script for directories to lint was wrong it was generating all app names to lint, but was missing the `apps/` prefix. Causing only `core` to be linted. Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Correctly center the checkbox's background in grid viewLouis Chemineau2024-07-081-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* style: unify copy iconAndy Scherzinger2024-07-071-1/+1
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files): Refresh grid view layoutLouis Chemineau2024-07-042-34/+59
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(files): Display mtime in grid viewLouis Chemineau2024-07-043-26/+36
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Disable buttons in copy/move dialog for non writable foldersLouis Chemineau2024-07-021-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Allow to reset unified search using the ↵Ferdinand Thiessen2024-06-271-8/+16
| | | | | | `nextcloud:unified-search:reset` event Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Update favorites navigation list on folder renamesLouis Chemineau2024-06-263-2/+71
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(files): increase max copy-move concurrency to 5 John Molakvoæ2024-06-261-1/+4
| | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* feat(files): Allow uploading directoriesFerdinand Thiessen2024-06-241-11/+34
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Fix nullish operator usage and add missing code commentFerdinand Thiessen2024-06-243-4/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Properly handle files in failed stateFerdinand Thiessen2024-06-245-4/+12
| | | | | | | When files are loaded from API the `fileid` might be set to `-1` indicating an error on the API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Use composable for `currentView` and `views` to make it reactive ↵Ferdinand Thiessen2024-06-2313-132/+321
| | | | | | when shared with other Vue apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>