Skip to content

Commit 6e444bb

Browse files
committed
Add user-status app
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
1 parent a2a3b87 commit 6e444bb

File tree

74 files changed

+6028
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+6028
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
!/apps/updatenotification
4040
!/apps/theming
4141
!/apps/twofactor_backupcodes
42+
!/apps/user_status
4243
!/apps/workflowengine
4344
/apps/files_external/3rdparty/irodsphp/PHPUnitTest
4445
/apps/files_external/3rdparty/irodsphp/web

COPYING-README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Licensing of components:
99
* User: AGPL
1010
* XML/RPC: MIT / PHP
1111
* Elementary filetype icons: GPL v3+
12+
* Material UI icons: APACHE LICENSE, VERSION 2.0
1213
All unmodified files from these and other sources retain their original copyright
1314
and license notices: see the relevant individual files.
1415

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ clean:
3939
rm -rf apps/systemtags/js/systemtags.*
4040
rm -rf apps/twofactor_backupcodes/js
4141
rm -rf apps/updatenotification/js/updatenotification.*
42+
rm -rf apps/user_status/js/
4243
rm -rf apps/workflowengine/js/
4344
rm -rf core/js/dist
4445

@@ -57,5 +58,6 @@ clean-git: clean
5758
git checkout -- apps/systemtags/js/systemtags.*
5859
git checkout -- apps/twofactor_backupcodes/js
5960
git checkout -- apps/updatenotification/js/updatenotification.*
61+
git checkout -- apps/user_status/js/
6062
git checkout -- apps/workflowengine/js/
6163
git checkout -- core/js/dist

apps/user_status/appinfo/info.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0"?>
2+
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
4+
<id>user_status</id>
5+
<name>User status</name>
6+
<summary>User status</summary>
7+
<description><![CDATA[User status]]></description>
8+
<version>0.0.2</version>
9+
<licence>agpl</licence>
10+
<author mail="oc.list@georgehrke.com" >Georg Ehrke</author>
11+
<namespace>UserStatus</namespace>
12+
<default_enable/>
13+
<category>social</category>
14+
<bugs>https://github.com/nextcloud/server</bugs>
15+
<navigations>
16+
<navigation>
17+
<id>user_status-menuitem</id>
18+
<name>User status</name>
19+
<route />
20+
<order>1</order>
21+
<icon>info.svg</icon>
22+
<type>settings</type>
23+
</navigation>
24+
</navigations>
25+
<dependencies>
26+
<nextcloud min-version="20" max-version="20"/>
27+
</dependencies>
28+
<background-jobs>
29+
<job>OCA\UserStatus\BackgroundJob\ClearOldStatusesBackgroundJob</job>
30+
</background-jobs>
31+
</info>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @copyright Copyright (c) 2020, Georg Ehrke
7+
*
8+
* @author Georg Ehrke <oc.list@georgehrke.com>
9+
*
10+
* @license AGPL-3.0
11+
*
12+
* This code is free software: you can redistribute it and/or modify
13+
* it under the terms of the GNU Affero General Public License, version 3,
14+
* as published by the Free Software Foundation.
15+
*
16+
* This program is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU Affero General Public License for more details.
20+
*
21+
* You should have received a copy of the GNU Affero General Public License, version 3,
22+
* along with this program. If not, see <http://www.gnu.org/licenses/>
23+
*
24+
*/
25+
26+
return [
27+
'ocs' => [
28+
// Routes for querying statuses
29+
['name' => 'Statuses#findAll', 'url' => '/api/v1/statuses', 'verb' => 'GET'],
30+
['name' => 'Statuses#find', 'url' => '/api/v1/statuses/{userId}', 'verb' => 'GET'],
31+
// Routes for manipulating your own status
32+
['name' => 'UserStatus#getStatus', 'url' => '/api/v1/user_status', 'verb' => 'GET'],
33+
['name' => 'UserStatus#setStatus', 'url' => '/api/v1/user_status/status', 'verb' => 'PUT'],
34+
['name' => 'UserStatus#setPredefinedMessage', 'url' => '/api/v1/user_status/message/predefined', 'verb' => 'PUT'],
35+
['name' => 'UserStatus#setCustomMessage', 'url' => '/api/v1/user_status/message/custom', 'verb' => 'PUT'],
36+
['name' => 'UserStatus#clearMessage', 'url' => '/api/v1/user_status/message', 'verb' => 'DELETE'],
37+
// Routes for listing default routes
38+
['name' => 'PredefinedStatus#findAll', 'url' => '/api/v1/predefined_statuses/', 'verb' => 'GET']
39+
],
40+
'routes' => [
41+
['name' => 'Heartbeat#heartbeat', 'url' => '/heartbeat', 'verb' => 'PUT'],
42+
],
43+
];
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* @copyright Copyright (c) 2020 Georg Ehrke
3+
*
4+
* @author Georg Ehrke <oc.list@georgehrke.com>
5+
*
6+
* @license GNU AGPL version 3 or any later version
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Affero General Public License as
10+
* published by the Free Software Foundation, either version 3 of the
11+
* License, or (at your option) any later version.
12+
*
13+
* This program is distributed in the hope that it will be useful,
14+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
* GNU Affero General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Affero General Public License
19+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
*
21+
*/
22+
23+
.icon-user-status-away {
24+
@include icon-color('user-status-away', 'user_status', '#F4A331', 1);
25+
}
26+
27+
.icon-user-status-dnd {
28+
@include icon-color('user-status-dnd', 'user_status', '#ED484C', 1);
29+
}
30+
31+
.icon-user-status-invisible {
32+
@include icon-color('user-status-invisible', 'user_status', '#000000', 1);
33+
}
34+
35+
.icon-user-status-online {
36+
@include icon-color('user-status-online', 'user_status', '#49B382', 2);
37+
}

apps/user_status/img/app.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)