Skip to content

Commit

Permalink
Merge branch 'master' into feat/update-line-height
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoambrosini committed Jul 31, 2024
2 parents e537728 + 6a0edef commit e3fa5fe
Show file tree
Hide file tree
Showing 416 changed files with 3,060 additions and 550 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->
## Submitting issues

If you have questions about how to install or use Nextcloud, please direct these to our [forum][forum]. We are also available on [IRC][irc].
If you have questions about how to install or use Nextcloud, please direct these to our [forum][forum]. We are also available on [IRC][irc] (unofficial).

### Short version

Expand All @@ -25,7 +25,7 @@ Help us to maximize the effort we can spend fixing issues and adding new feature

[templates]: ./ISSUE_TEMPLATE
[forum]: https://help.nextcloud.com/
[irc]: https://webchat.freenode.net/?channels=nextcloud
[irc]: https://web.libera.chat/#nextcloud

## Contributing to Source Code

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/files-external-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ jobs:

steps:
- name: Summary status
run: if ${{ needs.changes.outputs.src != 'false' && needs.files-external-s3-minio.result != 'success' && needs.files-external-s3-localstack.result != 'success' }}; then exit 1; fi
run: if ${{ needs.changes.outputs.src != 'false' && (needs.files-external-s3-minio.result != 'success' || needs.files-external-s3-localstack.result != 'success') }}; then exit 1; fi
2 changes: 1 addition & 1 deletion .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ jobs:

