mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-18 22:56:33 +00:00
feat(playground): add EditorPanel component to layout for enhanced functionality
This commit is contained in:
parent
41eca2305c
commit
3ba5171564
@ -7,6 +7,7 @@ import Tools from "./components/tools";
|
|||||||
import Banner from "./components/banner";
|
import Banner from "./components/banner";
|
||||||
import Terminal from "./components/terminal";
|
import Terminal from "./components/terminal";
|
||||||
import Chat from "./components/chat";
|
import Chat from "./components/chat";
|
||||||
|
import EditorPanel from "./layout/editor-panel";
|
||||||
|
|
||||||
export default function PlaygroundLayout() {
|
export default function PlaygroundLayout() {
|
||||||
return (
|
return (
|
||||||
@ -21,7 +22,9 @@ export default function PlaygroundLayout() {
|
|||||||
<ResizablePanelGroup direction="vertical">
|
<ResizablePanelGroup direction="vertical">
|
||||||
<ResizablePanel defaultSize={75}>
|
<ResizablePanel defaultSize={75}>
|
||||||
<ResizablePanelGroup direction="horizontal">
|
<ResizablePanelGroup direction="horizontal">
|
||||||
<ResizablePanel defaultSize={75}>One</ResizablePanel>
|
<ResizablePanel defaultSize={75}>
|
||||||
|
<EditorPanel />
|
||||||
|
</ResizablePanel>
|
||||||
<ResizableHandle className="bg-[#3e4452]" />
|
<ResizableHandle className="bg-[#3e4452]" />
|
||||||
<ResizablePanel defaultSize={25}>
|
<ResizablePanel defaultSize={25}>
|
||||||
<Chat />
|
<Chat />
|
||||||
|
3
src/app/playground/layout/editor-panel.tsx
Normal file
3
src/app/playground/layout/editor-panel.tsx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export default function EditorPanel() {
|
||||||
|
return <iframe src="http://192.168.2.110:5173" className="w-full h-full" />;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user