From 3af2a1f23ca3b4ab3e63bd288054ece587b78247 Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Mon, 5 Jan 2026 17:56:47 +0530 Subject: [PATCH] [ FIX ] : Build Errors --- jsrepo.config.ts | 2 +- src/components/code/CliInstallation.vue | 7 ++- src/components/common/TabbedLayout.vue | 4 +- .../landing/FeatureCards/FeatureCards.vue | 2 +- src/components/navs/Header.vue | 4 +- src/components/navs/Sidebar.vue | 4 +- .../Animations/Antigravity/Antigravity.vue | 4 +- .../Animations/ClickSpark/ClickSpark.vue | 2 +- src/content/Animations/Cubes/Cubes.vue | 20 +++---- .../Animations/PixelTrail/PixelTrail.vue | 7 +-- .../Animations/StickerPeel/StickerPeel.vue | 2 +- src/content/Backgrounds/Ballpit/Ballpit.vue | 4 +- src/content/Backgrounds/GridScan/GridScan.vue | 21 ++----- .../Backgrounds/LetterGlitch/LetterGlitch.vue | 8 +-- .../Backgrounds/PixelBlast/PixelBlast.vue | 3 +- src/content/Components/Dock/Dock.vue | 6 +- .../Components/InfiniteMenu/InfiniteMenu.vue | 8 ++- .../InfiniteScroll/InfiniteScroll.vue | 10 ++-- .../Components/MagicBento/MagicBento.vue | 2 +- .../RollingGallery/RollingGallery.vue | 24 ++++---- .../DecryptedText/DecryptedText.vue | 2 +- .../RotatingText/RotatingText.vue | 24 +++++--- .../TextAnimations/Shuffle/Shuffle.vue | 34 +++++------ .../TextAnimations/TextCursor/TextCursor.vue | 6 +- .../TextAnimations/TextTrail/TextTrail.vue | 4 +- .../TextAnimations/TrueFocus/TrueFocus.vue | 16 +++--- src/demo/Animations/AntigravityDemo.vue | 6 +- src/demo/Animations/PixelTrailDemo.vue | 43 ++++++++++++-- src/demo/Backgrounds/GridScanDemo.vue | 56 +++---------------- src/demo/TextAnimations/ShuffleDemo.vue | 48 +++------------- 30 files changed, 168 insertions(+), 215 deletions(-) diff --git a/jsrepo.config.ts b/jsrepo.config.ts index fbba5f2..c743046 100644 --- a/jsrepo.config.ts +++ b/jsrepo.config.ts @@ -72,4 +72,4 @@ function defineComponent({ ] } ]; -} \ No newline at end of file +} diff --git a/src/components/code/CliInstallation.vue b/src/components/code/CliInstallation.vue index 7499269..9271a2a 100644 --- a/src/components/code/CliInstallation.vue +++ b/src/components/code/CliInstallation.vue @@ -14,8 +14,11 @@ />

- Vue Bits uses jsrepo to help you install components via CLI commands. Learn more about it - here. + Vue Bits uses + jsrepo + to help you install components via CLI commands. Learn more about it + here + .

