From 0799b8988b26ff702979f85b62e671aafd73783d Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 17 Oct 2022 09:30:13 +0200 Subject: 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 +- .../composer/composer/autoload_classmap.php | 2 +- .../settings/composer/composer/autoload_static.php | 2 +- .../lib/Sections/Personal/Availability.php | 58 ++++++++++++++++++++++ apps/settings/lib/Sections/Personal/Groupware.php | 58 ---------------------- 8 files changed, 69 insertions(+), 62 deletions(-) create mode 100644 apps/dav/img/LICENSES.md create mode 100644 apps/dav/img/schedule.svg create mode 100644 apps/settings/lib/Sections/Personal/Availability.php delete mode 100644 apps/settings/lib/Sections/Personal/Groupware.php diff --git a/apps/dav/img/LICENSES.md b/apps/dav/img/LICENSES.md new file mode 100644 index 00000000000..a1b776c0500 --- /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 00000000000..0d632671fb1 --- /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 d2b75ba4866..54df6b88d55 100644 --- a/apps/dav/lib/Settings/AvailabilitySettings.php +++ b/apps/dav/lib/Settings/AvailabilitySettings.php @@ -59,7 +59,7 @@ class AvailabilitySettings implements ISettings { } 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 37083481ada..9cb489ff0f3 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 baac88ea8c7..6ebb4e1e067 100644 --- a/apps/settings/composer/composer/autoload_classmap.php +++ b/apps/settings/composer/composer/autoload_classmap.php @@ -48,7 +48,7 @@ return array( '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 b8aec66c25b..19858569961 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/Availability.php b/apps/settings/lib/Sections/Personal/Availability.php new file mode 100644 index 00000000000..c23b2c0a822 --- /dev/null +++ b/apps/settings/lib/Sections/Personal/Availability.php @@ -0,0 +1,58 @@ + + * + * Mail + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ + +namespace OCA\Settings\Sections\Personal; + +use OCP\IL10N; +use OCP\IURLGenerator; +use OCP\Settings\IIconSection; + +class Availability implements IIconSection { + + /** @var IL10N */ + private $l; + + /** @var IURLGenerator */ + private $urlGenerator; + + public function __construct(IL10N $l, IURLGenerator $urlGenerator) { + $this->l = $l; + $this->urlGenerator = $urlGenerator; + } + + public function getIcon(): string { + return $this->urlGenerator->imagePath('dav', 'schedule.svg'); + } + + public function getID(): string { + return 'availability'; + } + + public function getName(): string { + return $this->l->t('Availability'); + } + + public function getPriority(): int { + return 50; + } +} diff --git a/apps/settings/lib/Sections/Personal/Groupware.php b/apps/settings/lib/Sections/Personal/Groupware.php deleted file mode 100644 index 4c64e06cb3a..00000000000 --- a/apps/settings/lib/Sections/Personal/Groupware.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * Mail - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see - * - */ - -namespace OCA\Settings\Sections\Personal; - -use OCP\IL10N; -use OCP\IURLGenerator; -use OCP\Settings\IIconSection; - -class Groupware implements IIconSection { - - /** @var IL10N */ - private $l; - - /** @var IURLGenerator */ - private $urlGenerator; - - public function __construct(IL10N $l, IURLGenerator $urlGenerator) { - $this->l = $l; - $this->urlGenerator = $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; - } -} -- cgit v1.2.3