feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)

This commit is contained in:
Florian Sylvain committed 2026-10-15 05:25:44 +02:00
1 parent 3d81d2c717
commit 6b8990c55e
239 files changed
+9194 -1354

No files matched your search

+9 -2
View File
@@ -17,7 +17,10 @@ function pad(value: number) {
function monthShort(date: Date, timeZone?: 'UTC') {
if (locale.value === 'fr') {
return new Intl.DateTimeFormat('fr', { month: 'short', timeZone }).format(date)
return new Intl.DateTimeFormat('fr', {
month: 'short',
timeZone,
}).format(date)
}
return MONTHS[timeZone ? date.getUTCMonth() : date.getMonth()]
}
@@ -101,7 +104,11 @@ export function groupByDay<T extends { created_at: string }>(
last.items.push(item)
continue
}
groups.push({ key, label: dayLabel(item.created_at, now), items: [item] })
groups.push({
key,
label: dayLabel(item.created_at, now),
items: [item],
})
}
return groups
}