Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Update from upstream repo CachetHQ/Cachet #11

Merged
merged 228 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
3180c9b
New translations forms.php (Polish)
CachetBot Jul 10, 2018
7c17f76
New translations dashboard.php (Portuguese)
CachetBot Jul 10, 2018
7ffd8ab
New translations forms.php (Portuguese, Brazilian)
CachetBot Jul 10, 2018
626fd70
New translations forms.php (Japanese)
CachetBot Jul 10, 2018
6199770
New translations cachet.php (Norwegian)
CachetBot Jul 10, 2018
3b93447
New translations dashboard.php (Norwegian)
CachetBot Jul 10, 2018
aa32520
New translations forms.php (Norwegian)
CachetBot Jul 10, 2018
be65a04
New translations setup.php (Norwegian)
CachetBot Jul 10, 2018
91888ef
New translations validation.php (Norwegian)
CachetBot Jul 10, 2018
9854814
New translations notifications.php (Norwegian)
CachetBot Jul 10, 2018
0d83887
New translations notifications.php (Ukrainian)
CachetBot Jul 10, 2018
fd8f24d
New translations cachet.php (Ukrainian)
CachetBot Jul 10, 2018
d3f86d6
New translations dashboard.php (Ukrainian)
CachetBot Jul 10, 2018
b0b10ea
New translations forms.php (Ukrainian)
CachetBot Jul 10, 2018
6659430
New translations validation.php (Ukrainian)
CachetBot Jul 10, 2018
5d6bd04
New translations forms.php (Zulu)
CachetBot Jul 10, 2018
7972174
New translations forms.php (Russian)
CachetBot Jul 10, 2018
45b04ae
New translations forms.php (Spanish)
CachetBot Jul 10, 2018
f65ac59
New translations dashboard.php (Swedish)
CachetBot Jul 10, 2018
172f1e8
New translations forms.php (Czech)
CachetBot Jul 10, 2018
cb290e2
New translations setup.php (Chinese Simplified)
CachetBot Jul 10, 2018
da7bfe3
New translations dashboard.php (Chinese Traditional)
CachetBot Jul 10, 2018
bdbe441
New translations forms.php (Chinese Traditional)
CachetBot Jul 10, 2018
a0be98f
New translations forms.php (Chinese Simplified)
CachetBot Jul 10, 2018
d242281
New translations forms.php (Danish)
CachetBot Jul 10, 2018
82df0d0
New translations dashboard.php (Chinese Simplified)
CachetBot Jul 10, 2018
0545213
New translations forms.php (Dutch)
CachetBot Jul 10, 2018
92a12f2
New translations dashboard.php (French)
CachetBot Jul 10, 2018
f8d2d73
New translations validation.php (French)
CachetBot Jul 10, 2018
181839b
New translations cachet.php (German)
CachetBot Jul 10, 2018
83ff398
New translations forms.php (German)
CachetBot Jul 10, 2018
88cd251
New translations dashboard.php (Norwegian)
CachetBot Jul 10, 2018
1427e9e
New translations forms.php (Norwegian)
CachetBot Jul 10, 2018
e95a329
New translations validation.php (Norwegian)
CachetBot Jul 10, 2018
3b40cd8
New translations cachet.php (Afrikaans)
CachetBot Jul 12, 2018
84460ae
New translations forms.php (Portuguese)
CachetBot Jul 12, 2018
4a30461
New translations validation.php (Persian)
CachetBot Jul 12, 2018
965dbb4
New translations cachet.php (Polish)
CachetBot Jul 12, 2018
e7f5818
New translations dashboard.php (Polish)
CachetBot Jul 12, 2018
4962529
New translations forms.php (Polish)
CachetBot Jul 12, 2018
fd083e9
New translations pagination.php (Polish)
CachetBot Jul 12, 2018
74b3a26
New translations validation.php (Polish)
CachetBot Jul 12, 2018
9567c10
New translations notifications.php (Polish)
CachetBot Jul 12, 2018
2c99f12
New translations cachet.php (Portuguese)
CachetBot Jul 12, 2018
c060aa1
New translations dashboard.php (Portuguese)
CachetBot Jul 12, 2018
4bb5fc1
New translations pagination.php (Portuguese)
CachetBot Jul 12, 2018
0bc5a27
New translations validation.php (Portuguese)
CachetBot Jul 12, 2018
4def018
New translations notifications.php (Portuguese)
CachetBot Jul 12, 2018
6fd6de0
New translations cachet.php (Portuguese, Brazilian)
CachetBot Jul 12, 2018
d9d84e3
New translations dashboard.php (Portuguese, Brazilian)
CachetBot Jul 12, 2018
f0d6010
New translations forms.php (Portuguese, Brazilian)
CachetBot Jul 12, 2018
a4e2419
New translations pagination.php (Portuguese, Brazilian)
CachetBot Jul 12, 2018
9381644
New translations validation.php (Portuguese, Brazilian)
CachetBot Jul 12, 2018
6535450
New translations notifications.php (Portuguese, Brazilian)
CachetBot Jul 12, 2018
6fd1e03
New translations cachet.php (Romanian)
CachetBot Jul 12, 2018
b471346
New translations dashboard.php (Romanian)
CachetBot Jul 12, 2018
f91d817
New translations setup.php (Persian)
CachetBot Jul 12, 2018
3f35fb2
New translations forms.php (Persian)
CachetBot Jul 12, 2018
e1fb994
New translations pagination.php (Romanian)
CachetBot Jul 12, 2018
cce1deb
New translations dashboard.php (Korean)
CachetBot Jul 12, 2018
11266a4
New translations pagination.php (Italian)
CachetBot Jul 12, 2018
1f3d4d4
New translations validation.php (Italian)
CachetBot Jul 12, 2018
cf76920
New translations notifications.php (Italian)
CachetBot Jul 12, 2018
8a3f2e7
New translations cachet.php (Japanese)
CachetBot Jul 12, 2018
2ba9c37
New translations dashboard.php (Japanese)
CachetBot Jul 12, 2018
d74ba53
New translations forms.php (Japanese)
CachetBot Jul 12, 2018
a54dca2
New translations pagination.php (Japanese)
CachetBot Jul 12, 2018
45245eb
New translations setup.php (Japanese)
CachetBot Jul 12, 2018
5a72eae
New translations validation.php (Japanese)
CachetBot Jul 12, 2018
942a205
New translations notifications.php (Japanese)
CachetBot Jul 12, 2018
b79d043
New translations cachet.php (Korean)
CachetBot Jul 12, 2018
7094a17
New translations forms.php (Korean)
CachetBot Jul 12, 2018
6d5171e
New translations dashboard.php (Persian)
CachetBot Jul 12, 2018
162ab78
New translations setup.php (Korean)
CachetBot Jul 12, 2018
76325e1
New translations validation.php (Korean)
CachetBot Jul 12, 2018
8388cbb
New translations notifications.php (Korean)
CachetBot Jul 12, 2018
23acfbe
New translations cachet.php (Norwegian)
CachetBot Jul 12, 2018
6ccc16a
New translations dashboard.php (Norwegian)
CachetBot Jul 12, 2018
f3da661
New translations forms.php (Norwegian)
CachetBot Jul 12, 2018
6f37cb2
New translations validation.php (Norwegian)
CachetBot Jul 12, 2018
990d57f
New translations cachet.php (Persian)
CachetBot Jul 12, 2018
656eebf
New translations forms.php (Romanian)
CachetBot Jul 12, 2018
6f9c82e
New translations dashboard.php (Italian)
CachetBot Jul 12, 2018
7a21502
New translations notifications.php (Ukrainian)
CachetBot Jul 12, 2018
734cfc0
New translations dashboard.php (Turkish)
CachetBot Jul 12, 2018
4d72a33
New translations forms.php (Turkish)
CachetBot Jul 12, 2018
2fc3eaa
New translations pagination.php (Turkish)
CachetBot Jul 12, 2018
e2bcdfb
New translations setup.php (Turkish)
CachetBot Jul 12, 2018
29e1d2a
New translations validation.php (Turkish)
CachetBot Jul 12, 2018
bcd40a6
New translations notifications.php (Turkish)
CachetBot Jul 12, 2018
77e24b6
New translations cachet.php (Ukrainian)
CachetBot Jul 12, 2018
c470f0c
New translations dashboard.php (Ukrainian)
CachetBot Jul 12, 2018
103d872
New translations forms.php (Ukrainian)
CachetBot Jul 12, 2018
e94ea9d
New translations pagination.php (Ukrainian)
CachetBot Jul 12, 2018
d8574ee
New translations setup.php (Ukrainian)
CachetBot Jul 12, 2018
c5c8815
New translations validation.php (Ukrainian)
CachetBot Jul 12, 2018
798d6e2
New translations cachet.php (Vietnamese)
CachetBot Jul 12, 2018
93ef8b5
New translations notifications.php (Thai)
CachetBot Jul 12, 2018
3c30d9d
New translations dashboard.php (Vietnamese)
CachetBot Jul 12, 2018
4862687
New translations forms.php (Vietnamese)
CachetBot Jul 12, 2018
beddc45
New translations pagination.php (Vietnamese)
CachetBot Jul 12, 2018
6e57abc
New translations setup.php (Vietnamese)
CachetBot Jul 12, 2018
aaa77a8
New translations validation.php (Vietnamese)
CachetBot Jul 12, 2018
78f550b
New translations notifications.php (Vietnamese)
CachetBot Jul 12, 2018
5e5c638
New translations cachet.php (Turkish)
CachetBot Jul 12, 2018
16a8377
New translations validation.php (Thai)
CachetBot Jul 12, 2018
9ab3c68
New translations notifications.php (Romanian)
CachetBot Jul 12, 2018
c35e1df
New translations cachet.php (Russian)
CachetBot Jul 12, 2018
b8e65f6
New translations dashboard.php (Russian)
CachetBot Jul 12, 2018
d1a4bac
New translations forms.php (Russian)
CachetBot Jul 12, 2018
e8ae5aa
New translations pagination.php (Russian)
CachetBot Jul 12, 2018
16d6cfd
New translations validation.php (Russian)
CachetBot Jul 12, 2018
d8fe2fa
New translations notifications.php (Russian)
CachetBot Jul 12, 2018
e8eea5e
New translations cachet.php (Spanish)
CachetBot Jul 12, 2018
10db1ef
New translations dashboard.php (Spanish)
CachetBot Jul 12, 2018
52ff318
New translations forms.php (Spanish)
CachetBot Jul 12, 2018
5bb73cc
New translations pagination.php (Spanish)
CachetBot Jul 12, 2018
c419905
New translations validation.php (Spanish)
CachetBot Jul 12, 2018
076d327
New translations setup.php (Thai)
CachetBot Jul 12, 2018
b2c57d8
New translations notifications.php (Spanish)
CachetBot Jul 12, 2018
f097cac
New translations cachet.php (Swedish)
CachetBot Jul 12, 2018
43f6d86
New translations dashboard.php (Swedish)
CachetBot Jul 12, 2018
0a892a1
New translations forms.php (Swedish)
CachetBot Jul 12, 2018
16cbfc4
New translations pagination.php (Swedish)
CachetBot Jul 12, 2018
c16d6dd
New translations notifications.php (Swedish)
CachetBot Jul 12, 2018
78c34ea
New translations cachet.php (Thai)
CachetBot Jul 12, 2018
d08f58b
New translations dashboard.php (Thai)
CachetBot Jul 12, 2018
61a596f
New translations forms.php (Thai)
CachetBot Jul 12, 2018
0bfecb1
New translations pagination.php (Thai)
CachetBot Jul 12, 2018
ca19a98
New translations forms.php (Italian)
CachetBot Jul 12, 2018
b5faa22
New translations cachet.php (Italian)
CachetBot Jul 12, 2018
cbbf2e6
New translations dashboard.php (Afrikaans)
CachetBot Jul 12, 2018
d2b8752
New translations forms.php (Czech)
CachetBot Jul 12, 2018
03f5f35
New translations cachet.php (Chinese Traditional)
CachetBot Jul 12, 2018
dfd0c32
New translations dashboard.php (Chinese Traditional)
CachetBot Jul 12, 2018
1d26a53
New translations forms.php (Chinese Traditional)
CachetBot Jul 12, 2018
c882aea
New translations pagination.php (Chinese Traditional)
CachetBot Jul 12, 2018
541ed53
New translations setup.php (Chinese Traditional)
CachetBot Jul 12, 2018
5681850
New translations validation.php (Chinese Traditional)
CachetBot Jul 12, 2018
b45e804
New translations notifications.php (Chinese Traditional)
CachetBot Jul 12, 2018
faebc5b
New translations cachet.php (Czech)
CachetBot Jul 12, 2018
05d9579
New translations dashboard.php (Czech)
CachetBot Jul 12, 2018
2e085b8
New translations pagination.php (Czech)
CachetBot Jul 12, 2018
fe4954e
New translations setup.php (Czech)
CachetBot Jul 12, 2018
b40280e
New translations validation.php (Czech)
CachetBot Jul 12, 2018
f878316
New translations notifications.php (Czech)
CachetBot Jul 12, 2018
7e7927c
New translations cachet.php (Danish)
CachetBot Jul 12, 2018
743255c
New translations dashboard.php (Danish)
CachetBot Jul 12, 2018
71f61cf
New translations forms.php (Danish)
CachetBot Jul 12, 2018
34c7928
New translations pagination.php (Danish)
CachetBot Jul 12, 2018
812ae28
New translations validation.php (Danish)
CachetBot Jul 12, 2018
722c28b
New translations notifications.php (Danish)
CachetBot Jul 12, 2018
88acd3a
New translations dashboard.php (Dutch)
CachetBot Jul 12, 2018
1fe0346
New translations cachet.php (Arabic)
CachetBot Jul 12, 2018
0f905b4
New translations forms.php (Afrikaans)
CachetBot Jul 12, 2018
17ddafd
New translations pagination.php (Afrikaans)
CachetBot Jul 12, 2018
429286d
New translations cachet.php (Albanian)
CachetBot Jul 12, 2018
6c42846
New translations dashboard.php (Albanian)
CachetBot Jul 12, 2018
3ce5813
New translations forms.php (Albanian)
CachetBot Jul 12, 2018
ecb60d3
New translations pagination.php (Albanian)
CachetBot Jul 12, 2018
891b6a2
New translations setup.php (Albanian)
CachetBot Jul 12, 2018
7deeddd
New translations notifications.php (Albanian)
CachetBot Jul 12, 2018
f92e4cd
New translations dashboard.php (Arabic)
CachetBot Jul 12, 2018
413feaa
New translations forms.php (Arabic)
CachetBot Jul 12, 2018
d5c7470
New translations pagination.php (Arabic)
CachetBot Jul 12, 2018
1daebbc
New translations setup.php (Arabic)
CachetBot Jul 12, 2018
75155aa
New translations validation.php (Arabic)
CachetBot Jul 12, 2018
22bd502
New translations notifications.php (Arabic)
CachetBot Jul 12, 2018
076ed40
New translations cachet.php (Catalan)
CachetBot Jul 12, 2018
709d261
New translations dashboard.php (Catalan)
CachetBot Jul 12, 2018
bcda7d0
New translations forms.php (Catalan)
CachetBot Jul 12, 2018
8272810
New translations setup.php (Catalan)
CachetBot Jul 12, 2018
b496080
New translations dashboard.php (Greek)
CachetBot Jul 12, 2018
c580c3f
New translations forms.php (Greek)
CachetBot Jul 12, 2018
c6c0ba1
New translations pagination.php (Greek)
CachetBot Jul 12, 2018
2be0c62
New translations setup.php (Greek)
CachetBot Jul 12, 2018
0dfe24c
New translations cachet.php (Hebrew)
CachetBot Jul 12, 2018
221dd85
New translations dashboard.php (Hebrew)
CachetBot Jul 12, 2018
3e3f513
New translations forms.php (Hebrew)
CachetBot Jul 12, 2018
cc049bc
New translations setup.php (Hebrew)
CachetBot Jul 12, 2018
8996bcb
New translations validation.php (Hebrew)
CachetBot Jul 12, 2018
d710d3e
New translations cachet.php (Hungarian)
CachetBot Jul 12, 2018
d30e50f
New translations notifications.php (German)
CachetBot Jul 12, 2018
9b5fa1b
New translations dashboard.php (Hungarian)
CachetBot Jul 12, 2018
ffb9048
New translations forms.php (Hungarian)
CachetBot Jul 12, 2018
87e62cc
New translations pagination.php (Hungarian)
CachetBot Jul 12, 2018
714594d
New translations setup.php (Hungarian)
CachetBot Jul 12, 2018
2ac381a
New translations validation.php (Hungarian)
CachetBot Jul 12, 2018
6513817
New translations notifications.php (Hungarian)
CachetBot Jul 12, 2018
c6fde0f
New translations dashboard.php (Indonesian)
CachetBot Jul 12, 2018
bb09bad
New translations forms.php (Indonesian)
CachetBot Jul 12, 2018
402b38e
New translations validation.php (Indonesian)
CachetBot Jul 12, 2018
91086fa
New translations cachet.php (Greek)
CachetBot Jul 12, 2018
0cdd2eb
New translations validation.php (Dutch)
CachetBot Jul 12, 2018
ad24286
New translations setup.php (Finnish)
CachetBot Jul 12, 2018
d021b88
New translations cachet.php (English)
CachetBot Jul 12, 2018
7969d4f
New translations dashboard.php (English)
CachetBot Jul 12, 2018
ece0043
New translations forms.php (English)
CachetBot Jul 12, 2018
2bbcdb5
New translations notifications.php (English)
CachetBot Jul 12, 2018
0fdb1be
New translations cachet.php (Finnish)
CachetBot Jul 12, 2018
ef79ff5
New translations dashboard.php (Finnish)
CachetBot Jul 12, 2018
a88c595
New translations forms.php (Finnish)
CachetBot Jul 12, 2018
52d9bcf
New translations pagination.php (Finnish)
CachetBot Jul 12, 2018
2a98083
New translations validation.php (Finnish)
CachetBot Jul 12, 2018
3a511b1
New translations notifications.php (Finnish)
CachetBot Jul 12, 2018
5f71286
New translations cachet.php (French)
CachetBot Jul 12, 2018
9168c9b
New translations dashboard.php (French)
CachetBot Jul 12, 2018
464cdf3
New translations forms.php (French)
CachetBot Jul 12, 2018
ddcafd7
New translations pagination.php (French)
CachetBot Jul 12, 2018
8b25d24
New translations notifications.php (French)
CachetBot Jul 12, 2018
8762f44
New translations cachet.php (German)
CachetBot Jul 12, 2018
67245f6
New translations dashboard.php (German)
CachetBot Jul 12, 2018
99ef27b
New translations forms.php (German)
CachetBot Jul 12, 2018
60108c4
New translations pagination.php (German)
CachetBot Jul 12, 2018
43720a4
Merge pull request #3176 from CachetHQ/l10n_2.4
jbrooksuk Jul 17, 2018
0905023
Apply fixes from StyleCI (#3188)
jbrooksuk Jul 17, 2018
c60f1bd
Added GET incident templates to use in POST incidents template
MarcHagen Jul 19, 2018
39c0829
Code style fixes
MarcHagen Jul 19, 2018
415c6de
Merge pull request #3191 from TakeMeNL/feature/api-get-incident-templ…
jbrooksuk Jul 20, 2018
1a07b3f
Remove references to the Laravel backup manager
nstapelbroek Jul 24, 2018
ecd634a
Update composer dependencies without laravel-backup and twig
nstapelbroek Jul 24, 2018
6e54cd9
Create upgrade docs to keep track of changes between backwards incomp…
nstapelbroek Jul 24, 2018
129d5ac
Reinstall twig because it was required for the incident templates
nstapelbroek Jul 24, 2018
1035ab8
Merge pull request #3196 from nstapelbroek/feature/remove-backup-manager
jbrooksuk Jul 24, 2018
60b9918
New translations forms.php (Chinese Simplified)
CachetBot Aug 7, 2018
75c0f64
New translations forms.php (Dutch)
CachetBot Aug 7, 2018
ce6d2fe
Merge pull request #3211 from CachetHQ/l10n_2.4
jbrooksuk Aug 7, 2018
5663498
Apply fixes from StyleCI (#3212)
jbrooksuk Aug 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions app/Http/Controllers/Api/IncidentTemplateController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Http\Controllers\Api;

use CachetHQ\Cachet\Models\IncidentTemplate;
use GrahamCampbell\Binput\Facades\Binput;
use Illuminate\Support\Facades\Request;

class IncidentTemplateController extends AbstractApiController
{
/**
* Get all incident templates.
*
* @return \Illuminate\Http\JsonResponse
*/
public function index()
{
$templates = IncidentTemplate::query();

if ($sortBy = Binput::get('sort')) {
$direction = Binput::has('order') && Binput::get('order') == 'desc';

$templates->sort($sortBy, $direction);
}

$templates = $templates->paginate(Binput::get('per_page', 20));

return $this->paginator($templates, Request::instance());
}

/**
* Get a single incident templates.
*
* @param \CachetHQ\Cachet\Models\IncidentTemplate $incidentTemplate
*
* @return \Illuminate\Http\JsonResponse
*/
public function show(IncidentTemplate $incidentTemplate)
{
return $this->item($incidentTemplate);
}
}
5 changes: 4 additions & 1 deletion app/Http/Routes/ApiRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ public function map(Registrar $router)
$router->get('components/{component}', 'ComponentController@show');

$router->get('incidents', 'IncidentController@index');
$router->get('incidents/{incident}', 'IncidentController@show');

$router->get('incidents/templates', 'IncidentTemplateController@index');
$router->get('incidents/templates/{incident_template}', 'IncidentTemplateController@show');

$router->get('incidents/{incident}', 'IncidentController@show');
$router->get('incidents/{incident}/updates', 'IncidentUpdateController@index');
$router->get('incidents/{incident}/updates/{update}', 'IncidentUpdateController@show');

Expand Down
24 changes: 1 addition & 23 deletions app/Subscribers/CommandSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use CachetHQ\Cachet\Bus\Events\System\SystemWasResetEvent;
use CachetHQ\Cachet\Bus\Events\System\SystemWasUpdatedEvent;
use CachetHQ\Cachet\Settings\Cache;
use Exception;
use Illuminate\Console\Command;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Contracts\Events\Dispatcher;
Expand Down Expand Up @@ -128,7 +127,7 @@ public function fireResettingCommand(Command $command)
}

/**
* Handle the main bulk of the command, clear the settings and backup the database.
* Handle the main bulk of the command, clear the settings.
*
* @param \Illuminate\Console\Command $command
*
Expand All @@ -141,27 +140,6 @@ protected function handleMainCommand(Command $command)
$this->cache->clear();

$command->line('Settings cache cleared!');

// SQLite does not backup.
if ($this->config->get('database.default') === 'sqlite') {
$command->line('Backup skipped: SQLite is not supported.');

return;
}

$command->line('Backing up database...');

try {
$command->call('backup:run', [
'--only-db' => true,
'--no-interaction' => true,
]);
} catch (Exception $e) {
$command->error($e->getMessage());
$command->line('Backup skipped!');
}

$command->line('Backup completed!');
}

/**
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"pragmarx/google2fa": "^0.7.1",
"predis/predis": "^1.1",
"roumen/feed": "^2.10",
"spatie/laravel-backup": "^5.9",
"twig/twig": "^1.26.1"
"twig/twig": "^1"
},
"require-dev": {
"ext-sqlite3": "*",
Expand Down
Loading