Commit graph

84 commits

Author SHA1 Message Date
SebastianKrupinski
d85af5bdf0 fix: TypeError: this.fetchDisplayName is not a function
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
2025-09-03 15:07:20 -04:00
Andy Scherzinger
5c707dd80a
style(icon): Replace filled icon with outlined variant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-09-01 09:46:43 +02:00
John Molakvoæ (skjnldsv)
289cb082a6 fix(files_versions): author and label parsing fallback
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2025-08-29 12:03:01 +00:00
John Molakvoæ (skjnldsv)
1b7418f848
fix(files_versions): ensure users IDs are strings
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2025-08-29 11:04:11 +02:00
SebastianKrupinski
5b02d11a71 fix: retrieve all display names with one request
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
2025-08-28 09:03:35 -04:00
Andy Scherzinger
f08da99e79 style(icon): Use material symbol variant of download icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-08-27 15:19:46 +00:00
Ferdinand Thiessen
82d4d8290b refactor: replace deprecated CSS variables with their replacement
Couple of versions ago:
- `color-text-light` was replaced with `color-main-text`
- `color-text-lighter` was replaced with `color-text-maxcontrast`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-19 15:50:29 +02: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
Julien Veyssier
422e3d9ab5
fix(files_versions): give the version label a min width so it does not get invisible if the author name is long
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-06-18 11:47:32 +02:00
Alejo
ab11868bb6 fix(files_versions): "undefined restored" on restore
Signed-off-by: Alejo <xlejo@protonmail.com>
2025-05-29 12:10:39 +02:00
provokateurin
07c1aea2f5
fix(files_versions): Rely on server mime fallback icons
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-03-27 08:56:45 +01: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 +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
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 +02:00
Louis Chemineau
2582b6a181 fix: Minor @nc/vue usage errors
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-10-09 19:49:07 +02: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 +00: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 +02: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 +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
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 +02: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 +02: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 +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
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 -05: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 +01:00
Eduardo Morales
4cf4fdc278 feat: exposed metadata column to frontend
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 -05: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
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 +01: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 +01: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 +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
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 +01: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 +01:00
Louis Chemineau
5302024156
Wrap versions list in virtual scroll
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-01-23 15:57:29 +01: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 +01: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 +02: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 +02:00
Louis Chemineau
79d1870aa7 Use t and n for translation
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-14 09:40:20 +02: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 +02: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 +02:00
Louis Chemineau
8d84dc33df Enable new versions feature for groupfolders
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 15:47:59 +02: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 +02:00
John Molakvoæ
fdf07fc759
fix(cypress): adjust selectors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:39 +02: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 +02: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 +02: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 +02: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 +02: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 +02: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 +02: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 +02:00