OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
19
app/Domain/Errors/Controllers/Error403.php
Normal file
19
app/Domain/Errors/Controllers/Error403.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\Errors\Controllers;
|
||||
|
||||
use Leantime\Core\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Error403 extends Controller
|
||||
{
|
||||
/**
|
||||
* Displays the 403 Forbidden error page.
|
||||
*
|
||||
* @param array $params Request parameters
|
||||
*/
|
||||
public function get(array $params): Response
|
||||
{
|
||||
return $this->tpl->display('errors.error403', layout: 'error', responseCode: 403);
|
||||
}
|
||||
}
|
||||
19
app/Domain/Errors/Controllers/Error404.php
Normal file
19
app/Domain/Errors/Controllers/Error404.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\Errors\Controllers;
|
||||
|
||||
use Leantime\Core\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Error404 extends Controller
|
||||
{
|
||||
/**
|
||||
* Displays the 404 Not Found error page.
|
||||
*
|
||||
* @param array $params Request parameters
|
||||
*/
|
||||
public function get(array $params): Response
|
||||
{
|
||||
return $this->tpl->display('errors.error404', layout: 'error', responseCode: 404);
|
||||
}
|
||||
}
|
||||
19
app/Domain/Errors/Controllers/Error500.php
Normal file
19
app/Domain/Errors/Controllers/Error500.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\Errors\Controllers;
|
||||
|
||||
use Leantime\Core\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Error500 extends Controller
|
||||
{
|
||||
/**
|
||||
* Displays the 500 Internal Server Error page.
|
||||
*
|
||||
* @param array $params Request parameters
|
||||
*/
|
||||
public function get(array $params): Response
|
||||
{
|
||||
return $this->tpl->display('errors.error500', layout: 'error', responseCode: 500);
|
||||
}
|
||||
}
|
||||
23
app/Domain/Errors/Controllers/Error501.php
Normal file
23
app/Domain/Errors/Controllers/Error501.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\Errors\Controllers;
|
||||
|
||||
use Leantime\Core\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Error501 extends Controller
|
||||
{
|
||||
/**
|
||||
* Displays the 501 Not Implemented error page.
|
||||
*
|
||||
* @param array $params Request parameters
|
||||
*/
|
||||
public function get(array $params): Response
|
||||
{
|
||||
return $this->tpl->display(
|
||||
template: 'errors.error501',
|
||||
layout: 'error',
|
||||
responseCode: 501
|
||||
);
|
||||
}
|
||||
}
|
||||
18
app/Domain/Errors/Templates/error403.blade.php
Normal file
18
app/Domain/Errors/Templates/error403.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="errortitle">
|
||||
|
||||
<h4 class="animate0 fadeInUp">{!! __('headlines.page_forbidden') !!}</h4>
|
||||
<span class="animate1 bounceIn">4</span>
|
||||
<span class="animate2 bounceIn">0</span>
|
||||
<span class="animate3 bounceIn">3</span>
|
||||
<div class="errorbtns animate4 fadeInUp">
|
||||
<x-global::forms.button tag="a" contentRole="default" onclick="history.back()">{!! __('buttons.back') !!}</x-global::forms.button>
|
||||
<x-global::forms.button tag="a" link="{{ BASE_URL }}" contentRole="primary">{!! __('links.dashboard') !!}</x-global::forms.button>
|
||||
</div><br/><br/><br/><br/>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
18
app/Domain/Errors/Templates/error404.blade.php
Normal file
18
app/Domain/Errors/Templates/error404.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="errortitle">
|
||||
|
||||
<h4 class="animate0 fadeInUp">{!! __('headlines.page_not_found') !!}</h4>
|
||||
<span class="animate1 bounceIn">4</span>
|
||||
<span class="animate2 bounceIn">0</span>
|
||||
<span class="animate3 bounceIn">4</span>
|
||||
<div class="errorbtns animate4 fadeInUp">
|
||||
<x-global::forms.button tag="a" contentRole="default" onclick="history.back()">{!! __('buttons.back') !!}</x-global::forms.button>
|
||||
<x-global::forms.button tag="a" link="{{ BASE_URL }}" contentRole="primary">{!! __('links.dashboard') !!}</x-global::forms.button>
|
||||
</div><br/><br/><br/><br/>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
18
app/Domain/Errors/Templates/error500.blade.php
Normal file
18
app/Domain/Errors/Templates/error500.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="errortitle">
|
||||
|
||||
<h4 class="animate0 fadeInUp">{!! __('headlines.system_error') !!}</h4>
|
||||
<span class="animate1 bounceIn">5</span>
|
||||
<span class="animate2 bounceIn">0</span>
|
||||
<span class="animate3 bounceIn">0</span>
|
||||
<div class="errorbtns animate4 fadeInUp">
|
||||
<x-global::forms.button tag="a" contentRole="default" onclick="history.back()">{!! __('buttons.back') !!}</x-global::forms.button>
|
||||
<x-global::forms.button tag="a" link="{{ BASE_URL }}" contentRole="primary">{!! __('links.dashboard') !!}</x-global::forms.button>
|
||||
</div><br/><br/><br/><br/>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
18
app/Domain/Errors/Templates/error501.blade.php
Normal file
18
app/Domain/Errors/Templates/error501.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="errortitle">
|
||||
|
||||
<h4 class="animate0 fadeInUp">Method not implemented</h4>
|
||||
<span class="animate1 bounceIn">5</span>
|
||||
<span class="animate2 bounceIn">0</span>
|
||||
<span class="animate3 bounceIn">1</span>
|
||||
<div class="errorbtns animate4 fadeInUp">
|
||||
<x-global::forms.button tag="a" contentRole="default" onclick="history.back()">{!! __('buttons.back') !!}</x-global::forms.button>
|
||||
<x-global::forms.button tag="a" link="{{ BASE_URL }}" contentRole="primary">{!! __('links.dashboard') !!}</x-global::forms.button>
|
||||
</div><br/><br/><br/><br/>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user