1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00

immich: Now able to show images by date!

This commit is contained in:
Thies 2025-01-30 12:18:35 +01:00
parent bc08362a4c
commit aaacacbd60
No known key found for this signature in database
3 changed files with 118 additions and 85 deletions

View file

@ -464,3 +464,13 @@ export function osmTagToEmoji(tag: string) {
return '📍'; // Default placeholder emoji for unknown tags
}
}
export function debounce(func: Function, timeout: number) {
let timer: number | NodeJS.Timeout;
return (...args: any) => {
clearTimeout(timer);
timer = setTimeout(() => {
func(...args);
}, timeout);
};
}