neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+1
View File
@@ -0,0 +1 @@
export * from "./throttle.mjs";
+1
View File
@@ -0,0 +1 @@
export * from "./throttle.js";
+16
View File
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _throttle = require("./throttle");
Object.keys(_throttle).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _throttle[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _throttle[key];
}
});
});
+1
View File
@@ -0,0 +1 @@
export * from "./throttle.mjs";
+4
View File
@@ -0,0 +1,4 @@
export interface Cancelable {
clear(): void;
}
export declare function throttle<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
+4
View File
@@ -0,0 +1,4 @@
export interface Cancelable {
clear(): void;
}
export declare function throttle<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
+25
View File
@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.throttle = throttle;
function throttle(func, wait = 166) {
let timeout;
let lastArgs;
const later = () => {
timeout = undefined;
func(...lastArgs);
};
function throttled(...args) {
lastArgs = args;
if (timeout === undefined) {
timeout = setTimeout(later, wait);
}
}
throttled.clear = () => {
clearTimeout(timeout);
timeout = undefined;
};
return throttled;
}
+19
View File
@@ -0,0 +1,19 @@
export function throttle(func, wait = 166) {
let timeout;
let lastArgs;
const later = () => {
timeout = undefined;
func(...lastArgs);
};
function throttled(...args) {
lastArgs = args;
if (timeout === undefined) {
timeout = setTimeout(later, wait);
}
}
throttled.clear = () => {
clearTimeout(timeout);
timeout = undefined;
};
return throttled;
}