-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efa2820
commit d22c017
Showing
9 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function LeftBottom() { | ||
return <p>bottom left</p>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import FileExplorer from "@/components/file-explorer"; | ||
|
||
export default function Left() { | ||
export default function LeftTop() { | ||
return <FileExplorer />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TopBottom from "@/components/top-bottom"; | ||
import { ReactNode } from "react"; | ||
|
||
export default function Left(props: { top: ReactNode; bottom: ReactNode }) { | ||
return <TopBottom {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"use client"; | ||
|
||
import { TerminalContextProvider } from "react-terminal"; | ||
import Cli from "@/components/cli"; | ||
|
||
export default function Bottom() { | ||
return ( | ||
<TerminalContextProvider> | ||
<Cli /> | ||
</TerminalContextProvider> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TopBottom from "@/components/top-bottom"; | ||
import { ReactNode } from "react"; | ||
|
||
export default function Right(props: { top: ReactNode; bottom: ReactNode }) { | ||
return <TopBottom {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { | ||
ResizableHandle, | ||
ResizablePanel, | ||
ResizablePanelGroup, | ||
} from "@/components/ui/resizable"; | ||
import { ReactNode } from "react"; | ||
|
||
export default function TopBottom({ | ||
top, | ||
bottom, | ||
}: { | ||
top: ReactNode; | ||
bottom: ReactNode; | ||
}) { | ||
return ( | ||
<div className="h-[calc(100vh-40px)]"> | ||
<ResizablePanelGroup direction="vertical"> | ||
<ResizablePanel defaultSize={70} className="overflow-y-auto"> | ||
{top} | ||
</ResizablePanel> | ||
<ResizableHandle /> | ||
<ResizablePanel defaultSize={30}>{bottom}</ResizablePanel> | ||
</ResizablePanelGroup> | ||
</div> | ||
); | ||
} |