+ diff --git a/common/modules/util.js b/common/modules/util.js index 506d427..5e2c7fd 100644 --- a/common/modules/util.js +++ b/common/modules/util.js @@ -99,12 +99,12 @@ export function generateRandomHexCode (len) { export function throttle (fn, time) { let wait = false - return () => { + return (...args) => { if (!wait) { - fn() + fn(...args) wait = true setTimeout(() => { - fn() + fn(...args) wait = false }, time).unref?.() } diff --git a/web/src/app.html b/web/src/app.html index 8c386d3..04fa9f8 100644 --- a/web/src/app.html +++ b/web/src/app.html @@ -16,15 +16,15 @@ - - + + - + - + - + diff --git a/web/src/lib/components/Stargazers.svelte b/web/src/lib/components/Stargazers.svelte new file mode 100644 index 0000000..8882dc5 --- /dev/null +++ b/web/src/lib/components/Stargazers.svelte @@ -0,0 +1,73 @@ + + +
+