some minor changes to codebase

This commit is contained in:
N1C4T
2026-01-10 20:27:24 +04:00
parent 1fd23043d0
commit 544cbb6b98
4 changed files with 4 additions and 19 deletions

View File

@@ -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 {

View File

@@ -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,

View File

@@ -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;

View File

@@ -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<string>, distroId: DistroId): string {
const packages = getSelectedPackages(selectedAppIds, distroId);
if (packages.length === 0) return '# No packages selected';