This commit is contained in:
@ -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 */}
|
||||
|
Reference in New Issue
Block a user