From 0799b8988b26ff702979f85b62e671aafd73783d Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 17 Oct 2022 09:30:13 +0200 Subject: [PATCH] Rename personal Groupware settings section to "Availability" Signed-off-by: Christoph Wurst --- apps/dav/img/LICENSES.md | 6 ++++++ apps/dav/img/schedule.svg | 1 + apps/dav/lib/Settings/AvailabilitySettings.php | 2 +- apps/settings/appinfo/info.xml | 2 +- apps/settings/composer/composer/autoload_classmap.php | 2 +- apps/settings/composer/composer/autoload_static.php | 2 +- .../Sections/Personal/{Groupware.php => Availability.php} | 8 ++++---- 7 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 apps/dav/img/LICENSES.md create mode 100644 apps/dav/img/schedule.svg rename apps/settings/lib/Sections/Personal/{Groupware.php => Availability.php} (87%) diff --git a/apps/dav/img/LICENSES.md b/apps/dav/img/LICENSES.md new file mode 100644 index 0000000000000..a1b776c050099 --- /dev/null +++ b/apps/dav/img/LICENSES.md @@ -0,0 +1,6 @@ +# Licenses + +## schedule.svg +- Created by: Google +- License: Apache License, Version 2.0 +- Link: https://fonts.google.com/icons?selected=Material%20Icons%3Aschedule%3A diff --git a/apps/dav/img/schedule.svg b/apps/dav/img/schedule.svg new file mode 100644 index 0000000000000..0d632671fb1a3 --- /dev/null +++ b/apps/dav/img/schedule.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/dav/lib/Settings/AvailabilitySettings.php b/apps/dav/lib/Settings/AvailabilitySettings.php index d2b75ba4866f1..54df6b88d5564 100644 --- a/apps/dav/lib/Settings/AvailabilitySettings.php +++ b/apps/dav/lib/Settings/AvailabilitySettings.php @@ -59,7 +59,7 @@ public function getForm(): TemplateResponse { } public function getSection(): string { - return 'groupware'; + return 'availability'; } public function getPriority(): int { diff --git a/apps/settings/appinfo/info.xml b/apps/settings/appinfo/info.xml index 37083481ada71..9cb489ff0f3ce 100644 --- a/apps/settings/appinfo/info.xml +++ b/apps/settings/appinfo/info.xml @@ -37,7 +37,7 @@ OCA\Settings\Settings\Personal\Security\Password OCA\Settings\Settings\Personal\Security\TwoFactor OCA\Settings\Settings\Personal\Security\WebAuthn - OCA\Settings\Sections\Personal\Groupware + OCA\Settings\Sections\Personal\Availability OCA\Settings\Sections\Personal\PersonalInfo OCA\Settings\Sections\Personal\Security OCA\Settings\Sections\Personal\SyncClients diff --git a/apps/settings/composer/composer/autoload_classmap.php b/apps/settings/composer/composer/autoload_classmap.php index baac88ea8c714..6ebb4e1e0675a 100644 --- a/apps/settings/composer/composer/autoload_classmap.php +++ b/apps/settings/composer/composer/autoload_classmap.php @@ -48,7 +48,7 @@ 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir . '/../lib/Sections/Admin/Security.php', 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir . '/../lib/Sections/Admin/Server.php', 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir . '/../lib/Sections/Admin/Sharing.php', - 'OCA\\Settings\\Sections\\Personal\\Groupware' => $baseDir . '/../lib/Sections/Personal/Groupware.php', + 'OCA\\Settings\\Sections\\Personal\\Availability' => $baseDir . '/../lib/Sections/Personal/Availability.php', 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir . '/../lib/Sections/Personal/PersonalInfo.php', 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir . '/../lib/Sections/Personal/Security.php', 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir . '/../lib/Sections/Personal/SyncClients.php', diff --git a/apps/settings/composer/composer/autoload_static.php b/apps/settings/composer/composer/autoload_static.php index b8aec66c25bc3..1985856996115 100644 --- a/apps/settings/composer/composer/autoload_static.php +++ b/apps/settings/composer/composer/autoload_static.php @@ -63,7 +63,7 @@ class ComposerStaticInitSettings 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Sections/Admin/Security.php', 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Sections/Admin/Server.php', 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Sections/Admin/Sharing.php', - 'OCA\\Settings\\Sections\\Personal\\Groupware' => __DIR__ . '/..' . '/../lib/Sections/Personal/Groupware.php', + 'OCA\\Settings\\Sections\\Personal\\Availability' => __DIR__ . '/..' . '/../lib/Sections/Personal/Availability.php', 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Sections/Personal/PersonalInfo.php', 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__ . '/..' . '/../lib/Sections/Personal/Security.php', 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__ . '/..' . '/../lib/Sections/Personal/SyncClients.php', diff --git a/apps/settings/lib/Sections/Personal/Groupware.php b/apps/settings/lib/Sections/Personal/Availability.php similarity index 87% rename from apps/settings/lib/Sections/Personal/Groupware.php rename to apps/settings/lib/Sections/Personal/Availability.php index 4c64e06cb3a70..c23b2c0a822d4 100644 --- a/apps/settings/lib/Sections/Personal/Groupware.php +++ b/apps/settings/lib/Sections/Personal/Availability.php @@ -27,7 +27,7 @@ use OCP\IURLGenerator; use OCP\Settings\IIconSection; -class Groupware implements IIconSection { +class Availability implements IIconSection { /** @var IL10N */ private $l; @@ -41,15 +41,15 @@ public function __construct(IL10N $l, IURLGenerator $urlGenerator) { } public function getIcon(): string { - return $this->urlGenerator->imagePath('core', 'places/contacts.svg'); + return $this->urlGenerator->imagePath('dav', 'schedule.svg'); } public function getID(): string { - return 'groupware'; + return 'availability'; } public function getName(): string { - return $this->l->t('Groupware'); + return $this->l->t('Availability'); } public function getPriority(): int {