update ui

This commit is contained in:
2026-01-23 02:21:55 +07:00
parent 1fe77f24dc
commit 55f467a10e
11 changed files with 582 additions and 81 deletions

View File

@@ -7,7 +7,7 @@ export function cn(...inputs: ClassValue[]) {
}
export function debounce<Func extends (...args: any[]) => any>(func: Func, wait: number): Func {
let timeout: ReturnType<typeof setTimeout> | null;
return function(this: any, ...args: any[]) {
return function (this: any, ...args: any[]) {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(() => {
func.apply(this, args);
@@ -47,4 +47,6 @@ export function getImageAspectRatio(url: string): Promise<AspectInfo> {
img.src = url;
});
}
}