diff --git a/src/components/common/TabbedLayout.vue b/src/components/common/TabbedLayout.vue index cc9a1ec..847b9d4 100644 --- a/src/components/common/TabbedLayout.vue +++ b/src/components/common/TabbedLayout.vue @@ -113,8 +113,8 @@ const subcategory = computed(() => route.params.subcategory); const toast = useToast(); const isTooltipVisible = ref(false); -const showTimeout = ref(null); -const hideTimeout = ref(null); +const showTimeout = ref | null>(null); +const hideTimeout = ref | null>(null); const toPascal = (str: string) => str diff --git a/src/components/landing/FeatureCards/FeatureCards.vue b/src/components/landing/FeatureCards/FeatureCards.vue index bc33606..17a270b 100644 --- a/src/components/landing/FeatureCards/FeatureCards.vue +++ b/src/components/landing/FeatureCards/FeatureCards.vue @@ -71,7 +71,7 @@ const ParticleCard = defineComponent({ setup(props, { slots }) { const cardRef = ref(null); const particlesRef = ref([]); - const timeoutsRef = ref([]); + const timeoutsRef = ref[]>([]); const isHoveredRef = ref(false); const memoizedParticles = ref([]); const particlesInit = ref(false); diff --git a/src/components/navs/Header.vue b/src/components/navs/Header.vue index 978f639..aa567e5 100644 --- a/src/components/navs/Header.vue +++ b/src/components/navs/Header.vue @@ -141,8 +141,8 @@ const route = useRoute(); const router = useRouter(); const isTooltipVisible = ref(false); -const showTimeout = ref(null); -const hideTimeout = ref(null); +const showTimeout = ref | null>(null); +const hideTimeout = ref | null>(null); const slug = (str: string) => str.replace(/\s+/g, '-').toLowerCase(); diff --git a/src/components/navs/Sidebar.vue b/src/components/navs/Sidebar.vue index d0e058a..f2f7c68 100644 --- a/src/components/navs/Sidebar.vue +++ b/src/components/navs/Sidebar.vue @@ -130,8 +130,8 @@ const isTransitioning = ref(false); const sidebarRef = useTemplateRef('sidebarRef'); const sidebarContainerRef = useTemplateRef('sidebarContainerRef'); -let hoverTimeoutRef: number | null = null; -let hoverDelayTimeoutRef: number | null = null; +let hoverTimeoutRef: ReturnType | null = null; +let hoverDelayTimeoutRef: ReturnType | null = null; const savedSet = ref(new Set(getSavedComponents())); const route = useRoute(); diff --git a/src/content/Animations/Antigravity/Antigravity.vue b/src/content/Animations/Antigravity/Antigravity.vue index 75ca095..b1e4f90 100644 --- a/src/content/Animations/Antigravity/Antigravity.vue +++ b/src/content/Animations/Antigravity/Antigravity.vue @@ -203,9 +203,7 @@ function animate() { const elapsedTime = clock.getElapsedTime(); // Mouse movement detection - const mouseDist = Math.sqrt( - Math.pow(pointer.x - lastMousePos.x, 2) + Math.pow(pointer.y - lastMousePos.y, 2) - ); + const mouseDist = Math.sqrt(Math.pow(pointer.x - lastMousePos.x, 2) + Math.pow(pointer.y - lastMousePos.y, 2)); if (mouseDist > 0.001) { lastMouseMoveTime = Date.now(); diff --git a/src/content/Animations/ClickSpark/ClickSpark.vue b/src/content/Animations/ClickSpark/ClickSpark.vue index 0bc18fb..f146c9b 100644 --- a/src/content/Animations/ClickSpark/ClickSpark.vue +++ b/src/content/Animations/ClickSpark/ClickSpark.vue @@ -130,7 +130,7 @@ const resizeCanvas = () => { } }; -let resizeTimeout: number; +let resizeTimeout: ReturnType; const handleResize = () => { clearTimeout(resizeTimeout); diff --git a/src/content/Animations/Cubes/Cubes.vue b/src/content/Animations/Cubes/Cubes.vue index 3e46d13..d6baeb6 100644 --- a/src/content/Animations/Cubes/Cubes.vue +++ b/src/content/Animations/Cubes/Cubes.vue @@ -5,14 +5,14 @@
- +
-import { ref, computed, onMounted, onUnmounted, withDefaults, useTemplateRef } from 'vue'; +import { ref, computed, onMounted, onUnmounted, useTemplateRef } from 'vue'; import gsap from 'gsap'; interface Gap { @@ -124,7 +124,7 @@ const props = withDefaults(defineProps(), { const sceneRef = useTemplateRef('sceneRef'); const rafRef = ref(null); -const idleTimerRef = ref(null); +const idleTimerRef = ref | null>(null); const userActiveRef = ref(false); const simPosRef = ref<{ x: number; y: number }>({ x: 0, y: 0 }); const simTargetRef = ref<{ x: number; y: number }>({ x: 0, y: 0 }); diff --git a/src/content/Animations/PixelTrail/PixelTrail.vue b/src/content/Animations/PixelTrail/PixelTrail.vue index 6fead33..790bdcf 100644 --- a/src/content/Animations/PixelTrail/PixelTrail.vue +++ b/src/content/Animations/PixelTrail/PixelTrail.vue @@ -399,12 +399,7 @@ watch( - + diff --git a/src/content/Animations/StickerPeel/StickerPeel.vue b/src/content/Animations/StickerPeel/StickerPeel.vue index 09bffa0..ea56a7f 100644 --- a/src/content/Animations/StickerPeel/StickerPeel.vue +++ b/src/content/Animations/StickerPeel/StickerPeel.vue @@ -1,6 +1,6 @@