aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/src
Commit message (Collapse)AuthorAgeFilesLines
* fix(code-style): Adjust JS code to our code styleFerdinand Thiessen2024-10-162-7/+6
| | | | | | This resolves 68 ESLint warnings about invalid code style. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Minor @nc/vue usage errorsLouis Chemineau2024-10-091-3/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: Add bidi support in core directoryMostafa Ahangarha2024-08-291-6/+6
| | | | Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
* fix(files_versions): Migrate version name dialog from NcModal to NcDialogFerdinand Thiessen2024-08-223-109/+131
| | | | | | | | * Resolves https://github.com/nextcloud/viewer/issues/2390 Make the version name dialog a real dialog instead of a modal. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): adjust IAttributes API and files_versionsskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Enable ESLint for apps and fix all errorsFerdinand Thiessen2024-07-091-7/+7
| | | | | | | | | 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_versions): renaming file version when its not a stringSanskar Soni2024-06-201-1/+2
| | | | Signed-off-by: Sanskar Soni <sanskarsoni300@gmail.com>
* fix(files_versions): Version name and date should be shrinkable to allow ↵Ferdinand Thiessen2024-06-171-7/+21
| | | | | | viewing on small screens Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_versions): Use `NcDateTime` to ensure date is transalted properlyFerdinand Thiessen2024-06-171-20/+14
| | | | | | Also do not use filters, filters are deprecated and will make migration to Vue 3 harder. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-0210-160/+27
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: made author-icon smaller and added try-catchEduardo Morales2024-03-151-14/+19
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: author displayname and avatar on versionsEduardo Morales2024-03-152-2/+42
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: exposed metadata column to frontendEduardo Morales2024-03-111-0/+1
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* fix(dav): multiple fixes in usage of webdav libraryVarun Patil2024-02-281-11/+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_version): Prevent error in nc/vue when deleting an NcListItem in ↵Louis Chemineau2024-02-271-1/+5
| | | | | | from one of its actions Signed-off-by: Louis Chemineau <louis@chmn.me>
* test: Add test selector on sharing and versions componentsLouis Chemineau2024-02-271-1/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(files_versions): improve and fix technical debt on `Version.vue`skjnldsv2024-02-231-47/+48
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files): replace `encodeFilePath` by `encodePath` from `@nextcloud/paths`skjnldsv2024-02-221-6/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Hide some actions based on node permissions and share attributesLouis Chemineau2024-02-211-4/+35
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Move modal outside of the Version component.Louis Chemineau2024-01-264-237/+290
| | | | | | This is for accessibility, to have the NcListItem (<li>) as a direct child of the <ul> Signed-off-by: Louis Chemineau <louis@chmn.me>
* Wrap versions list in virtual scrollLouis Chemineau2024-01-232-16/+396
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Handle error in previews for files versionsLouis Chemineau2023-11-201-2/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(files): add move or copy actionJohn Molakvoæ2023-09-261-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Use proper app id in Version.vueLouis Chemineau2023-09-251-3/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use t and n for translationLouis Chemineau2023-09-141-4/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix access to fileInfo in VersionTab.vueLouis Chemineau2023-09-071-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix: allow to name the current versionLouis Chemineau2023-09-072-9/+15
| | | | | | | We only need to change the filename of the current version for the viewer Signed-off-by: Louis Chemineau <louis@chmn.me>
* Enable new versions feature for groupfoldersLouis Chemineau2023-09-071-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: Add events for version restoreJulius Härtl2023-09-061-1/+19
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(cypress): adjust selectorsJohn Molakvoæ2023-08-171-0/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: Pass proper viewer filenameJulius Härtl2023-08-101-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat: Use viewer to open and compare versionsLouis Chemineau2023-08-084-38/+147
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: Update nextcloud-vue to v8 beta2 and renamed changed propertiesFerdinand Thiessen2023-08-021-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Enable all files versions features when groupfolders is enabledLouis Chemineau2023-07-051-2/+12
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Do not load preview if version tab is not activeLouis Chemineau2023-06-283-3/+20
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Provide hasPreview in files_versions DAV APILouis Chemineau2023-06-283-1/+7
| | | | | | | This allow to no request non existing previews I also set some properties to the img element to reduce preview loading to what the browser think is necessary Signed-off-by: Louis Chemineau <louis@chmn.me>
* Add fallback when a there is no preview for a versionLouis Chemineau2023-05-251-3/+14
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Improve handling of undefined version labelLouis Chemineau2023-05-251-4/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use consistent imports for Vue componentsVarun Patil2023-05-231-1/+7
| | | | | | This makes tree shaking possible Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* Highlight selected file version (Nextcloud Office)Jérôme Herbinet2023-04-181-0/+98
| | | | | | | After my PR #32492 fail, I create a new PR. Signed-off-by: Jérôme Herbinet <jerome.herbinet@arawa.fr> Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
* fix(deps): update webdav 5 usageJohn Molakvoæ2023-04-062-7/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(eslint): fix missing import extensionsJohn Molakvoæ2023-03-231-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore(eslint): replace node/no-missing-import by n/no-missing-importJohn Molakvoæ2023-03-231-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Use native tooltip for versionsLouis Chemineau2023-03-091-5/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix download URL for versionsChristopher Ng2023-03-071-3/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Handle undefined label in front-endLouis Chemineau2023-01-261-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Add cypress testsLouis Chemineau2023-01-262-2/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow to delete a version through DAVLouis Chemineau2023-01-261-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support getting and patching version-labelLouis Chemineau2023-01-265-143/+456
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Lint and remove file_versions testsLouis Chemineau2022-11-282-2/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>