aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/src
Commit message (Collapse)AuthorAgeFilesLines
* test(files_trashbin): add test coverage also for utils like the loggerFerdinand Thiessen2025-03-111-0/+20
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files_trashbin): restore action refactoringFerdinand Thiessen2025-03-113-16/+169
| | | | | | | 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>
* fix(files_trashbin): return correct type in empty trash actionFerdinand Thiessen2025-03-116-37/+263
| | | | | | | | | 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>
* fix(files_trashbin): correctly sort custom columns in trashbin viewFerdinand Thiessen2025-03-115-79/+375
| | | | | | | | | | | 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>
* refactor: Migrate nextcloud-vue usage to new import schemaFerdinand Thiessen2025-02-201-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_trashbin): Only emit files:node:deleted events if deleting all ↵provokateurin2025-01-131-2/+3
| | | | | | trash was successful Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(files_trashbin): Allow preventing trash to be deleted permanentlyprovokateurin2025-01-131-0/+11
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(trashbin): Fix infinitely loading empty trash action on closeChristopher Ng2024-12-121-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files_trashbin): improve wordingsskjnldsv2024-12-121-4/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* perf(files_trashbin): use empty trashbin endpoint instead of batch delete ↵skjnldsv2024-12-121-69/+41
| | | | | | requests Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): protect filelist actions with try...catchskjnldsv2024-12-121-4/+3
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_trashbin): update @nextcloud/files and adjust api + l10n fixskjnldsv2024-12-121-1/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(trashbin): Allow emptying trashChristopher Ng2024-12-123-1/+125
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: fix getting the folder node from the dav responseRobin Appelman2024-08-101-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf(files_trashbin): Only trigger one PROPFIND for trashbin viewFerdinand Thiessen2024-08-052-65/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(files): Resort imports and fix doc commentFerdinand Thiessen2024-08-011-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-091-6/+6
| | | | | | | | | 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>
* fix(files_trashbin): Make files view registering an init scriptFerdinand Thiessen2024-06-231-0/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-026-95/+14
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: Remove All files prefix from original locationChristopher Ng2024-04-301-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(trashbin): Move columns into separate fileChristopher Ng2024-04-302-115/+146
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(trashbin): Show user who deleted a fileChristopher Ng2024-04-302-0/+61
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(trashbin): Show original location of deleted fileChristopher Ng2024-03-282-3/+39
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(dav): multiple fixes in usage of webdav libraryVarun Patil2024-02-281-6/+19
| | | | | | | | 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>
* fix(files): encoded source path on actions requestsJohn Molakvoæ2023-10-032-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: encode uri for delete, restore and favoriteDaniel Kesselberg2023-09-282-2/+3
| | | | | | To encode # and other characters properly Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: avoid side-effect importsJohn Molakvoæ (skjnldsv)2023-09-211-4/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix: encode basename in restore actionDaniel Kesselberg2023-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: migrate FileAction from serverJohn Molakvoæ2023-08-232-7/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore: use Navigation from `@nextcloud/files`John Molakvoæ2023-08-233-12/+9
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(files): add Headers, remove legacy methods and cleanupJohn Molakvoæ2023-08-171-2/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(f2v): migrate FilesJohn Molakvoæ2023-08-171-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): default emptycontent messageJohn Molakvoæ2023-07-181-0/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: add modified columnJohn Molakvoæ2023-07-052-3/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): restore action tslintJohn Molakvoæ2023-07-051-3/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): favoritesJohn Molakvoæ2023-07-051-11/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): standardize `files:node:event` event syntaxJohn Molakvoæ2023-04-141-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(files_trashbin): cleanup old legacy filesJohn Molakvoæ2023-04-072-500/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(eslint): clean and fixJohn Molakvoæ2023-04-064-10/+8
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): add FileAction serviceJohn Molakvoæ2023-04-061-1/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: improved preview handlingJohn Molakvoæ2023-04-061-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): move userconfig to dedicated store and fix crop previewsJohn Molakvoæ2023-04-061-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): batch actionsJohn Molakvoæ2023-04-061-16/+26
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): propagate restore and delete eventsJohn Molakvoæ2023-04-061-4/+10
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(accessibility): add files table caption and summaryJohn Molakvoæ2023-04-061-0/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): fix custom render components reactivityJohn Molakvoæ2023-04-061-1/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-061-2/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): actions apiJohn Molakvoæ2023-04-063-5/+71
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): custom columnsJohn Molakvoæ2023-04-062-1/+24
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files_trashbin): previews crop supportJohn Molakvoæ2023-04-061-1/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>