Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/firstrunwizard.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-14 19:40:51 +0300
committerVincent Petry <vincent@nextcloud.com>2022-09-16 11:34:05 +0300
commitb4f2031be16669bf0c73f00445f8a317a2906923 (patch)
treecaa98bbe791a3a54dea3963f6bc82bb74fc65230
parent33203d4f1057bc819a1b18a0d2338a796c4bd50e (diff)
Update recommended apps
Remove "notes". Add "recognize". Add "forms". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
-rw-r--r--img/apps/forms.svg5
-rw-r--r--img/apps/recognize.svg1
-rw-r--r--lib/Notification/AppHint.php4
-rw-r--r--lib/Notification/Notifier.php21
4 files changed, 19 insertions, 12 deletions
diff --git a/img/apps/forms.svg b/img/apps/forms.svg
new file mode 100644
index 00000000..1d57af09
--- /dev/null
+++ b/img/apps/forms.svg
@@ -0,0 +1,5 @@
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="#000">
+ <path d="M 2 8.5 c -0.83 0 -1.5 0.67 -1.5 1.5 s 0.67 1.5 1.5 1.5 s 1.5 -0.67 1.5 -1.5 s -0.67 -1.5 -1.5 -1.5 z m 0 -6 c -0.83 0 -1.5 0.67 -1.5 1.5 S 1.17 5.5 2 5.5 S 3.5 4.83 3.5 4 S 2.83 2.5 2 2.5 z m 0 12 c -0.83 0 -1.5 0.68 -1.5 1.5 s 0.68 1.5 1.5 1.5 s 1.5 -0.68 1.5 -1.5 s -0.67 -1.5 -1.5 -1.5 z M 5 17 h 14 v -2 H 5 v 2 z m 0 -6 h 14 v -2 H 5 v 2 z m 0 -8 v 2 h 14 V 3 H 5 z" />
+</svg>
diff --git a/img/apps/recognize.svg b/img/apps/recognize.svg
new file mode 100644
index 00000000..78081fa2
--- /dev/null
+++ b/img/apps/recognize.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M11,18H13V15.87C14.73,15.43 16,13.86 16,12A4,4 0 0,0 12,8A4,4 0 0,0 8,12C8,13.86 9.27,15.43 11,15.87V18Z"/></svg> \ No newline at end of file
diff --git a/lib/Notification/AppHint.php b/lib/Notification/AppHint.php
index c7d18f4c..96ce37e3 100644
--- a/lib/Notification/AppHint.php
+++ b/lib/Notification/AppHint.php
@@ -57,9 +57,9 @@ class AppHint {
public function sendAppHintNotifications(): void {
if ($this->userId !== null && $this->groupManager->isAdmin($this->userId) && $this->config->getUserValue($this->userId, 'firstrunwizard', 'apphint') !== self::APP_HINT_VERSION) {
+ $this->sendNotification('recognize', $this->userId);
$this->sendNotification('groupfolders', $this->userId);
- //$this->sendNotification('social', $this->userId);
- $this->sendNotification('notes', $this->userId);
+ $this->sendNotification('forms', $this->userId);
$this->sendNotification('deck', $this->userId);
$this->sendNotification('tasks', $this->userId);
$this->config->setUserValue($this->userId, 'firstrunwizard', 'apphint', self::APP_HINT_VERSION);
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index b0d49f7b..7f217e7d 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -107,12 +107,13 @@ class Notifier implements INotifier {
return $notification;
case 'apphint-calendar':
case 'apphint-contacts':
+ case 'apphint-forms':
case 'apphint-mail':
case 'apphint-spreed':
case 'apphint-tasks':
case 'apphint-deck':
case 'apphint-notes':
- //case 'apphint-social':
+ case 'apphint-recognize':
case 'apphint-groupfolders':
$app = $notification->getObjectId();
return $this->setAppHintDetails($notification, $languageCode, $app);
@@ -189,16 +190,16 @@ class Notifier implements INotifier {
$notification->setParsedMessage($l->t('Kanban style organization for personal planning and team projects.'));
$appLink = '/organization/deck';
break;
- case 'notes':
- $notification->setParsedSubject($l->t('App recommendation: Notes'));
- $notification->setParsedMessage($l->t('Distraction-free notes and writing.'));
- $appLink = '/organization/notes';
+ case 'forms':
+ $notification->setParsedSubject($l->t('App recommendation: Forms'));
+ $notification->setParsedMessage($l->t('Simple surveys and questionnaires, self-hosted'));
+ $appLink = '/organization/forms';
+ break;
+ case 'recognize':
+ $notification->setParsedSubject($l->t('App recommendation: Recognize'));
+ $notification->setParsedMessage($l->t('Smart media tagging for Nextcloud'));
+ $appLink = '/organization/recognize';
break;
- // case 'social':
- // $notification->setParsedSubject($l->t('App recommendation: Social'));
- // $notification->setParsedMessage($l->t('Nextcloud becomes part of the federated social networks.'));
- // $appLink = '/social/social';
- // break;
case 'groupfolders':
$notification->setParsedSubject($l->t('App recommendation: Group folders'));
$notification->setParsedMessage($l->t('Admin-configured folders shared by everyone in a group.'));