aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntryMixin.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(files): Migrate logger util to TypescriptFerdinand Thiessen2024-08-011-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Provide file actions from list entry to make it reactiveFerdinand Thiessen2024-08-011-5/+37
| | | | | | | | This fixes non reactive default action text of the name component. Also use download action as default action so that only one place is needed to define how to download a file. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Make route parameters accessible using composables to reuseFerdinand Thiessen2024-07-251-8/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not split filename into `base` and `extension` for foldersFerdinand Thiessen2024-07-251-10/+22
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-091-1/+3
| | | | | | | | | 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>
* feat(files): Display mtime in grid viewLouis Chemineau2024-07-041-2/+24
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* refactor(files): Fix nullish operator usage and add missing code commentFerdinand Thiessen2024-06-241-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Properly handle files in failed stateFerdinand Thiessen2024-06-241-0/+7
| | | | | | | 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-231-4/+0
| | | | | | when shared with other Vue apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Update `@nextcloud/files` to v3.5.0Ferdinand Thiessen2024-06-231-3/+3
| | | | | | * 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(files): Ignore right click for default actionLouis Chemineau2024-06-131-0/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): do not rely on unique fileidskjnldsv2024-06-121-10/+11
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): also trigger new tab on file name middle clickJohn Molakvoæ (skjnldsv)2024-06-121-1/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* refactor(files): Fix TypeScript issues in FileEntryActionsFerdinand Thiessen2024-06-081-2/+4
| | | | | | | | * 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): reset menu pos when opening in grid modeJohn Molakvoæ (skjnldsv)2024-06-041-9/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-311-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-19/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: add drag and drop recursion and FilesystemAPI testingskjnldsv2024-04-041-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files): unify drag and drop methodsskjnldsv2024-04-041-9/+22
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): breadcrumbs dndskjnldsv2024-04-041-56/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Fix error with numeric filenamesChristopher Ng2024-03-281-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Right click menu positioningChristopher Ng2024-03-121-4/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): properly reset preview componentJohn Molakvoæ (skjnldsv)2024-03-071-3/+6
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files): setup cannot be in mixinsJohn Molakvoæ2024-02-071-21/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(files): move shared FileEntry and FileEntryGrid into a mixinJohn Molakvoæ2024-02-071-0/+409
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>