Skip to content

Commit 777f8c9

Browse files
authored
Merge pull request #39651 from nextcloud/feat/files-reminders
2 parents 9a7e2b1 + a806bd0 commit 777f8c9

34 files changed

+2501
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/apps/federation/appinfo/info.xml @datenangebot
1212
/apps/files/appinfo/info.xml @skjnldsv @Pytal @ArtificialOwl @come-nc @artonge @icewind1991 @szaimen @susnux @Fenn-CS
1313
/apps/files_external/appinfo/info.xml @icewind1991 @artonge
14+
/apps/files_reminders/appinfo/info.xml @Pytal
1415
/apps/files_sharing/appinfo/info.xml @skjnldsv @come-nc
1516
/apps/files_trashbin/appinfo/info.xml @Pytal @icewind1991
1617
/apps/files_versions/appinfo/info.xml @artonge @icewind1991

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
!/apps/sharebymail
2525
!/apps/encryption
2626
!/apps/files_external
27+
!/apps/files_reminders
2728
!/apps/files_sharing
2829
!/apps/files_trashbin
2930
!/apps/files_versions
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>files_reminders</id>
5+
<name>File reminders</name>
6+
<summary>Set file reminders</summary>
7+
<description><![CDATA[**📣 File reminders**
8+
9+
Set file reminders.
10+
]]></description>
11+
<version>0.1.0-dev</version>
12+
<licence>agpl</licence>
13+
<author>Christopher Ng</author>
14+
<namespace>FilesReminders</namespace>
15+
16+
<category>files</category>
17+
18+
<bugs>https://github.com/nextcloud/server/issues</bugs>
19+
20+
<dependencies>
21+
<nextcloud min-version="27" max-version="28" />
22+
</dependencies>
23+
24+
<background-jobs>
25+
<job>OCA\FilesReminders\BackgroundJob\CleanUpReminders</job>
26+
<job>OCA\FilesReminders\BackgroundJob\ScheduledNotifications</job>
27+
</background-jobs>
28+
29+
<commands>
30+
<command>OCA\FilesReminders\Command\ListCommand</command>
31+
</commands>
32+
</info>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @copyright 2023 Christopher Ng <[email protected]>
7+
*
8+
* @author Christopher Ng <[email protected]>
9+
*
10+
* @license GNU AGPL version 3 or any later version
11+
*
12+
* This program is free software: you can redistribute it and/or modify
13+
* it under the terms of the GNU Affero General Public License as
14+
* published by the Free Software Foundation, either version 3 of the
15+
* License, or (at your option) any later version.
16+
*
17+
* This program is distributed in the hope that it will be useful,
18+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+
* GNU Affero General Public License for more details.
21+
*
22+
* You should have received a copy of the GNU Affero General Public License
23+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24+
*
25+
*/
26+
27+
$requirements = [
28+
'version' => '1',
29+
];
30+
31+
return [
32+
'ocs' => [
33+
['name' => 'Api#get', 'url' => '/api/v{version}/get/{fileId}', 'verb' => 'GET', 'requirements' => $requirements],
34+
['name' => 'Api#set', 'url' => '/api/v{version}/set/{fileId}', 'verb' => 'PUT', 'requirements' => $requirements],
35+
['name' => 'Api#remove', 'url' => '/api/v{version}/remove/{fileId}', 'verb' => 'DELETE', 'requirements' => $requirements],
36+
],
37+
];
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
// autoload.php @generated by Composer
4+
5+
if (PHP_VERSION_ID < 50600) {
6+
if (!headers_sent()) {
7+
header('HTTP/1.1 500 Internal Server Error');
8+
}
9+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10+
if (!ini_get('display_errors')) {
11+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12+
fwrite(STDERR, $err);
13+
} elseif (!headers_sent()) {
14+
echo $err;
15+
}
16+
}
17+
trigger_error(
18+
$err,
19+
E_USER_ERROR
20+
);
21+
}
22+
23+
require_once __DIR__ . '/composer/autoload_real.php';
24+
25+
return ComposerAutoloaderInitFilesReminders::getLoader();
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"config" : {
3+
"vendor-dir": ".",
4+
"optimize-autoloader": true,
5+
"classmap-authoritative": true,
6+
"autoloader-suffix": "FilesReminders"
7+
},
8+
"autoload" : {
9+
"psr-4": {
10+
"OCA\\FilesReminders\\": "../lib/"
11+
}
12+
}
13+
}

apps/files_reminders/composer/composer.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)