aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryName.vue
Commit message (Collapse)AuthorAgeFilesLines
* refactor(files): Provide `useFileListWidth` composableFerdinand Thiessen2024-11-201-4/+3
| | | | | | | | Replace the mixin with a composable, this is better typed and works in both: Options- and Composition API. Also added component tests for it. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Adjust `useNavigation` composable to enforce active viewFerdinand Thiessen2024-11-161-4/+5
| | | | | | | | | In some cases it is guaranteed that we have a proper active view, e.g. when the file list is loaded (so within FileEntry* components). This does not change anything but the Typescript types, so the `currentView` is typed as `View` instead of `View | null´. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Revert CSS causing the file name to have no bounding boxFerdinand Thiessen2024-11-111-3/+2
| | | | | | Instead add the direction only to the filename wrapper not the button. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure renaming state is correctly resetFerdinand Thiessen2024-10-151-58/+12
| | | | | | | | | | | | | 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>
* feat: Add bidi support in core directoryMostafa Ahangarha2024-08-291-1/+2
| | | | Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
* feat: Navigate via folder treeChristopher Ng2024-08-011-0/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(files): Migrate logger util to TypescriptFerdinand Thiessen2024-08-011-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Add missing directory variable to error messageFerdinand Thiessen2024-08-011-1/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Provide file actions from list entry to make it reactiveFerdinand Thiessen2024-08-011-23/+31
| | | | | | | | 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>
* fix(files): Correctly validate new node nameFerdinand Thiessen2024-07-261-3/+3
| | | | | | | | | | | * Resolves https://github.com/nextcloud/server/issues/45409 This includes two fixes: 1. The name in the "new node" dialog is correctly selected (e.g. `file.txt` only `file` is selected by default), to allow quick naming 2. `@nextcloud/files` functions for filename validation are used, this allows to use new Nextcloud 30 capabilities (e.g. reserved names) Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files): Use `@nextcloud/files` filename validation to show more detailsFerdinand Thiessen2024-07-251-61/+29
| | | | | | | This will enable showing more details what exactly is wrong with the filename. Especially with the new capabilities introduced with Nextcloud 30. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not split filename into `base` and `extension` for foldersFerdinand Thiessen2024-07-251-4/+10
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): validate input when creating file/directoryMaksim Sukharev2024-07-241-7/+6
| | | | Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
* fix(files): Properly handle files in failed stateFerdinand Thiessen2024-06-241-1/+1
| | | | | | | 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-8/+9
| | | | | | when shared with other Vue apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Do not import from `axios` but only `@nextcloud/axios`Ferdinand Thiessen2024-06-201-2/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): also trigger new tab on file name middle clickJohn Molakvoæ (skjnldsv)2024-06-121-2/+1
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-20/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.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>
* fix(files): apply the renaming when leaving the input fieldRaphaël Jakse2024-05-021-1/+1
| | | | | | Refs: #42689 Signed-off-by: Raphaël Jakse <raphael.git@jakse.fr>
* fix(files): Use string array instead of string for forbidden charactersFerdinand Thiessen2024-04-291-7/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): focus file name on renaming also initiallyGrigorii K. Shartsev2024-01-021-4/+7
| | | | | | When new folder is created, new file entry is initially in renaming mode. Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): Do not add drag and drop listeners when renaming a fileFerdinand Thiessen2023-12-131-1/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): replace deprecated `is` attr on `<a>` with dynamic componentGrigorii K. Shartsev2023-11-281-11/+20
| | | | | | | - Special attribute `is` is deprecated and removed in Vue 3 - It is confusing, that `<a>` element is rendered as `span` sometimes Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): make file list item link focusableGrigorii K. Shartsev2023-11-281-1/+2
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): add missing `Overwrite: F` header in renamingJohn Molakvoæ2023-11-081-0/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): grid viewJohn Molakvoæ2023-10-171-1/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): split FileEntry NameJohn Molakvoæ2023-10-171-0/+327
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>