steps:
- name: Summary status
run: if ${{ needs.changes.outputs.src != 'false' && needs.test.result != 'success' && needs.jsunit.result != 'success' && needs.handlebars.result != 'success' }}; then exit 1; fi
run: if ${{ needs.changes.outputs.src != 'false' && (needs.test.result != 'success' || needs.jsunit.result != 'success' || needs.handlebars.result != 'success') }}; then exit 1; fi
2 changes: 1 addition & 1 deletion 3rdparty
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
use OCA\CloudFederationAPI\ResponseDefinitions;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\BruteForceProtection;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Federation\Exceptions\ActionNotSupportedException;
use OCP\Federation\Exceptions\AuthenticationFailedException;
Expand Down Expand Up @@ -55,10 +58,6 @@ public function __construct(
/**
* Add share
*
* @NoCSRFRequired
* @PublicPage
* @BruteForceProtection(action=receiveFederatedShare)
*
* @param string $shareWith The user who the share will be shared with
* @param string $name The resource name (e.g. document.odt)
* @param string|null $description Share description
Expand All @@ -76,6 +75,9 @@ public function __construct(
* 400: Bad request due to invalid parameters, e.g. when `shareWith` is not found or required properties are missing
* 501: Share type or the resource type is not supported
*/
#[PublicPage]
#[NoCSRFRequired]
#[BruteForceProtection(action: 'receiveFederatedShare')]
public function addShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $protocol, $shareType, $resourceType) {
// check if all required parameters are set
if ($shareWith === null ||
Expand Down Expand Up @@ -185,10 +187,6 @@ public function addShare($shareWith, $name, $description, $providerId, $owner, $
/**
* Send a notification about an existing share
*
* @NoCSRFRequired
* @PublicPage
* @BruteForceProtection(action=receiveFederatedShareNotification)
*
* @param string $notificationType Notification type, e.g. SHARE_ACCEPTED
* @param string $resourceType calendar, file, contact,...
* @param string|null $providerId ID of the share
Expand All @@ -200,6 +198,9 @@ public function addShare($shareWith, $name, $description, $providerId, $owner, $
* 403: Getting resource is not allowed
* 501: The resource type is not supported
*/
#[NoCSRFRequired]
#[PublicPage]
#[BruteForceProtection(action: 'receiveFederatedShareNotification')]
public function receiveNotification($notificationType, $resourceType, $providerId, ?array $notification) {
// check if all required parameters are set
if ($notificationType === null ||
Expand Down
4 changes: 4 additions & 0 deletions apps/comments/l10n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ OC.L10N.register(
"%1$s commented on %2$s" : "%1$s kommentierte %2$s",
"{author} commented on {file}" : "{author} hat {file} kommentiert",
"<strong>Comments</strong> for files" : "<strong>Kommentare</strong> für Dateien",
"You were mentioned on \"{file}\", in a comment by an account that has since been deleted" : "Du wurdest in einem Kommentar zu \"{file}\" von einem Konto erwähnt, das inzwischen gelöscht wurde.",
"{user} mentioned you in a comment on \"{file}\"" : "{user} hat dich in einem Kommentar zu \"{file}\" erwähnt",
"Files app plugin to add comments to files" : "Ein Plugin für die Dateien-App zum Kommentieren von Dateien",
"Edit comment" : "Kommentar bearbeiten",
"Delete comment" : "Kommentar löschen",
"Cancel edit" : "Bearbeiten abbrechen",
"New comment" : "Neuer Kommentar",
"Write a comment …" : "Schreibe einen Kommentar …",
"Post comment" : "Kommentar veröffentlichen",
"@ for mentions, : for emoji, / for smart picker" : "@ für Erwähnungen, : für Emoji, / für Smart Picker",
"Could not reload comments" : "Kommentare konnten nicht erneut geladen werden",
Expand All @@ -30,6 +32,8 @@ OC.L10N.register(
"An error occurred while trying to delete the comment" : "Es ist ein Fehler beim Löschen des Kommentars aufgetreten",
"An error occurred while trying to create the comment" : "Es ist ein Fehler beim Erstellen des Kommentars aufgetreten",
"You were mentioned on \"{file}\", in a comment by a user that has since been deleted" : "Du wurdest in einem Kommentar auf \"{file}\" von einem bereits gelöschten Benutzer erwähnt",
"Write a message …" : "Eine Nachricht schreiben …",
"\"@\" for mentions, \":\" for emoji, \"/\" for smart picker" : "\"@\" für Erwähnungen, \":\" für Emoji, \"/\" für Smart Picker",
"_%n unread comment_::_%n unread comments_" : ["%n ungelesener Kommentar","%n ungelesene Kommentare"]
},
"nplurals=2; plural=(n != 1);");
4 changes: 4 additions & 0 deletions apps/comments/l10n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"%1$s commented on %2$s" : "%1$s kommentierte %2$s",
"{author} commented on {file}" : "{author} hat {file} kommentiert",
"<strong>Comments</strong> for files" : "<strong>Kommentare</strong> für Dateien",
"You were mentioned on \"{file}\", in a comment by an account that has since been deleted" : "Du wurdest in einem Kommentar zu \"{file}\" von einem Konto erwähnt, das inzwischen gelöscht wurde.",
"{user} mentioned you in a comment on \"{file}\"" : "{user} hat dich in einem Kommentar zu \"{file}\" erwähnt",
"Files app plugin to add comments to files" : "Ein Plugin für die Dateien-App zum Kommentieren von Dateien",
"Edit comment" : "Kommentar bearbeiten",
"Delete comment" : "Kommentar löschen",
"Cancel edit" : "Bearbeiten abbrechen",
"New comment" : "Neuer Kommentar",
"Write a comment …" : "Schreibe einen Kommentar …",
"Post comment" : "Kommentar veröffentlichen",
"@ for mentions, : for emoji, / for smart picker" : "@ für Erwähnungen, : für Emoji, / für Smart Picker",
"Could not reload comments" : "Kommentare konnten nicht erneut geladen werden",
Expand All @@ -28,6 +30,8 @@
"An error occurred while trying to delete the comment" : "Es ist ein Fehler beim Löschen des Kommentars aufgetreten",
"An error occurred while trying to create the comment" : "Es ist ein Fehler beim Erstellen des Kommentars aufgetreten",
"You were mentioned on \"{file}\", in a comment by a user that has since been deleted" : "Du wurdest in einem Kommentar auf \"{file}\" von einem bereits gelöschten Benutzer erwähnt",
"Write a message …" : "Eine Nachricht schreiben …",
"\"@\" for mentions, \":\" for emoji, \"/\" for smart picker" : "\"@\" für Erwähnungen, \":\" für Emoji, \"/\" für Smart Picker",
"_%n unread comment_::_%n unread comments_" : ["%n ungelesener Kommentar","%n ungelesene Kommentare"]
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}
2 changes: 2 additions & 0 deletions apps/contactsinteraction/l10n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ OC.L10N.register(
{
"Recently contacted" : "Zuletzt kontaktiert",
"Contacts Interaction" : "Kontakte-Interaktion",
"Manages interaction between accounts and contacts" : "Verwaltet Interaktionen zwischen Konten und Kontakten.",
"Collect data about accounts and contacts interactions and provide an address book for the data" : "Sammelt Daten über Konten- und Kontaktinteraktionen und stellt ein Adressbuch für die Daten bereit",
"Manages interaction between users and contacts" : "Verwaltet Interaktionen von Benutzern mit Kontakten.",
"Collect data about user and contacts interactions and provide an address book for the data" : "Sammelt Daten über Benutzer- und Kontaktinteraktionen und stellt ein Adressbuch für die Daten bereit"
},
Expand Down
2 changes: 2 additions & 0 deletions apps/contactsinteraction/l10n/de.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ "translations": {
"Recently contacted" : "Zuletzt kontaktiert",
"Contacts Interaction" : "Kontakte-Interaktion",
"Manages interaction between accounts and contacts" : "Verwaltet Interaktionen zwischen Konten und Kontakten.",
"Collect data about accounts and contacts interactions and provide an address book for the data" : "Sammelt Daten über Konten- und Kontaktinteraktionen und stellt ein Adressbuch für die Daten bereit",
"Manages interaction between users and contacts" : "Verwaltet Interaktionen von Benutzern mit Kontakten.",
"Collect data about user and contacts interactions and provide an address book for the data" : "Sammelt Daten über Benutzer- und Kontaktinteraktionen und stellt ein Adressbuch für die Daten bereit"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
Expand Down
4 changes: 4 additions & 0 deletions apps/dav/l10n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ OC.L10N.register(
"Fourth" : "4.",
"Fifty" : "5.",
"Last" : "Letzte",
"Second Last" : "Vorletztes",
"Third Last" : "Drittletztes",
"Fourth Last" : "Viertletztes",
"Fifty Last" : "Fünftletztes",
"Contacts" : "Kontakte",
"{actor} created address book {addressbook}" : "{actor} hat das Adressbuch {addressbook} erstellt",
"You created address book {addressbook}" : "Du hast das Adressbuch {addressbook} erstellt",
Expand Down
4 changes: 4 additions & 0 deletions apps/dav/l10n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
"Fourth" : "4.",
"Fifty" : "5.",
"Last" : "Letzte",
"Second Last" : "Vorletztes",
"Third Last" : "Drittletztes",
"Fourth Last" : "Viertletztes",
"Fifty Last" : "Fünftletztes",
"Contacts" : "Kontakte",
"{actor} created address book {addressbook}" : "{actor} hat das Adressbuch {addressbook} erstellt",
"You created address book {addressbook}" : "Du hast das Adressbuch {addressbook} erstellt",
Expand Down
6 changes: 4 additions & 2 deletions apps/dav/lib/Controller/BirthdayCalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

use OCA\DAV\BackgroundJob\GenerateBirthdayCalendarBackgroundJob;
use OCA\DAV\CalDAV\CalDavBackend;
use OCA\DAV\Settings\CalDAVSettings;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\AuthorizedAdminSetting;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\Response;
use OCP\BackgroundJob\IJobList;
Expand Down Expand Up @@ -70,8 +72,8 @@ public function __construct($appName, IRequest $request,

/**
* @return Response
* @AuthorizedAdminSetting(settings=OCA\DAV\Settings\CalDAVSettings)
*/
#[AuthorizedAdminSetting(settings: CalDAVSettings::class)]
public function enable() {
$this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'yes');

Expand All @@ -87,8 +89,8 @@ public function enable() {

/**
* @return Response
* @AuthorizedAdminSetting(settings=OCA\DAV\Settings\CalDAVSettings)
*/
#[AuthorizedAdminSetting(settings: CalDAVSettings::class)]
public function disable() {
$this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'no');

Expand Down
4 changes: 2 additions & 2 deletions apps/dav/lib/Controller/DirectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OCA\DAV\Db\Direct;
use OCA\DAV\Db\DirectMapper;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCS\OCSBadRequestException;
use OCP\AppFramework\OCS\OCSForbiddenException;
Expand Down Expand Up @@ -69,8 +70,6 @@ public function __construct(string $appName,
}

/**
* @NoAdminRequired
*
* Get a direct link to a file
*
* @param int $fileId ID of the file
Expand All @@ -82,6 +81,7 @@ public function __construct(string $appName,
*
* 200: Direct link returned
*/
#[NoAdminRequired]
public function getUrl(int $fileId, int $expirationTime = 60 * 60 * 8): DataResponse {
$userFolder = $this->rootFolder->getUserFolder($this->userId);

Expand Down
22 changes: 10 additions & 12 deletions apps/dav/lib/Controller/InvitationResponseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

use OCA\DAV\CalDAV\InvitationResponse\InvitationResponseServer;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IDBConnection;
Expand Down Expand Up @@ -52,12 +54,11 @@ public function __construct(string $appName, IRequest $request,
}

/**
* @PublicPage
* @NoCSRFRequired
*
* @param string $token
* @return TemplateResponse
*/
#[PublicPage]
#[NoCSRFRequired]
public function accept(string $token):TemplateResponse {
$row = $this->getTokenInformation($token);
if (!$row) {
Expand All @@ -76,12 +77,11 @@ public function accept(string $token):TemplateResponse {
}

/**
* @PublicPage
* @NoCSRFRequired
*
* @param string $token
* @return TemplateResponse
*/
#[PublicPage]
#[NoCSRFRequired]
public function decline(string $token):TemplateResponse {
$row = $this->getTokenInformation($token);
if (!$row) {
Expand All @@ -101,26 +101,24 @@ public function decline(string $token):TemplateResponse {
}

/**
* @PublicPage
* @NoCSRFRequired
*
* @param string $token
* @return TemplateResponse
*/
#[PublicPage]
#[NoCSRFRequired]
public function options(string $token):TemplateResponse {
return new TemplateResponse($this->appName, 'schedule-response-options', [
'token' => $token
], 'guest');
}

/**
* @PublicPage
* @NoCSRFRequired
*
* @param string $token
*
* @return TemplateResponse
*/
#[PublicPage]
#[NoCSRFRequired]
public function processMoreOptionsResult(string $token):TemplateResponse {
$partstat = $this->request->getParam('partStat');

Expand Down
1 change: 1 addition & 0 deletions apps/encryption/l10n/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/encryption/l10n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"Enabling this option encrypts all files stored on the main storage, otherwise only files on external storage will be encrypted" : "Die Aktivierung dieser Option verschlüsselt alle Dateien die auf dem Hauptspeicher gespeichert sind, ansonsten werden nur Dateien auf dem externen Speicher verschlüsselt",
"Enable recovery key" : "Wiederherstellungsschlüssel aktivieren",
"Disable recovery key" : "Wiederherstellungsschlüssel deaktivieren",
"The recovery key is an additional encryption key used to encrypt files. It is used to recover files from an account if the password is forgotten." : "Der Wiederherstellungsschlüssel ist ein zusätzlicher Verschlüsselungsschlüssel, der zur Verschlüsselung von Dateien verwendet wird. Er wird verwendet, um Dateien aus einem Konto wiederherzustellen, wenn das Passwort vergessen wurde.",
"Recovery key password" : "Passwort für den Wiederherstellungsschlüsse",
"Repeat recovery key password" : "Passwort für den Wiederherstellungsschlüssel wiederholen",
"Change recovery key password:" : "Passwort für den Wiederherstellungsschlüssel ändern:",
Expand Down
9 changes: 9 additions & 0 deletions apps/federatedfilesharing/l10n/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e3fa5fe

Please sign in to comment.