[chore] move cards to htmx post

This commit is contained in:
2026-02-22 11:00:30 -05:00
parent b7679168ae
commit bdcf90b0d9
7 changed files with 60 additions and 118 deletions

View File

@@ -35,9 +35,11 @@ const nearMint = await db.query.skus.findFirst({
const nearMintPrice = nearMint?.marketPrice ?? null;
const calculatedAt = new Date(nearMint?.calculatedAt);
const calculatedAt = new Date(nearMint?.calculatedAt || 0);
function timeAgo(date: any) {
if (date==0) return "never";
function timeAgo(date) {
const seconds = Math.floor((Date.now() - date) / 1000);
const intervals = {