mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 15:33:17 +00:00
commit
bf0acc6b50
9 changed files with 182 additions and 77 deletions
|
@ -12,6 +12,8 @@
|
|||
- Updated lexer autolinker and extractor, add support for mentioned usernames containing dashes, periods and underscore characters ([f911c96d](https://github.com/pixelfed/pixelfed/commit/f911c96d))
|
||||
- Updated Story apis, move FE to v0 and add v1 for oauth clients ([92654fab](https://github.com/pixelfed/pixelfed/commit/92654fab))
|
||||
- Updated robots.txt ([25101901](https://github.com/pixelfed/pixelfed/commit/25101901))
|
||||
- Updated mail panel blade view, fix markdown bug ([cbc63b04](https://github.com/pixelfed/pixelfed/commit/cbc63b04))
|
||||
- Updated self-diagnosis checks ([03f808c7](https://github.com/pixelfed/pixelfed/commit/03f808c7))
|
||||
|
||||
## [v0.10.8 (2020-01-29)](https://github.com/pixelfed/pixelfed/compare/v0.10.7...v0.10.8)
|
||||
### Added
|
||||
|
|
103
config/self-diagnosis.php
Normal file
103
config/self-diagnosis.php
Normal file
|
@ -0,0 +1,103 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* A list of environment aliases mapped to the actual environment configuration.
|
||||
*/
|
||||
'environment_aliases' => [
|
||||
'prod' => 'production',
|
||||
'live' => 'production',
|
||||
'local' => 'development',
|
||||
],
|
||||
|
||||
/*
|
||||
* Common checks that will be performed on all environments.
|
||||
*/
|
||||
'checks' => [
|
||||
\BeyondCode\SelfDiagnosis\Checks\AppKeyIsSet::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\CorrectPhpVersionIsInstalled::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\DatabaseCanBeAccessed::class => [
|
||||
'default_connection' => true,
|
||||
'connections' => [],
|
||||
],
|
||||
\BeyondCode\SelfDiagnosis\Checks\DirectoriesHaveCorrectPermissions::class => [
|
||||
'directories' => [
|
||||
storage_path(),
|
||||
base_path('bootstrap/cache'),
|
||||
],
|
||||
],
|
||||
\BeyondCode\SelfDiagnosis\Checks\EnvFileExists::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\LocalesAreInstalled::class => [
|
||||
'required_locales' => [
|
||||
'en_US',
|
||||
PHP_OS === 'Darwin' ? 'en_US.UTF-8' : 'en_US.utf8',
|
||||
],
|
||||
],
|
||||
\BeyondCode\SelfDiagnosis\Checks\MaintenanceModeNotEnabled::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\MigrationsAreUpToDate::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreInstalled::class => [
|
||||
'extensions' => [
|
||||
'openssl',
|
||||
'PDO',
|
||||
'mbstring',
|
||||
'tokenizer',
|
||||
'xml',
|
||||
'ctype',
|
||||
'json',
|
||||
'redis',
|
||||
'bcmath',
|
||||
'curl',
|
||||
'exif',
|
||||
'iconv',
|
||||
'intl',
|
||||
'zip'
|
||||
],
|
||||
'include_composer_extensions' => true,
|
||||
],
|
||||
\BeyondCode\SelfDiagnosis\Checks\RedisCanBeAccessed::class => [
|
||||
'default_connection' => true,
|
||||
'connections' => [],
|
||||
],
|
||||
\BeyondCode\SelfDiagnosis\Checks\StorageDirectoryIsLinked::class,
|
||||
],
|
||||
|
||||
/*
|
||||
* Environment specific checks that will only be performed for the corresponding environment.
|
||||
*/
|
||||
'environment_checks' => [
|
||||
'development' => [
|
||||
\BeyondCode\SelfDiagnosis\Checks\ComposerWithDevDependenciesIsUpToDate::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\ConfigurationIsNotCached::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\RoutesAreNotCached::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\ExampleEnvironmentVariablesAreUpToDate::class,
|
||||
],
|
||||
'production' => [
|
||||
\BeyondCode\SelfDiagnosis\Checks\ComposerWithoutDevDependenciesIsUpToDate::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\ConfigurationIsCached::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\DebugModeIsNotEnabled::class,
|
||||
\BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreDisabled::class => [
|
||||
'extensions' => [
|
||||
'xdebug',
|
||||
],
|
||||
],
|
||||
\BeyondCode\SelfDiagnosis\Checks\RoutesAreCached::class,
|
||||
//\BeyondCode\SelfDiagnosis\Checks\ServersArePingable::class => [
|
||||
// 'servers' => [
|
||||
// 'www.google.com',
|
||||
// ['host' => 'www.google.com', 'port' => 8080],
|
||||
// '8.8.8.8',
|
||||
// ['host' => '8.8.8.8', 'port' => 8080, 'timeout' => 5],
|
||||
// ],
|
||||
//],
|
||||
//\BeyondCode\SelfDiagnosis\Checks\SupervisorProgramsAreRunning::class => [
|
||||
// 'programs' => [
|
||||
// 'horizon',
|
||||
// ],
|
||||
// 'restarted_within' => 300,
|
||||
//],
|
||||
//\BeyondCode\SelfDiagnosis\Checks\HorizonIsRunning::class,
|
||||
],
|
||||
],
|
||||
|
||||
];
|
|
@ -1,19 +1,19 @@
|
|||
<table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank">{{ $slot }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank">{{ $slot }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<tr>
|
||||
<td>
|
||||
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td class="content-cell" align="center">
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td class="content-cell" align="center">
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<tr>
|
||||
<td class="header">
|
||||
<a href="{{ $url }}">
|
||||
{{ $slot }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="header">
|
||||
<a href="{{ $url }}">
|
||||
{{ $slot }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
@component('mail::layout')
|
||||
{{-- Header --}}
|
||||
@slot('header')
|
||||
@component('mail::header', ['url' => config('app.url')])
|
||||
{{ config('app.name') }}
|
||||
@endcomponent
|
||||
@endslot
|
||||
|
||||
{{-- Body --}}
|
||||
{{ $slot }}
|
||||
|
||||
{{-- Subcopy --}}
|
||||
@isset($subcopy)
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
{{ $subcopy }}
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endisset
|
||||
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.')
|
||||
@endcomponent
|
||||
@endslot
|
||||
{{-- Header --}}
|
||||
@slot('header')
|
||||
@component('mail::header', ['url' => config('app.url')])
|
||||
{{ config('app.name') }}
|
||||
@endcomponent
|
||||
@endslot
|
||||
|
||||
{{-- Body --}}
|
||||
{{ $slot }}
|
||||
|
||||
{{-- Subcopy --}}
|
||||
@isset($subcopy)
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
{{ $subcopy }}
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endisset
|
||||
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.')
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
|
22
resources/views/vendor/mail/html/panel.blade.php
vendored
22
resources/views/vendor/mail/html/panel.blade.php
vendored
|
@ -1,13 +1,13 @@
|
|||
<table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td class="panel-content">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td class="panel-item">
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="panel-content">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td class="panel-item">
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td align="center">
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td>
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ Illuminate\Mail\Markdown::parse($slot) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue