mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-17 15:53:24 +02:00
some minor changes to codebase
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user