OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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
);
}
}

View 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

View 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

View 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

View 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