aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Sections/Admin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib/Sections/Admin')
-rw-r--r--apps/settings/lib/Sections/Admin/Additional.php38
-rw-r--r--apps/settings/lib/Sections/Admin/ArtificialIntelligence.php38
-rw-r--r--apps/settings/lib/Sections/Admin/Delegation.php56
-rw-r--r--apps/settings/lib/Sections/Admin/Groupware.php38
-rw-r--r--apps/settings/lib/Sections/Admin/Overview.php38
-rw-r--r--apps/settings/lib/Sections/Admin/Security.php38
-rw-r--r--apps/settings/lib/Sections/Admin/Server.php38
-rw-r--r--apps/settings/lib/Sections/Admin/Sharing.php38
8 files changed, 322 insertions, 0 deletions
diff --git a/apps/settings/lib/Sections/Admin/Additional.php b/apps/settings/lib/Sections/Admin/Additional.php
new file mode 100644
index 00000000000..0d83a98bbe5
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Additional.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Additional implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
+ }
+
+ public function getID(): string {
+ return 'additional';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Additional settings');
+ }
+
+ public function getPriority(): int {
+ return 98;
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php b/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php
new file mode 100644
index 00000000000..2a300c260c0
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class ArtificialIntelligence implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('settings', 'ai.svg');
+ }
+
+ public function getID(): string {
+ return 'ai';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Assistant');
+ }
+
+ public function getPriority(): int {
+ return 40;
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/Delegation.php b/apps/settings/lib/Sections/Admin/Delegation.php
new file mode 100644
index 00000000000..0dd3b48c20b
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Delegation.php
@@ -0,0 +1,56 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Delegation implements IIconSection {
+ /**
+ * @param IURLGenerator $url
+ * @param IL10N $l
+ */
+ public function __construct(
+ private IURLGenerator $url,
+ private IL10N $l,
+ ) {
+ }
+
+ /**
+ * {@inheritdoc}
+ * @return string
+ */
+ public function getID() {
+ return 'admindelegation';
+ }
+
+ /**
+ * {@inheritdoc}
+ * @return string
+ */
+ public function getName() {
+ return $this->l->t('Administration privileges');
+ }
+
+ /**
+ * {@inheritdoc}
+ * @return int
+ */
+ public function getPriority() {
+ return 54;
+ }
+
+ /**
+ * {@inheritdoc}
+ * @return string
+ */
+ public function getIcon() {
+ return $this->url->imagePath('core', 'actions/user-admin.svg');
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/Groupware.php b/apps/settings/lib/Sections/Admin/Groupware.php
new file mode 100644
index 00000000000..57d92b9cc72
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Groupware.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Groupware implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('core', 'places/contacts.svg');
+ }
+
+ public function getID(): string {
+ return 'groupware';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Groupware');
+ }
+
+ public function getPriority(): int {
+ return 50;
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/Overview.php b/apps/settings/lib/Sections/Admin/Overview.php
new file mode 100644
index 00000000000..0145a2eca93
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Overview.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Overview implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('settings', 'admin.svg');
+ }
+
+ public function getID(): string {
+ return 'overview';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Overview');
+ }
+
+ public function getPriority(): int {
+ return 0;
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/Security.php b/apps/settings/lib/Sections/Admin/Security.php
new file mode 100644
index 00000000000..10027be32fb
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Security.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Security implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('core', 'actions/password.svg');
+ }
+
+ public function getID(): string {
+ return 'security';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Security');
+ }
+
+ public function getPriority(): int {
+ return 10;
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/Server.php b/apps/settings/lib/Sections/Admin/Server.php
new file mode 100644
index 00000000000..c6a02efa4e3
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Server.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Server implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
+ }
+
+ public function getID(): string {
+ return 'server';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Basic settings');
+ }
+
+ public function getPriority(): int {
+ return 1;
+ }
+}
diff --git a/apps/settings/lib/Sections/Admin/Sharing.php b/apps/settings/lib/Sections/Admin/Sharing.php
new file mode 100644
index 00000000000..c7598bb1157
--- /dev/null
+++ b/apps/settings/lib/Sections/Admin/Sharing.php
@@ -0,0 +1,38 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Settings\Sections\Admin;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Sharing implements IIconSection {
+
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('core', 'actions/share.svg');
+ }
+
+ public function getID(): string {
+ return 'sharing';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Sharing');
+ }
+
+ public function getPriority(): int {
+ return 5;
+ }
+}