Fixed spotify
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m26s

This commit is contained in:
2025-06-19 23:34:44 -06:00
parent 7161584dcd
commit 41614a49a8
8 changed files with 413 additions and 282 deletions

View File

@ -1,14 +1,17 @@
import { useState, useEffect, useRef } from "preact/hooks";
import type { JSX } from "preact";
import type { Command } from "../lib/terminal/types";
import { buildFileSystem } from "../lib/terminal/fileSystem";
import { executeCommand, type CommandContext } from "../lib/terminal/commands";
import type { Command } from "../utils/terminal/types";
import { buildFileSystem } from "../utils/terminal/fs";
import {
executeCommand,
type CommandContext,
} from "../utils/terminal/commands";
import {
getCompletions,
formatOutput,
saveCommandToHistory,
loadCommandHistory,
} from "../lib/terminal/utils";
} from "../utils/terminal/utils";
const Terminal = () => {
const [currentPath, setCurrentPath] = useState("/");
@ -145,7 +148,7 @@ const Terminal = () => {
<div
ref={terminalRef}
className={`flex-1 p-4 overflow-y-auto scrollbar-thin scrollbar-thumb-base-300 scrollbar-track-base-100 relative ${
isTrainRunning ? 'opacity-0' : 'opacity-100'
isTrainRunning ? "opacity-0" : "opacity-100"
}`}
onClick={() => !isTrainRunning && inputRef.current?.focus()}
>
@ -198,7 +201,6 @@ const Terminal = () => {
</form>
)}
</div>
</div>
{/* Train animation overlay - positioned over the content area but outside the opacity div */}