mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
🚀 Refactor Blade
- Optimize Blade JavaScript code. - Refactored multiple admin controllers for improved validation, error handling, and query efficiency. - Added ProxyConfig trait to centralize proxy configuration options. - Updated NodeStatusDetection to use model relationships for heartbeat checks. - Improved category, label, and country management logic and error logging. - Added new Blade components for admin UI and updated language files and assets for better localization and frontend support. - Bug fixed & introduced more bug :)
This commit is contained in:
@@ -15,19 +15,7 @@ class CertController extends Controller
|
||||
{
|
||||
public function index(): View
|
||||
{
|
||||
$certs = NodeCertificate::orderBy('id')->paginate()->appends(request('page'));
|
||||
foreach ($certs as $cert) {
|
||||
if ($cert->pem) {
|
||||
$certInfo = openssl_x509_parse($cert->pem);
|
||||
if ($certInfo) {
|
||||
$cert->issuer = $certInfo['issuer']['O'] ?? null;
|
||||
$cert->from = date('Y-m-d', $certInfo['validFrom_time_t']) ?: null;
|
||||
$cert->to = date('Y-m-d', $certInfo['validTo_time_t']) ?: null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return view('admin.node.cert.index', ['certs' => $certs]);
|
||||
return view('admin.node.cert.index', ['certs' => NodeCertificate::orderBy('id')->paginate()->appends(request('page'))]);
|
||||
}
|
||||
|
||||
public function store(CertRequest $request): RedirectResponse
|
||||
|
||||
Reference in New Issue
Block a user