Add makeCalendarFeed

This commit is contained in:
Jon Staab
2025-02-05 16:26:22 -08:00
parent a0c6e46184
commit db69c56f57
7 changed files with 193 additions and 52 deletions
+2
View File
@@ -21,6 +21,7 @@ export type ScrollerOpts = {
onScroll: () => any
element: Element
threshold?: number
reverse?: boolean
delay?: number
}
@@ -34,6 +35,7 @@ export const createScroller = ({
element,
delay = 1000,
threshold = 2000,
reverse = false,
}: ScrollerOpts) => {
let done = false
+1 -1
View File
@@ -26,6 +26,6 @@ export const nsecDecode = (nsec: string) => {
return bytesToHex(data)
}
export const day = (seconds: number) => Math.floor(seconds / DAY).toString()
export const day = (seconds: number) => Math.floor(seconds / DAY)
export const daysBetween = (start: number, end: number) => [...range(start, end, DAY)].map(day)