accounts.html: datum aktivity místo score; přidán toot.whatever.cz

This commit is contained in:
2026-04-03 14:47:41 +02:00
parent eaa7e16ce0
commit a59bee982a
2 changed files with 16 additions and 5 deletions
+15 -5
View File
@@ -443,9 +443,9 @@ select:focus { border-color: var(--accent); }
.score-badge { .score-badge {
font-family: 'Space Mono', monospace; font-family: 'Space Mono', monospace;
font-size: 0.65rem; font-size: 0.65rem;
color: var(--accent3); color: var(--muted);
background: rgba(251,191,36,0.1); background: var(--surface2);
border: 1px solid rgba(251,191,36,0.2); border: 1px solid var(--border);
border-radius: 5px; border-radius: 5px;
padding: 0.3rem 0.45rem; padding: 0.3rem 0.45rem;
white-space: nowrap; white-space: nowrap;
@@ -762,6 +762,16 @@ function applyFilters() {
// ──────────────────────────────── // ────────────────────────────────
// RENDER // RENDER
// ──────────────────────────────── // ────────────────────────────────
function fmtDate(iso) {
if (!iso) return 'Aktivní: neznámo';
const d = new Date(iso);
if (isNaN(d)) return 'Aktivní: neznámo';
const dd = String(d.getUTCDate()).padStart(2, '0');
const mm = String(d.getUTCMonth() + 1).padStart(2, '0');
const yyyy = d.getUTCFullYear();
return `Aktivní: ${dd}.${mm}.${yyyy}`;
}
function fmt(n) { function fmt(n) {
if (!n) return '0'; if (!n) return '0';
if (n >= 1000) return (n / 1000).toFixed(1) + 'K'; if (n >= 1000) return (n / 1000).toFixed(1) + 'K';
@@ -799,7 +809,7 @@ function cardHTML(a, idx) {
</div> </div>
<div class="card-follow"> <div class="card-follow">
<a href="${followUrl(a.handle)}" target="_blank" class="follow-btn">+ Sledovat</a> <a href="${followUrl(a.handle)}" target="_blank" class="follow-btn">+ Sledovat</a>
<span class="score-badge">${a.score || '?'}</span> <span class="score-badge">${fmtDate(a.last_active)}</span>
</div> </div>
</div>`; </div>`;
} }
@@ -828,7 +838,7 @@ function cardHTML(a, idx) {
</div> </div>
<div class="card-follow"> <div class="card-follow">
<a href="${followUrl(a.handle)}" target="_blank" class="follow-btn">+ Sledovat</a> <a href="${followUrl(a.handle)}" target="_blank" class="follow-btn">+ Sledovat</a>
<span class="score-badge">${a.score || '?'}</span> <span class="score-badge">${fmtDate(a.last_active)}</span>
</div> </div>
</div> </div>
</div>`; </div>`;
+1
View File
@@ -75,6 +75,7 @@ QUERY_INSTANCES = [
"spondr.cz", "spondr.cz",
"skorpil.cz", "skorpil.cz",
"ajtaci.club", "ajtaci.club",
"toot.whatever.cz",
] ]
MIN_STATUSES = 10 MIN_STATUSES = 10