Browse Source
feat: Add admin-delegation-section as well for completeness
feat: Add admin-delegation-section as well for completeness
Also renamed delegation into admin-delegation in xml schema. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>pull/55261/head
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
14 changed files with 113 additions and 61 deletions
-
3apps/settings/appinfo/info.xml
-
1apps/settings/composer/composer/autoload_classmap.php
-
1apps/settings/composer/composer/autoload_static.php
-
36apps/settings/lib/Sections/Admin/Users.php
-
32apps/settings/lib/Settings/Admin/Users.php
-
3apps/webhook_listeners/appinfo/info.xml
-
1apps/webhook_listeners/composer/composer/autoload_classmap.php
-
1apps/webhook_listeners/composer/composer/autoload_static.php
-
33apps/webhook_listeners/lib/Settings/Admin.php
-
37apps/webhook_listeners/lib/Settings/AdminSection.php
-
9lib/private/App/AppManager.php
-
7lib/private/App/InfoParser.php
-
5resources/app-info-shipped.xsd
-
5resources/app-info.xsd
@ -0,0 +1,36 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
|
|||
/** |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
namespace OCA\Settings\Sections\Admin; |
|||
|
|||
use OCP\IL10N; |
|||
use OCP\Settings\IIconSection; |
|||
|
|||
class Users implements IIconSection { |
|||
public function __construct( |
|||
private IL10N $l, |
|||
) { |
|||
} |
|||
|
|||
public function getID(): string { |
|||
return 'usersdelegation'; |
|||
} |
|||
|
|||
public function getName(): string { |
|||
return $this->l->t('Users'); |
|||
} |
|||
|
|||
public function getPriority(): int { |
|||
return 55; |
|||
} |
|||
|
|||
public function getIcon(): string { |
|||
return ''; |
|||
} |
|||
} |
@ -0,0 +1,37 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
|
|||
/** |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
namespace OCA\WebhookListeners\Settings; |
|||
|
|||
use OCA\WebhookListeners\AppInfo\Application; |
|||
use OCP\IL10N; |
|||
use OCP\Settings\IIconSection; |
|||
|
|||
class AdminSection implements IIconSection { |
|||
public function __construct( |
|||
private IL10N $l, |
|||
) { |
|||
} |
|||
|
|||
public function getID(): string { |
|||
return Application::APP_ID . '-admin'; |
|||
} |
|||
|
|||
public function getName(): string { |
|||
return $this->l->t('Webhooks'); |
|||
} |
|||
|
|||
public function getPriority(): int { |
|||
return 56; |
|||
} |
|||
|
|||
public function getIcon(): string { |
|||
return ''; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue