Commit Graph

31695 Commits

Author SHA1 Message Date
Andy Scherzinger
9f3e21f94d style: replace webhook listener app with Material Symbol icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-13 14:15:32 +02:00
Nextcloud bot
59c181b4cb
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-13 00:19:50 +00: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
Marco
fddb2f03f0
Feat: Update apps/theming/lib/Themes/DefaultTheme.php
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Marco <marcoambrosini@proton.me>
2024-06-12 21:59:37 +02:00
skjnldsv
343b690d80 fix(files): fetch nodes if we have multiple of the same fileid in the store
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 17:57:14 +02:00
skjnldsv
1d7893dca8 fix(files): do not rely on unique fileid
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 17:15:51 +02:00
John Molakvoæ (skjnldsv)
a094ac0b6d fix(files): also trigger new tab on file name middle click
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-12 11:52:22 +00:00
Marco Ambrosini
1337f4a7d5 Feat: reduce border radius element to 8 px
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
2024-06-12 13:17:21 +02:00
Marco Ambrosini
68cba58e33 Feat: add new clickable area variables
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
2024-06-12 13:09:31 +02: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
4a77fe3530 fix(dav): also return shared-with-me shares data
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
John Molakvoæ
0b10f2d478
Merge pull request #45789 from nextcloud/fix/cy-selector 2024-06-12 10:08:25 +02:00
Nextcloud bot
003e4b9939
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-12 00:20:05 +00:00
Ferdinand Thiessen
7f3cc7502b
fix(files): Use data-cy (data attribute) instead of cy-data
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-11 21:34:28 +02:00
Ferdinand Thiessen
bac37b13ec
Merge pull request #45788 from nextcloud/refactor/files-library
refactor(files): Use `@nextcloud/files` functions where possible and make files views cancelable
2024-06-11 21:25:16 +02:00
Richard Steinmetz
3a975d0a89
fix(caldav): event links in shared calendar notifications
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-06-11 20:08:57 +02:00
Côme Chilliet
9fbf208858
Merge pull request #45475 from nextcloud/feat/add-support-for-webhooks
feat: Add support for webhook listeners
2024-06-11 16:31:27 +02:00
Ferdinand Thiessen
53324821be
refactor(files): Migrate personal view to @nextcloud/files functions
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-11 15:45:22 +02:00
Ferdinand Thiessen
de2276e6d7
refactor(files): Migrate favorites view to @nextcloud/files functions and make it cancelable
Also this fixes the view being writeable

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-11 15:45:22 +02:00
Ferdinand Thiessen
b1444e78e2
refactor(files): Migrate recent view to @nextcloud/files functions and make it cancelable
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-11 15:45:22 +02:00
Ferdinand Thiessen
85e6cb4ccc
refactor(files): Migrate files service to functions from @nextcloud/files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-11 15:45:21 +02:00
Ferdinand Thiessen
9ea557e34a
refactor(systemtags): Do not link to files app but directly use functions from @nextcloud/files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-11 15:45:21 +02:00
Côme Chilliet
e0b9ff4fa2
fix(webhooks): Fix a few more psalm notices
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:42:25 +02:00
Côme Chilliet
bff7d3c769 fix(webhooks): Fix last psalm and openapi problems with the API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
d5b53be449 fix(webhooks): Fix openapi reponse definition
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
f09c7815db fix(webhooks): Fix a few of psalm errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
19bc3ed1e3 chore(webhooks): Rename webhooks application to webhook_listeners
There is already a webhooks application in the appstore

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
9449f6438d fix(webhooks): Fix tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
6e38b48534 feat(webhooks): Add \SensitiveValue attribute to authData parameter in all classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
c940ba015c fix(webhooks): Fix migration uri length
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
6c7931b846 fix(webhooks): Add Nextcloud certificate bundle to client options
This way importing a certificate with occ security:certificate:import
 will allow to use it for webhooks.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
