Commit graph

284 commits

Author SHA1 Message Date
Louis Chemineau
938eabd619
fix(files): Ignore right click for default action
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-06-13 16:16:08 +02:00
skjnldsv
1d7893dca8 fix(files): do not rely on unique fileid
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 17:15:51 +02:00
John Molakvoæ (skjnldsv)
a094ac0b6d fix(files): also trigger new tab on file name middle click
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-12 11:52:22 +00:00
skjnldsv
a0a36563b6 fix(files_sharing): fix parsing of remote shares
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 10:27:29 +02:00
Ferdinand Thiessen
75dcf901ff
fix(files): Ensure that focussed file is always scrolled right
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>
2024-06-08 15:58:45 +02:00
Ferdinand Thiessen
13d9a1007b
refactor(files): Fix TypeScript issues in FileEntryActions
* 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>
2024-06-08 15:58:45 +02:00
John Molakvoæ (skjnldsv)
af5a29e568 fix(files): reset menu pos when opening in grid mode
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2024-06-04 13:48:03 +00:00
Ferdinand Thiessen
d33cfdd14b fix(files): Only execute default action if there is an action to perform
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>
2024-06-04 14:41:08 +02:00
Ferdinand Thiessen
ceafe43a4c
refactor(files): Make currentView a prop of FilesListTableFooter
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>
2024-05-31 17:17:31 +02:00
Ferdinand Thiessen
e8adb97098
refactor(files): Properly add type information to FilesListTableFooter
- 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>
2024-05-31 17:17:31 +02:00
Ferdinand Thiessen
0cb32880ee
refactor(files): Correctly cast table ref to fix TypeScript errors
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 17:17:31 +02:00
Ferdinand Thiessen
67d8277c49
fix: Update @nextcloud/files to 3.4.0 to fix public link shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 12:46:20 +02:00
Ferdinand Thiessen
2c47f24266 refactor(files): Consistently sort imports of FileEntryMixin
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 11:39:39 +02:00
Ferdinand Thiessen
7c4dcf51c4 fix(files): Ensure entry with fileid is marked as active
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 11:39:39 +02:00
Andy Scherzinger
5b7dcc1427
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-29 08:58:16 +02:00
skjnldsv
3ca3c65b0d feat(files): refresh preview on etag change
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-05-23 11:56:27 +00:00
Ferdinand Thiessen
7dbe89f921 fix(files): Add missing properties and fix Typescript errors in FileEntryName
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-02 20:03:23 +02:00
Raphaël Jakse
c53e4a8b96 fix(files): apply the renaming when leaving the input field
Refs: #42689

Signed-off-by: Raphaël Jakse <raphael.git@jakse.fr>
2024-05-02 16:30:12 +02:00
Ferdinand Thiessen
c6f3aecef1
fix(files): Use string array instead of string for forbidden characters
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-29 17:15:00 +02:00
Christopher Ng
a999544ff2 fix(files): Display selected files count
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-04-17 10:32:03 -07:00
Ferdinand Thiessen
dec0d91468
fix(files): Focus filename input in new-node dialog when opened
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-16 12:55:50 +02:00
Ferdinand Thiessen
bbe3f4a880
fix(files): Inherit some node attributes when creating new nodes to preserve shared state
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-16 11:24:57 +02:00
Eduardo Morales
0213fb6b5d
fix(Cypress): Adjust tests for new breadcrumbs
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-04-10 01:17:53 +02:00
Ferdinand Thiessen
f6b1fd41c9
fix(files): Hide full view name on small mobile to prevent overflow
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-04-10 01:17:53 +02:00
Eduardo Morales
de47a9ef11
fix(breadcrumbs): Improved breadcrumb progress bar mobile rendering
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-04-10 01:17:53 +02:00
skjnldsv
1a3ad804bb fix(files): breadcrumbs native drop event
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 13:33:10 +02:00
skjnldsv
38c7ca0d4d chore: add drag and drop recursion and FilesystemAPI testing
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 13:33:10 +02:00
skjnldsv
15bf34dac8 feat(files): unify drag and drop methods
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 13:33:10 +02:00
skjnldsv
f28157e91b fix(files): breadcrumbs dnd
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 11:18:53 +02:00
Christopher Ng
6ed1b98264 fix(files): Fix error with numeric filenames
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-28 11:22:58 -07:00
Ferdinand Thiessen
3f3955e04b
fix(files): Adjust files drop to work with Blink engine (chrom(ium), edge)
The datatransfer items list is cleared on Blink after the first access to an inner prop due to async handling and GC.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-18 13:05:08 +01:00
Eduardo Morales
ae00ed064f fix(files): fixed breadcrumbs dissapearing on narrow screens
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-15 08:37:35 -05:00
Christopher Ng
742e5b6329 fix(files): Right click menu positioning
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-12 14:59:46 -07:00
Christopher Ng
26bbb8c0e4 fix(files): Right click menu scroll reset glitch
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-12 12:10:55 -07:00
Christopher Ng
810bb64028 fix(files): Close submenu actions after click like top-level actions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-08 03:46:55 -08:00
John Molakvoæ (skjnldsv)
e453b700b9 fix(files): properly reset preview component
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-03-07 21:47:50 +00:00
Ferdinand Thiessen
4b8868a7f1
feat(theming): Provide CSS variable for favorite color and adjust for dark mode
Co-authored-by: Simon L <szaimen@e.mail.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-06 22:28:16 +01:00
Eduardo Morales
e0e51aed5d fix: fixed breadcrumbs not showing due to viewport width
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-04 19:13:20 -06:00
Eduardo Morales
25eebd31ed fix: changed text alignment and icon logic
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-02-29 07:01:19 -06:00
Andrii Rublov
1c316c29f1 Update apps/files/src/components/BreadCrumbs.vue
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Andrii Rublov <39839367+arublov@users.noreply.github.com>
2024-02-25 13:40:13 +01:00
Andrii Rublov
c8b68ce639 feature: [F2V] Hide breadcrumbs when an upload is ongoing on narrow screen #40942
Signed-off-by: Andrii Rublov <airublev@outlook.com>
2024-02-25 13:40:13 +01:00
skjnldsv
571e06a35c chore(files): replace encodeFilePath by encodePath from @nextcloud/paths
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-02-22 23:26:22 +01:00
Josh
aff8b5620c fix(files): Dont't warn re: full storage on either zero or unlimited quotas
Fixes #43535
Fixes #43280

Replaces #43544

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-19 22:59:20 +00:00
Eduardo Morales
19619f53c6 enh: breadcrumb icon matches nav view icon
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-02-16 09:10:34 -06:00
Eduardo Morales
bbf279f546 enh: breadcrumbs icons are now more visually descriptive
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-02-16 08:33:03 -06:00
Ferdinand Thiessen
b758e0496e
fix: Correctly import types in Typescript files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-13 18:04:45 +01:00
Ferdinand Thiessen
99bc452675
fix(files): Do not scroll if there is no scrolling area
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-09 01:06:42 +01:00
Ferdinand Thiessen
8be4704e11
enh(files): Add modal to set filename before creating new files in the fileslist
* Reactive `openfile` query

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-09 01:06:42 +01:00
John Molakvoæ
a4f338c7a0
Merge pull request #42444 from nextcloud/fix/41877/files--move-focus-to-sidebar-on-open 2024-02-08 18:27:34 +01:00
Louis Chemineau
898df41de9
Revert "Merge branch 'master' of github.com:nextcloud/server"
This reverts commit d9d60238c7, reversing
changes made to ba3fdb0cdc.
2024-02-08 15:31:19 +01:00