From 544cbb6b98443d0d17e6249c8d82023308b3f53c Mon Sep 17 00:00:00 2001 From: N1C4T Date: Sat, 10 Jan 2026 20:27:24 +0400 Subject: [PATCH] some minor changes to codebase --- src/app/layout.tsx | 6 +----- src/hooks/useKeyboardNavigation.ts | 6 +----- src/hooks/useLinuxInit.ts | 6 +----- src/lib/generateInstallScript.ts | 5 +---- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index dec2951..4ff1803 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -37,11 +37,7 @@ export const metadata: Metadata = { }, }; -/** - * Inline script that runs before React hydrates. - * Sets the theme immediately to prevent that jarring flash when - * you visit the page at 2am and get blinded by light mode. - */ +// Script to run before React hydrates to prevent theme flash const themeScript = ` (function() { try { diff --git a/src/hooks/useKeyboardNavigation.ts b/src/hooks/useKeyboardNavigation.ts index ca383b6..6f0e2fd 100644 --- a/src/hooks/useKeyboardNavigation.ts +++ b/src/hooks/useKeyboardNavigation.ts @@ -17,11 +17,7 @@ export interface FocusPosition { } -/** - * Vim-style keyboard navigation for the app grid. - * Because hjkl is objectively superior to arrow keys. - * Also supports arrow keys for the normies. - */ +// Vim-style keyboard navigation. Because real devs don't use mice. export function useKeyboardNavigation( navItems: NavItem[][], onToggleCategory: (id: string) => void, diff --git a/src/hooks/useLinuxInit.ts b/src/hooks/useLinuxInit.ts index 0d0e0bc..8f7652c 100644 --- a/src/hooks/useLinuxInit.ts +++ b/src/hooks/useLinuxInit.ts @@ -7,11 +7,7 @@ import { isAurPackage } from '@/lib/aur'; // Re-export for backwards compatibility export { isAurPackage, AUR_PATTERNS, KNOWN_AUR_PACKAGES } from '@/lib/aur'; -/** - * The big hook that runs the whole show. - * Manages distro selection, app selection, localStorage persistence, - * and command generation. If this breaks, everything breaks. - */ +// Everything the app needs to work export interface UseLinuxInitReturn { selectedDistro: DistroId; diff --git a/src/lib/generateInstallScript.ts b/src/lib/generateInstallScript.ts index e84cb53..e951731 100644 --- a/src/lib/generateInstallScript.ts +++ b/src/lib/generateInstallScript.ts @@ -48,10 +48,7 @@ export function generateInstallScript(options: ScriptOptions): string { } } -/** - * Quick one-liner for the clipboard. No frills, just the command. - * For users who know what they're doing and just want to paste. - */ +// Quick one-liner for copy-paste warriors export function generateSimpleCommand(selectedAppIds: Set, distroId: DistroId): string { const packages = getSelectedPackages(selectedAppIds, distroId); if (packages.length === 0) return '# No packages selected';