- 134-tool registry with programmatic SEO (unique titles/H1/descriptions, JSON-LD graphs, sitemap index, canonical 301 enforcement via required filter) - DB-backed job queue (SKIP LOCKED) with drivers: Ffmpeg, Images (GD), Pdf (qpdf/gs/poppler), Youtube (thumbnails), Qr (server-side PNG) - Security: SSRF guard, MIME validation, rate limits, API-key auth, bcrypt admin login, security headers - Admin panel: dashboard, tools/categories/guides CRUD, SEO audit, analytics, job inspector with retry, system health, feature flags - Docker deployment (nginx + web/api FPM pools + scalable workers), PHPUnit suite (19 tests / 1139 assertions), PWA manifest + service worker
23 lines
1.5 KiB
PHP
23 lines
1.5 KiB
PHP
<?= view('partials/admin_nav') ?>
|
|
<div style="display:flex;align-items:center;gap:1rem">
|
|
<h1 style="font-size:1.7rem">Tools (<?= count($tools) ?>)</h1>
|
|
<a class="btn-primary" href="/admin/tools/new" style="text-decoration:none;font-size:.9rem;padding:.55rem 1.2rem;margin-left:auto">+ New tool</a>
|
|
</div>
|
|
<form method="get" action="/admin/tools" class="hero-search" style="max-width:420px;margin:1rem 0;box-shadow:var(--shadow-sm)">
|
|
<input type="search" name="q" value="<?= esc($q) ?>" placeholder="Filter by name or slug…">
|
|
<button type="submit">Filter</button>
|
|
</form>
|
|
<table style="width:100%;font-size:.86rem;border-collapse:collapse;background:#fff;border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)">
|
|
<tr style="text-align:left;color:var(--ink-500)"><th style="padding:.7rem">Tool</th><th>Category</th><th>Kind</th><th>Status</th><th>Pop.</th><th></th></tr>
|
|
<?php foreach ($tools as $t): ?>
|
|
<tr style="border-top:1px solid #f2f2f5">
|
|
<td style="padding:.6rem .7rem"><strong><?= esc($t['name']) ?></strong><br><code style="font-size:.78rem;color:var(--ink-500)">/<?= esc($t['slug']) ?></code></td>
|
|
<td><?= esc(service('finder')->categoryById((int)$t['category_id'])['name'] ?? '?') ?></td>
|
|
<td><?= esc($t['kind']) ?></td>
|
|
<td><span class="badge" <?= $t['status']!=='active' ? 'style="background:#fffbeb;color:#b45309"' : '' ?>><?= esc($t['status']) ?></span></td>
|
|
<td><?= (int)$t['popularity'] ?></td>
|
|
<td><a href="/admin/tools/<?= (int)$t['id'] ?>/edit">Edit</a></td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</table>
|