Compare commits

...

2 Commits

View File

@ -137,62 +137,71 @@ export function App() {
enableMenu={true} enableMenu={true}
/> />
<ModalContainer /> <ModalContainer />
<Resizable <div className="h-full">
className={ <div className="h-full flex">
'pointer-events-none h-full flex flex-col flex-1 z-10 my-5 ml-5 pr-1 transition-opacity transition-duration-75 ' + <div className="h-full w-5 z-10 pointer-events-auto"></div>
+paneOpacity <div className="flex flex-col">
} <div className="h-5 z-10 pointer-events-auto"></div>
defaultSize={{ <Resizable
width: '550px', className={
height: 'auto', 'pointer-events-none h-full flex flex-col flex-1 z-10 pr-1 transition-opacity transition-duration-75 ' +
}} +paneOpacity
minWidth={200} }
maxWidth={800} defaultSize={{
minHeight={'auto'} width: '550px',
maxHeight={'auto'} height: 'auto',
handleClasses={{ }}
right: minWidth={200}
'hover:bg-chalkboard-10/50 bg-transparent transition-colors duration-75 transition-ease-out delay-100 ' + maxWidth={800}
(buttonDownInStream || onboardingStatus === 'camera' minHeight={'auto'}
? 'pointer-events-none ' maxHeight={'auto'}
: 'pointer-events-auto'), handleClasses={{
}} right:
> 'hover:bg-chalkboard-10/50 bg-transparent transition-colors duration-75 transition-ease-out delay-100 ' +
<div (buttonDownInStream || onboardingStatus === 'camera'
id="code-pane" ? 'pointer-events-none '
className="h-full flex flex-col justify-between pointer-events-none" : 'pointer-events-auto'),
> }}
<CollapsiblePanel >
title="Code" <div
icon={faCode} id="code-pane"
className="open:!mb-2" className="h-full flex flex-col justify-between pointer-events-none"
open={openPanes.includes('code')} >
menu={<CodeMenu />} <CollapsiblePanel
> title="Code"
<TextEditor theme={editorTheme} /> icon={faCode}
</CollapsiblePanel> className="open:!mb-2"
<section className="flex flex-col"> open={openPanes.includes('code')}
<MemoryPanel menu={<CodeMenu />}
theme={editorTheme} >
open={openPanes.includes('variables')} <TextEditor theme={editorTheme} />
title="Variables" </CollapsiblePanel>
icon={faSquareRootVariable} <section className="flex flex-col">
/> <MemoryPanel
<Logs theme={editorTheme}
theme={editorTheme} open={openPanes.includes('variables')}
open={openPanes.includes('logs')} title="Variables"
title="Logs" icon={faSquareRootVariable}
icon={faCodeCommit} />
/> <Logs
<KCLErrors theme={editorTheme}
theme={editorTheme} open={openPanes.includes('logs')}
open={openPanes.includes('kclErrors')} title="Logs"
title="KCL Errors" icon={faCodeCommit}
iconClassNames={{ icon: 'group-open:text-destroy-30' }} />
/> <KCLErrors
</section> theme={editorTheme}
open={openPanes.includes('kclErrors')}
title="KCL Errors"
iconClassNames={{ icon: 'group-open:text-destroy-30' }}
/>
</section>
</div>
</Resizable>
<div className="h-5 z-10 pointer-events-auto"></div>
</div>
</div> </div>
</Resizable> </div>
<Stream className="absolute inset-0 z-0" /> <Stream className="absolute inset-0 z-0" />
{showDebugPanel && ( {showDebugPanel && (
<DebugPanel <DebugPanel