74e5812c26 fix(webhooks): Refuse webhooks registration if auth header is used without auth data
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
621c068680 fix(webhooks): fix crash when headers is null with header auth method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
bb2cb45340 fix: Remove superfluous antislash from event name to avoid problems
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
3bc43b2a34 fix: Move caching to the mapper instead
Application class cannot use DI, and having the cache in the mapper
 allows for invalidating it when inserting or updating a webhook
 registration.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
98f3ea657c fix: Cache webhooks listened events for 5min
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
e111d2e26c fix: Make webhook event serialization opt-in with a new interface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
35d5d90dc0 chore: rename Index.php to ListWebhooks.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
cccda66c7d fix: Fix errors spotted by reviewers, fix @throws annotations
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
d3c06d5dea fix: Fix eventFilter definition in ResponseDefinitions
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
8aae03c66c fix: Fix TODOs about authentication data, list possible auth methods
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
85e0407aad feat: Add support for headers and authentication headers in webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
261f08e631 feat: Add app_api app id to saved information about webhook
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
75b2ed4c79 chore: Add tests for the PHPMongoQuery class
It appears that it does not match Mongo current documentation exactly so
 we should look into adapting it. Having equality autodetect regex is a
 bit weird.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
7fe3f1cc70 fix: Add event filter to openapi
Somehow this does not work in the ocs_api_viewer app, so we should look
 into better specifying format for eventFilter.
