feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)
This commit is contained in:
1 parent
3d81d2c717
commit
6b8990c55e
239 files changed
+9194
-1354
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user