This commit is contained in:
James Brooks
2024-02-13 17:22:05 +00:00
parent 441a09c54a
commit c01ea14981
15 changed files with 829 additions and 690 deletions

3
.gitignore vendored
View File

@@ -3,6 +3,9 @@
/public/build /public/build
/public/hot /public/hot
/public/storage /public/storage
/public/css/filament
/public/js/filament
/public/vendor/cachethq/cachet
/storage/*.key /storage/*.key
/vendor /vendor
.env .env

View File

@@ -10,8 +10,8 @@
], ],
"repositories": { "repositories": {
"cachet-core": { "cachet-core": {
"type": "vcs", "type": "path",
"url": "https://github.com/cachethq/core.git" "url": "../core"
} }
}, },
"require": { "require": {
@@ -49,7 +49,9 @@
"@php artisan package:discover --ansi" "@php artisan package:discover --ansi"
], ],
"post-update-cmd": [ "post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force" "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan vendor:publish --tag=cachet-assets --ansi --force",
"@php artisan filament:assets --ansi"
], ],
"post-root-package-install": [ "post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""

1410
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,14 +1,5 @@
<?php <?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.
*/
return [ return [
/* /*
@@ -30,10 +21,20 @@ return [
| |
| This is the URI path where Cachet will be accessible from. | This is the URI path where Cachet will be accessible from.
*/ */
'path' => env('CACHET_PATH', ''), 'path' => env('CACHET_PATH', 'status'),
'guard' => env('CACHET_GUARD', null), 'guard' => env('CACHET_GUARD', null),
/*
|--------------------------------------------------------------------------
| The User Model.
|--------------------------------------------------------------------------
|
| This is the model that will be used to authenticate users. This model
| must be an instance of Illuminate\Foundation\Auth\User.
*/
'user_model' => App\Models\User::class,
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Cachet Domain | Cachet Domain
@@ -73,6 +74,18 @@ return [
'api', 'api',
], ],
/*
|--------------------------------------------------------------------------
| Cachet API Rate Limit (attempts per minute)
|--------------------------------------------------------------------------
|
| This is the rate limit for the Cachet API. By default, the API is rate
| limited to 300 requests a minute (or 5 requests a second). You can
| adjust the limit as needed by your application.
|
*/
'api_rate_limit' => env('CACHET_API_RATE_LIMIT', 300),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Cachet Major Outage Threshold | Cachet Major Outage Threshold
@@ -81,7 +94,7 @@ return [
| This is the threshold at which a major outage is declared. | This is the threshold at which a major outage is declared.
| |
*/ */
'major_outage' => 50.0, 'major_outage' => 25.0,
'beacon' => env('CACHET_BEACON', true), 'beacon' => env('CACHET_BEACON', true),
]; ];

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,17 +0,0 @@
{
"resources/js/cachet.js": {
"file": "assets/cachet.6122e927.js",
"src": "resources/js/cachet.js",
"isEntry": true
},
"resources/css/cachet.css": {
"file": "assets/cachet.a8ace77f.css",
"src": "resources/css/cachet.css",
"isEntry": true
},
"resources/css/dashboard/theme.css": {
"file": "assets/theme.13357923.css",
"src": "resources/css/dashboard/theme.css",
"isEntry": true
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 867 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -2,17 +2,7 @@
<x-cachet::header /> <x-cachet::header />
<div class="mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8"> <div class="mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8">
<div> <x-cachet::about />
<h2 class="text-3xl font-semibold">About This Site</h2>
<div class="prose prose-zinc mt-1 dark:prose-invert prose-a:text-primary-500 prose-a:underline">
{{-- format-ignore-start --}}
<p>
This is the demo instance of <a href="https://cachethq.io/" target="_blank">Cachet</a>. The
open-source status page system.
</p>
{{-- format-ignore-end --}}
</div>
</div>
<div class="mt-6 space-y-10"> <div class="mt-6 space-y-10">
<x-cachet::status-bar /> <x-cachet::status-bar />
@@ -21,7 +11,9 @@
<x-cachet::component-group :component-group="$componentGroup"/> <x-cachet::component-group :component-group="$componentGroup"/>
@endforeach @endforeach
<x-cachet::maintenance/> @if($schedules->isNotEmpty())
<x-cachet::schedules :schedules="$schedules" />
@endif
<x-cachet::incidents /> <x-cachet::incidents />
</div> </div>