Ideally it should also be set as in body, not query.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
144bdd73f9 feat: Add event filtering to webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
5dd9c2f8e8 feat: Add admin delegation for webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
3b64e525fb feat: Add command to list registered webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet
aa974a4322 feat: Add webhooks application
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
skjnldsv
d1591885d3 fix(search): tags redirect route
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-11 14:09:39 +02:00
Louis
bab91258e3
Merge pull request #45669 from nextcloud/fix/fix-encryption-legacy-reshare
fix: Autodetect legacy filekey instead of trusting the header for legacy header
2024-06-11 09:54:12 +02:00
Nextcloud bot
cef6d500d3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-11 00:19:32 +00:00
Andy Scherzinger
cca4978b80
chore: Update comments app icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-10 18:50:28 +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
9d0200ca6b
Merge pull request #45120 from nextcloud/bugfix/noid/sensitive-dav-forbidden-logging
fix(dav): Don't log access control as error
2024-06-10 11:56:33 +02:00
Nextcloud bot
7451105e3f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-10 00:19:40 +00:00
Nextcloud bot
1a6440c353
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-09 00:19:20 +00:00
Ferdinand Thiessen
75dcf901ff
fix(files): Ensure that focussed file is always scrolled right
Ensure the correct file is scrolled if the content changes,
this also sets a minimal height to the virtual scrolling area
so that the `scrollTop` can be set.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-08 15:58:45 +02:00
Ferdinand Thiessen
fbceac9fe1
fix(files): Keep query when trigger the sidebar action
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-08 15:58:45 +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
Ferdinand Thiessen
13d9a1007b
refactor(files): Fix TypeScript issues in FileEntryActions
* We filter the array in `enabledSubmenuActions` so we can be sure the action does have a parent
* Node attributes must be accessed using the `attributes` getter not the private `_attributes` property
* Cast action ref to correct component interface to make TypeScript happy

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-08 15:58:45 +02:00
Nextcloud bot
49c42c36ae
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-08 00:19:12 +00:00
Ferdinand Thiessen
a6e0f083fb fix(files): Correctly type virtual files list ref type
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-07 18:11:03 +00:00
Arthur Schiwon
98b5cdc43d
Merge pull request #43942 from nextcloud/fix/43612/avoid-pwd-confirm-sso
fix(Session): avoid password confirmation on SSO
2024-06-07 11:25:36 +02:00
John Molakvoæ
ef01dc72c1
Merge pull request #45684 from nextcloud/feat/user-row-action-svg 2024-06-07 08:48:11 +02:00
Nextcloud bot
94a5cdeae2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-07 00:35:18 +00:00
Christopher Ng
d32f7d1ff6 feat(settings): Support svg user row action icons
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-06-06 17:25:50 -07:00
Pytal
0310df5d3b
Merge pull request #45686 from nextcloud/feat/user-row-action-enabled
feat(settings): Add user row action enabled callback
2024-06-06 17:00:37 -07: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
nextcloud-command
b789e90f36 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-06 16:17:03 +00:00
Andy Scherzinger
c1555fc33e
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-06 18:05:37 +02:00
Louis Chemineau
f244261e85
test: Fix encryption test
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-06-06 18:02:32 +02:00
Côme Chilliet
e14620cb15
fix: Only list remnants as disabled if option is enabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-06 16:48:27 +02:00
Côme Chilliet
885604ce2d
fix: add default value for new flag $useDecryptAll on getFileKey
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-06 10:23:03 +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
Nextcloud bot
ad7341881a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-06 00:20:51 +00:00
Christopher Ng
51cd2ad13d feat(settings): Close user row action menu after click
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-06-05 15:05:39 -07:00
Christopher Ng
1de77edfdf feat(settings): Add action enabled callback
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-06-05 15:05:39 -07:00
Arthur Schiwon
f6d6efef3a
refactor(Token): introduce scope constants
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2024-06-05 19:01:14 +02:00
Nextcloud bot
94bc020d07
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-05 09:56:05 +00:00
skjnldsv
7f0ffac727 fix(federatedfilesharing): import external federated share script
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-05 08:42:40 +00:00
Côme Chilliet
95cd524771
fix: Autodetect legacy filekey instead of trusting the header for legacy header
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-04 17:20:20 +02:00
John Molakvoæ (skjnldsv)
af5a29e568 fix(files): reset menu pos when opening in grid mode
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2024-06-04 13:48:03 +00:00
Ferdinand Thiessen
d33cfdd14b fix(files): Only execute default action if there is an action to perform
Some files do not have a default action (can not be viewed and only downloaded).
If the `openfile` query is set on them the `handleOpenFile` will throw an error.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-04 14:41:08 +02:00
Ferdinand Thiessen
91ac7dfb7c fix(files): Update current fileid in route if that node was deleted
We do not change the view to the trash bin but stay in the current view,
so we need to update the current fileid on the route if that was deleted.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-04 12:40:48 +02:00
Ferdinand Thiessen
c1fdd9031c fix(files): Close sidebar if shown node is deleted
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-04 12:40:48 +02:00
nextcloud-command
9193f57a10 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-03 18:49:29 +00:00
Andy Scherzinger
ec5b60af28
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-03 20:33:31 +02:00
Anna
a28a9709ba
Merge pull request #45235 from nextcloud/fix/remove-old-scheduling-objects
fix(caldav): automatically delete outdated scheduling objects
2024-06-03 13:06:10 +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
Ferdinand Thiessen
ceafe43a4c
refactor(files): Make currentView a prop of FilesListTableFooter
We already have this as a required prop in `FilesListVirtual`,
so passing it to the footer is straight forward and removed need of computed
value.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 17:17:31 +02:00
Ferdinand Thiessen
e8adb97098
refactor(files): Properly add type information to FilesListTableFooter
- Add correct type for `nodes` prop.
- Use `defineComponent` to properly infer Typescript information
- Correct usage of nullish coalescing operator

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 17:17:31 +02:00
Ferdinand Thiessen
297f0522b2
refactor(files): Fix Typescript issues in filesListWidth mixin
Use `defineComponent` to properly inherit typings.
Expect TS errors for the `$resizeOberserver` as we attach it directly on the component instance.
`filesListWidth` is now a number which defaults to 0,
making compares like `this.fileListWidth < 768` valid in Typescript.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 17:17:31 +02:00
Ferdinand Thiessen
0cb32880ee
refactor(files): Correctly cast table ref to fix TypeScript errors
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 17:17:31 +02:00
Anna Larch
ad78f7e48e fix(caldav): automatically delete outdated scheduling objects
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-05-31 13:14:01 +02:00
Ferdinand Thiessen
622bf30031
fix(deps): Update @nextcloud/event-bus to version 3.3.1
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 12:46:20 +02:00
Ferdinand Thiessen
67d8277c49
fix: Update @nextcloud/files to 3.4.0 to fix public link shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 12:46:20 +02:00