Commit Graph

74 Commits (b5291bfd4480497e706fee7c0ff48bbc8d2db3ee)

Author SHA1 Message Date
provokateurin 07c1aea2f5
fix(files_versions): Rely on server mime fallback icons
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-03-27 08:56:45 +07:00
Ferdinand Thiessen 00a1f23913
fix(files_versions): correctly show version author also for shared files
The users endpoint is not available for other users if the current user
has no admin privileges, so instead use the displaynames endpoint.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-25 21:33:06 +07: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 +07:00
Ferdinand Thiessen e8c1e2c611
fix(code-style): Adjust JS code to our code style
This resolves 68 ESLint warnings about invalid code style.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-10-16 22:11:59 +07:00
Louis Chemineau 2582b6a181 fix: Minor @nc/vue usage errors
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-10-09 19:49:07 +07:00
Mostafa Ahangarha 723780d184 feat: Add bidi support in core directory
Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
2024-08-29 08:32:47 +07:00
Ferdinand Thiessen 351dd6dd8a fix(files_versions): Migrate version name dialog from NcModal to NcDialog
* 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>
2024-08-22 19:16:24 +07:00
skjnldsv 9b84831c8d fix(files_sharing): adjust IAttributes API and files_versions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +07: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 +07:00
Sanskar Soni 2aecc523c8
fix(files_versions): renaming file version when its not a string
Signed-off-by: Sanskar Soni <sanskarsoni300@gmail.com>
2024-06-20 00:31:52 +07:00
Ferdinand Thiessen 99262130fa
fix(files_versions): Version name and date should be shrinkable to allow viewing on small screens
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-17 09:22:02 +07:00
Ferdinand Thiessen 9f22538c91
fix(files_versions): Use `NcDateTime` to ensure date is transalted properly
Also do not use filters, filters are deprecated and will make migration to Vue 3 harder.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-17 09:22:02 +07:00
Andy Scherzinger afa48a4e0e
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-02 20:00:00 +07:00
Eduardo Morales 4bfbcad4d6 fix: made author-icon smaller and added try-catch
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-15 17:19:04 +07:00
Eduardo Morales e03c74a61c feat: author displayname and avatar on versions
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-15 20:13:40 +07:00
Eduardo Morales 4cf4fdc278 feat: exposed metadata column to frontend
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 +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 +07:00
Louis Chemineau ebff12f60e
fix(files_version): Prevent error in nc/vue when deleting an NcListItem in from one of its actions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:22:29 +07:00
Louis Chemineau bd88ecf534
test: Add test selector on sharing and versions components
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:22:29 +07:00
skjnldsv 0a9b498b5a chore(files_versions): improve and fix technical debt on `Version.vue`
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-02-23 02:52:32 +07: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 +07:00
Louis Chemineau 18b32e892c
Hide some actions based on node permissions and share attributes
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-21 16:47:19 +07:00
Louis Chemineau 3f63375a06
Move modal outside of the Version component.
This is for accessibility, to have the NcListItem (<li>) as a direct child of the <ul>

Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-01-26 15:41:50 +07:00
Louis Chemineau 5302024156
Wrap versions list in virtual scroll
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-01-23 15:57:29 +07:00
Louis Chemineau 6896724dd4
Handle error in previews for files versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-20 18:12:25 +07:00
John Molakvoæ f9d2e3af0c
feat(files): add move or copy action
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-09-26 20:15:59 +07:00
Louis Chemineau 58bb9820e5
Use proper app id in Version.vue
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-25 15:23:00 +07:00
Louis Chemineau 79d1870aa7 Use t and n for translation
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-14 09:40:20 +07:00
Louis Chemineau 687c5aef48 Fix access to fileInfo in VersionTab.vue
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 22:57:08 +07:00
Louis Chemineau 52ceb40c05 Fix: allow to name the current version
We only need to change the filename
of the current version for the viewer

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 15:47:59 +07:00
Louis Chemineau 8d84dc33df Enable new versions feature for groupfolders
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 15:47:59 +07:00
Julius Härtl bb419321e0 feat: Add events for version restore
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-09-06 13:29:22 +07:00
John Molakvoæ fdf07fc759
fix(cypress): adjust selectors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:39 +07:00
Julius Härtl 2c8753a939 fix: Pass proper viewer filename
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-08-10 12:43:34 +07:00
Louis Chemineau 5902325e23
feat: Use viewer to open and compare versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-08-08 21:19:03 +07:00
Ferdinand Thiessen 663db2bb34 chore: Update nextcloud-vue to v8 beta2 and renamed changed properties
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-02 15:19:26 +07:00
Louis Chemineau eb71ee950d Enable all files versions features when groupfolders is enabled
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-07-05 15:52:13 +07:00
Louis Chemineau 6eb93c652a Do not load preview if version tab is not active
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-28 17:00:23 +07:00
Louis Chemineau 36c3846475 Provide hasPreview in files_versions DAV API
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>
2023-06-28 16:46:48 +07:00
Louis Chemineau e8eb8a9f74 Add fallback when a there is no preview for a version
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-25 23:46:04 +07:00
Louis Chemineau c40de8b88f Improve handling of undefined version label
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-25 23:46:04 +07:00
Varun Patil 66a8a9fba1
Use consistent imports for Vue components
This makes tree shaking possible

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2023-05-23 22:34:14 +07:00
Jérôme Herbinet 4ec183fa33 Highlight selected file version (Nextcloud Office)
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>
2023-04-18 15:38:13 +07:00
John Molakvoæ a66cae02ef
fix(deps): update webdav 5 usage
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:32 +07:00
John Molakvoæ 8633f13e0a
chore(eslint): fix missing import extensions
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 08:14:19 +07:00
John Molakvoæ 5adfec3dc6
chore(eslint): replace node/no-missing-import by n/no-missing-import
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 07:31:33 +07:00
Louis Chemineau 97b56da75e Use native tooltip for versions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-03-09 17:38:51 +07:00
Christopher Ng 72e2cabf40 Fix download URL for versions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-03-07 10:14:33 +07:00
Louis Chemineau 96002651ce Handle undefined label in front-end
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau fd9937a171 Add cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00