aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry
Commit message (Collapse)AuthorAgeFilesLines
* fix(files): show folder sharing overlay on received sharesskjnldsv2024-08-021-0/+2
| | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* feat: Navigate via folder treeChristopher Ng2024-08-011-0/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(files): Resort imports and fix doc commentFerdinand Thiessen2024-08-011-2/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Migrate logger util to TypescriptFerdinand Thiessen2024-08-013-4/+3
| | | | 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-012-56/+39
| | | | | | | | 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>
* refactor(files): Fix nullish operator usage and add missing code commentFerdinand Thiessen2024-06-241-2/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Properly handle files in failed stateFerdinand Thiessen2024-06-242-2/+3
| | | | | | | 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-232-16/+25
| | | | | | 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): do not rely on unique fileidskjnldsv2024-06-121-8/+9
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* 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>
* refactor(files): Fix TypeScript issues in FileEntryActionsFerdinand Thiessen2024-06-081-5/+5
| | | | | | | | * 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>
* chore: Add SPDX headerAndy Scherzinger2024-05-296-100/+19
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files): refresh preview on etag changeskjnldsv2024-05-231-1/+6
| | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* 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): Inherit some node attributes when creating new nodes to preserve ↵Ferdinand Thiessen2024-04-161-5/+3
| | | | | | shared state Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Right click menu positioningChristopher Ng2024-03-121-2/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Close submenu actions after click like top-level actionsChristopher Ng2024-03-081-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): properly reset preview componentJohn Molakvoæ (skjnldsv)2024-03-071-4/+13
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* feat(theming): Provide CSS variable for favorite color and adjust for dark modeFerdinand Thiessen2024-03-061-1/+1
| | | | | Co-authored-by: Simon L <szaimen@e.mail.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Correctly import types in Typescript filesFerdinand Thiessen2024-02-132-5/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #42444 from ↵John Molakvoæ2024-02-081-1/+5
| | | | nextcloud/fix/41877/files--move-focus-to-sidebar-on-open
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-081-5/+1
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix(files): do not disable action on load to keep focusGrigorii K. Shartsev2024-02-071-1/+5
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* chore(files): move shared FileEntry and FileEntryGrid into a mixinJohn Molakvoæ2024-02-071-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files) selection store typingJohn Molakvoæ2024-02-071-5/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): make sure we focus the parent actions submenu entryJohn Molakvoæ2024-01-311-1/+17
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: Use viewBox instead of viewbox in SVGsprovokateurin2024-01-221-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files): Fix checkbox state semanticsChristopher Ng2024-01-201-6/+14
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): open menu on right click positionJohn Molakvoæ2024-01-031-1/+17
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* 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>
* enh(files): added ability to escape out of all selection when focusedEduardo Morales2023-12-211-1/+6
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* 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>
* fix(files): Remove aria-label from span and move to favorite iconFerdinand Thiessen2023-12-012-10/+15
| | | | 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>
* Show shared label only if the current user have shared the file.Marco Ambrosini2023-11-221-1/+5
| | | | | | | | | The presence of the text "Sharing label" in all shared files caused the view to be too loaded, so it's been decided to show it only when the current user is the owner of the share. Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix: Be less strict about action exec return valueJulius Härtl2023-11-191-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(files): make table view a valid html tableGrigorii K. Shartsev2023-11-181-1/+1
| | | | | | <div> is not allowed as a <table> child Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* Improve shared status buttonMarco2023-11-141-1/+14
| | | | Signed-off-by: Marco <marcoambrosini@icloud.com>
* fix(files): Show Collectives icon in Collectives foldersJonas2023-11-142-0/+45
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* Use background to increase overlay contrastLouis Chemineau2023-11-131-1/+1
| | | | | | | And limit it to files Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix: Only reset preview src if it used to fail beforeJulius Härtl2023-11-131-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>