Skip to content

Commit 13ce189

Browse files
committed
remove confetti
1 parent 0fa4e31 commit 13ce189

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"astro": "^4.0.3",
1717
"autoprefixer": "^10.4.14",
1818
"axios": "^1.6.0",
19-
"canvas-confetti": "^1.6.0",
2019
"dayjs": "^1.11.9",
2120
"fuse.js": "^6.6.2",
2221
"highlight.js": "^11.8.0",

src/pages/index.astro

-19
Original file line numberDiff line numberDiff line change
@@ -327,22 +327,6 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
327327
import axios from "axios";
328328
import { TimeCache } from "~/classes/TimeCache";
329329
import { assertElement } from "~/util/DOM";
330-
import confetti from "canvas-confetti";
331-
332-
const spawnConfetti = (element: HTMLElement) => {
333-
const rect = element.getBoundingClientRect();
334-
const x = (rect.left + rect.width / 2) / window.innerWidth;
335-
const y = (rect.top + rect.height / 2) / window.innerHeight;
336-
337-
confetti({
338-
startVelocity: 6,
339-
origin: { x, y },
340-
decay: 0.98,
341-
gravity: 0.7,
342-
disableForReducedMotion: true,
343-
zIndex: 15,
344-
});
345-
};
346330

347331
const ENDPOINT =
348332
"https://corsproxy.io/?https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery";
@@ -396,9 +380,6 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
396380
} else {
397381
installElement.textContent = numberFormatter.format(installs);
398382
}
399-
if (installs ?? 0 >= 1e6) {
400-
spawnConfetti(installElement);
401-
}
402383
</script>
403384

404385
<script>

0 commit comments

Comments
 (0)