Commit graph

97 commits

Author SHA1 Message Date
Ferdinand Thiessen
59b68e1248
chore: fix vue/attribute-hyphenation ESLint rule
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-25 23:47:39 +01:00
Ferdinand Thiessen
12f1b91ee1
chore: fix vue/v-on-event-hyphenation ESLint rule
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-25 23:47:39 +01:00
Ferdinand Thiessen
a0871deec4
chore: fix vue/custom-event-name-casing ESLint rule
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-25 23:47:39 +01:00
Ferdinand Thiessen
d3813798bf
chore: update @nextcloud/files to v4.0.0-rc.0
- update library
- adjust sidebar tab handling

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-16 22:22:57 +01:00
Ferdinand Thiessen
8ac1602402
refactor: drop moment from new bundles
On the Vue 3 side lets remove the dependency on Moment as this is a
pretty huge dependency. Instead use plain Intl API for formatting.

This reduces the bundle size by ~1.5MiB.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-14 10:25:37 +01:00
Ferdinand Thiessen
493c371a22
refactor(files_versions): adjust frontend for new files sidebar API
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-05 02:23:15 +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
Ferdinand Thiessen
42112c8d30 chore: auto fix ESLint issues
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-25 16:25:54 +01:00
Ferdinand Thiessen
5540671cdb
chore: fixed linter issues forgotten in new frontend code
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-24 14:29:27 +01:00
Louis Chmn
8dc64d794c refactor(files_versions): Migrate to Vue3
Signed-off-by: Louis Chmn <louis@chmn.me>
2025-10-24 17:46:44 +02:00
Ferdinand Thiessen
470ff8d3d3 fix: migrate to non-deprecated dialog props
In Nextcloud Vue v8 some props for dialog buttons were deprecated (type
for e.g. primary or nativeType) those are replaced with `variant` and
`type`.
In v9 the deprecated props are removed - thus this breaks with
nextcloud-dialogs v7 which is based on Vue 3.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-16 17:55:11 +02:00
Ferdinand Thiessen
ca65cf72d8
chore: add missing import of the logger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-02 13:19:43 +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
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