Commit graph

85 commits

Author SHA1 Message Date
Ferdinand Thiessen
f075051f4a
test: remove testing internal of libraries and test only app code
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-02-10 14:50:41 +01:00
Ferdinand Thiessen
009aad6eb7
refactor(files_trashbin): adjust for files library interfaces
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-02-06 10:28:57 +01:00
Ferdinand Thiessen
9a1fd7a629
chore: adjust code for breaking changes of @nextcloud/paths v3
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-12-22 02:12:19 +01:00
skjnldsv
492bdb7010
chore: update @nextcloud/files to 4.0.0
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-12-11 12:44:16 +01:00
Ferdinand Thiessen
2a8c20b946 chore: adjust vitest infrastructure to properly run both suits
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-24 17:09:01 +01:00
Ferdinand Thiessen
0059d17ae3
refactor(files_trashbin): migrate app to Vue 3
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-14 17:01:21 +01:00
Ferdinand Thiessen
2b39cb49ab
refactor: adjust code for breaking changes in @nextcloud/dialogs v7
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-15 13:45:12 +02:00
Ferdinand Thiessen
91f3b6b4ee
chore: adjust code to new codestyle
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-02 13:19:42 +02:00
Andy Scherzinger
ec84001af7 style(icon): Use material symbol variant of delete icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-08-27 12:29:34 +02:00
kramo
718cf4e15d fix: Remove redundant toast notifications
Since these actions already have highly visible visual confirmation,
no extra notifications are needed.

Split out from #54202

Signed-off-by: kramo <git@kramo.page>
2025-08-07 20:33:55 +00:00
skjnldsv
3e7dc97cae feat: replace material icons with outline versions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-07-24 10:55:43 +02:00
Ferdinand Thiessen
62e8d011f9 refactor(files): migrate away from moment.js
Use browser provided API and our shared functions.
This also fixes tests when local language is not English.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-06-16 12:50:17 +02:00
Kent Delante
705aee5aa0 fix(files_trashbin): check if there is enough space before restoring
Signed-off-by: Kent Delante <kent.delante@proton.me>
2025-05-20 20:53:02 +08:00
Ferdinand Thiessen
f4d0478b4b
test(files_trashbin): add test coverage also for utils like the logger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-11 15:05:44 +01:00
Ferdinand Thiessen
a60a24e61e
refactor(files_trashbin): restore action refactoring
1. do not rely on magic string but use constant ID for trashbin view
2. add unit tests for restore action

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-11 15:05:44 +01:00
Ferdinand Thiessen
aac5859444
fix(files_trashbin): return correct type in empty trash action
1. correctly return null instead of void in empty trash action
2. use constant instead of magic value for action ID
3. add unit tests for empty trash action
4. add unit tests for trashbin api

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-11 15:05:44 +01:00
Ferdinand Thiessen
c7014a7cc4
fix(files_trashbin): correctly sort custom columns in trashbin view
1. Refactor to make code better testable (move columns and view source to `files_views` folder)
2. Fix deletion time fallback (JS Date vs unix timestamp for
   "delted"-column)
3. Correctly sort `deletedBy` and `originalLocation` columns to use
   natural sort like any other column
4. Add unit tests for columns and views

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-11 15:05:44 +01:00
Ferdinand Thiessen
b06f5ba4c4
refactor: Migrate nextcloud-vue usage to new import schema
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-20 02:28:13 +01:00
provokateurin
badf6ab935
fix(files_trashbin): Only emit files:node:deleted events if deleting all trash was successful
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-01-13 15:19:19 +01:00
provokateurin
31c21c7797
feat(files_trashbin): Allow preventing trash to be deleted permanently
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-01-13 15:19:19 +01:00
Christopher Ng
aa1944e819 fix(trashbin): Fix infinitely loading empty trash action on close
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-12-12 10:47:09 -08:00
skjnldsv
1f419c975e feat(files_trashbin): improve wordings
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-12 10:08:38 -08:00
skjnldsv
e8b0bdc5f4 perf(files_trashbin): use empty trashbin endpoint instead of batch delete requests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-12 10:08:38 -08:00
skjnldsv
34299e6a5d fix(files): protect filelist actions with try...catch
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-12 10:08:38 -08:00
skjnldsv
9c08d3b0b8 fix(files_trashbin): update @nextcloud/files and adjust api + l10n fix
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-12 10:08:38 -08:00
Christopher Ng
943023a3f4 feat(trashbin): Allow emptying trash
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-12-12 10:08:38 -08:00
Robin Appelman
69ea15cc98
fix: fix getting the folder node from the dav response
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-08-10 14:29:52 +02:00
Ferdinand Thiessen
55d77fec05
perf(files_trashbin): Only trigger one PROPFIND for trashbin view
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-05 14:02:57 +02:00
Ferdinand Thiessen
1b9d6194f3 refactor(files): Resort imports and fix doc comment
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-01 07:14:04 +02:00
Ferdinand Thiessen
691f570237
chore: Enable ESLint for apps and fix all errors
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>
2024-07-09 17:13:30 +02:00
Ferdinand Thiessen
dea5559d35
fix(files_trashbin): Make files view registering an init script
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-23 16:53:10 +02:00
Andy Scherzinger
afa48a4e0e
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-02 20:00:00 +02:00
Christopher Ng
266c584d16 chore: Remove All files prefix from original location
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-04-30 16:49:33 -07:00
Christopher Ng
017fbfa6e5 refactor(trashbin): Move columns into separate file
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-04-30 14:44:30 -07:00
Christopher Ng
ce7b2c0945 feat(trashbin): Show user who deleted a file
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-04-30 14:44:29 -07:00
Christopher Ng
1ae78095c8 feat(trashbin): Show original location of deleted file
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-28 11:00:22 -07:00
Varun Patil
b03fd6e363 fix(dav): multiple fixes in usage of webdav library
1. Refresh token on update
2. Fix some very weird imports
3. Patch fetch instead of request to prevent accessing impl details

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2024-02-28 19:23:47 +01:00
John Molakvoæ
d79e26b25a
fix(files): encoded source path on actions requests
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-10-03 18:11:03 +02:00
Daniel Kesselberg
4f7032475e
fix: encode uri for delete, restore and favorite
To encode # and other characters properly

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-09-28 20:36:22 +02:00
John Molakvoæ (skjnldsv)
a5a8655beb fix: avoid side-effect imports
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-09-21 12:40:42 +02:00
Daniel Kesselberg
7183e3db3d
fix: encode basename in restore action
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-08-25 12:52:47 +02:00
John Molakvoæ
2c9acd5d5d
feat: migrate FileAction from server
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-23 14:03:51 +02:00
John Molakvoæ
b4e71ad0fb
chore: use Navigation from @nextcloud/files
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-23 14:03:50 +02:00
John Molakvoæ
410f58e43e
chore(files): add Headers, remove legacy methods and cleanup
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:37 +02:00
John Molakvoæ
998b3a2581
feat(f2v): migrate Files
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:37 +02:00
John Molakvoæ
bb9c7ee75c fix(files): default emptycontent message
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-18 23:53:04 +02:00
John Molakvoæ
fb61e3a761
feat: add modified column
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:33 +02:00
John Molakvoæ
fa50f6ce14
fix(files): restore action tslint
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:33 +02:00
John Molakvoæ
0984970cd8
feat(files): favorites
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:32 +02:00
John Molakvoæ
edbdfefcb8
fix(files): standardize files:node:event event syntax
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-14 09:26:32 +02:00