Commit graph

6495 commits

Author SHA1 Message Date
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
skjnldsv
967b3848e0 fix(files_sharing): phpunit & openapi fixes
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
bc5839e5b5 chore(files_sharing): cleanup NewFileRequestDialog vue
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
30f9ef414e fix: psalm, cs, autoloader and lint
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
5ce4bb368f chore(files_sharing): refactor share password mail
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
208ff8013d chore(files_sharing): refactor sharing config
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
06462804f7 fix(files_sharing): adjust NewFileRequestDialog for emails invites
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
75ca4944c9 feat(files_sharing): allow mixed values in share attributes and allow storing email arrays
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
c253112cf7 chore(files_sharing): refactor mail handling
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
d388370c3b feat(files_sharing): implement IShareProviderWithNotification and refactor sendMailNotification
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
443c48aefb feat(files_sharing): add new file request option
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
skjnldsv
b6f635f6f6 chore(files_sharing): rename File drop to File requests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-12 20:14:30 +02:00
Nextcloud bot
1a41cd57cf
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-11 00:20:02 +00:00
Ferdinand Thiessen
b2cf05657d
chore: Make app icons consistent Material Symbols with same settings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-10 15:53:45 +02:00
Ferdinand Thiessen
fd21e15f7d fix(files_sharing): Only enable mixed sharing types if there is at least one sharing type
If the array is empty it means it is not shared.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-09 20:34:08 +02:00
Ferdinand Thiessen
d0951b48be
chore(files): Fix ESLint issues with files and files_sharing app
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-09 17:25:41 +02:00
Ferdinand Thiessen
24c01695bb
test: Adjust Typescript definitions for OCP and OC
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-09 17:13: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
fenn-cs
48339500fc fix(SharingDetailsView): Prevent illegal unselection of read permissions
With the exception of "file drop" on link shares all other shares need the read permissions at least.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-08 20:32:52 +01:00
fenn-cs
483d857de0 refactor(SharingInput): Remove unused addShare
The new sharing flow since NC27 requires that users open the sharing details tab and
customize their share before creating it.

In https://github.com/nextcloud/server/pull/39472 the work of `addShare` was handed down to
`openSharingDetails` that opens the sharing details tab for the user to customize and manually
creat their share.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-03 09:06:47 +01:00
fenn-cs
c998f5ebba fix(ExternalSharing): Handle template share from external sources
The new sharing flow requires or implies that users should edit share before creating.
External sources should not created the share IF we would upon sharing details tab on first request.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-03 09:06:47 +01:00
Nextcloud bot
7f7e189624
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-03 00:20:11 +00:00
provokateurin
32de958259
chore(deps): Update openapi-extractor
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-07-02 09:08:04 +02:00
fenn-cs
6136112be1 docs(ShareApiController): Correct note about expiry date timezone
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-01 13:53:18 +01:00
Nextcloud bot
a7fd9c9831
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-30 00:19:22 +00:00
Nextcloud bot
7003725782
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-29 00:19:43 +00:00
Nextcloud bot
e3f6959c60
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-28 00:20:40 +00:00
fenn-cs
0c8fe406f1 fix(SharingEntryLink): Show enforced password input label
While upgrading icons in b3ec461fe8 enforced password label
icon was not correctly wrapped.

Resolves : https://github.com/nextcloud/server/issues/45941

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-27 08:11:41 +02:00
Nextcloud bot
7eecfd6d89
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-27 00:19:56 +00:00
Louis Chemineau
f5fd6c8f08
fix(files_sharing): Store the expiration date relative to the server's timezone
This is needed as we want to store the difference between the server's and the user's timezones.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-06-26 12:49:42 +02:00
fenn-cs
f7527c3279 refactor(SharingDetailsView): Use NC logger
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-25 18:16:48 +01:00
fenn-cs
38b5987b40 fix(FilesView): Update files view upon share creation/delete
Resolves : https://github.com/nextcloud/server/issues/44961

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-25 18:16:48 +01:00
Joas Schilling
8130968a35
feat(notifications): Migrate server INotifiers to new exceptions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-06-25 11:56:24 +02:00
Nextcloud bot
4d1f9ae54e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-24 00:19:33 +00:00
Ferdinand Thiessen
1d0a65db93
fix: Do not import from axios but only @nextcloud/axios
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-20 12:34:37 +02:00
Andy Scherzinger
5e05a2da8c
style: update copy icon to Material Design icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-19 15:31:09 +02:00
nextcloud-command
a0ef683d39 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-19 10:22:05 +00:00
Andy Scherzinger
ce7b331d33
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-19 12:02:43 +02:00
Nextcloud bot
55036a0bc4
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-16 00:19:16 +00:00
Nextcloud bot
f0f4db3464
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-14 00:19:48 +00:00
Andy Scherzinger
1d451d44a2 chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-13 14:15:32 +02:00
fenn-cs
8ac2c8e9e2 fix(files_sharing): Improve recursion in onNewLinShare
These changes fixes the issue of having the refresh the UI after share creation, as the share is not
immediately removed from the UI list.

Important changes

- The basis of checking wether a password/expire date is no longer based on config values alone
because the config is not expected in a share creation circle. Hence we check the configs and check
if the share object (this.share) has the expected values set. This way, once the required properties
are set, code control does not enter the block meant to handle the setting of required properties
unneccessarily.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-12 23:04:57 +01:00
fenn-cs
2863ad58bb refactor(ShareDetails): Prevent undefined errors for share.permissions
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-12 22:02:02 +01:00
skjnldsv
8bed23288b fix(files_sharing): dark avatar support
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 10:27:29 +02:00
skjnldsv
a0a36563b6 fix(files_sharing): fix parsing of remote shares
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 10:27:29 +02:00
Ferdinand Thiessen
21a0009553
Merge pull request #44967 from nextcloud/perf/sharing-events
perf(files_sharing): Move events to listener classes and registration instead of boot
2024-06-10 11:57:53 +02:00
Ferdinand Thiessen
423c93087e
fix(files): open-in-files action should also set openfile query
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-08 15:58:45 +02:00
nextcloud-command
0cbf2361c5 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-06 21:02:15 +00:00
Andy Scherzinger
1e04619675
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-06 22:53:41 +02:00
Louis Chemineau
914c4a28db fix(files_sharing): usage of NcTextField in SelectShareFolderDialogue
The NcTextField needs a value property to be set.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-06-06 09:52:19 +02:00