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

View File

@@ -443,9 +443,9 @@ select:focus { border-color: var(--accent); }
.score-badge {
font-family: 'Space Mono', monospace;
font-size: 0.65rem;
color: var(--accent3);
background: rgba(251,191,36,0.1);
border: 1px solid rgba(251,191,36,0.2);
color: var(--muted);
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.3rem 0.45rem;
white-space: nowrap;
@@ -762,6 +762,16 @@ function applyFilters() {
// ────────────────────────────────
// 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) {
if (!n) return '0';
if (n >= 1000) return (n / 1000).toFixed(1) + 'K';
@@ -799,7 +809,7 @@ function cardHTML(a, idx) {
</div>
<div class="card-follow">
<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>`;
}
@@ -828,7 +838,7 @@ function cardHTML(a, idx) {
</div>
<div class="card-follow">
<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>`;

View File

@@ -75,6 +75,7 @@ QUERY_INSTANCES = [
"spondr.cz",
"skorpil.cz",
"ajtaci.club",
"toot.whatever.cz",
]
MIN_STATUSES = 10