File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change 16
16
"astro" : " ^4.0.3" ,
17
17
"autoprefixer" : " ^10.4.14" ,
18
18
"axios" : " ^1.6.0" ,
19
- "canvas-confetti" : " ^1.6.0" ,
20
19
"dayjs" : " ^1.11.9" ,
21
20
"fuse.js" : " ^6.6.2" ,
22
21
"highlight.js" : " ^11.8.0" ,
Original file line number Diff line number Diff line change @@ -327,22 +327,6 @@ exec "<path-to-directory>/bin/lua-language-server" "$@"
327
327
import axios from "axios";
328
328
import { TimeCache } from "~/classes/TimeCache";
329
329
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
- };
346
330
347
331
const ENDPOINT =
348
332
"https://corsproxy.io/?https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery";
@@ -396,9 +380,6 @@ exec "<path-to-directory>/bin/lua-language-server" "$@"
396
380
} else {
397
381
installElement.textContent = numberFormatter.format(installs);
398
382
}
399
- if (installs ?? 0 >= 1e6) {
400
- spawnConfetti(installElement);
401
- }
402
383
</script >
403
384
404
385
<script >
You can’t perform that action at this time.
0 commit comments