|
|
@ -1,14 +1,8 @@ |
|
|
|
import React, { useState, useEffect } from 'react' // eslint-disable-line
|
|
|
|
import React, { useState, useEffect } from 'react' // eslint-disable-line
|
|
|
|
import { ElectronPlugin } from '@remixproject/engine-electron' |
|
|
|
import { ElectronPlugin } from '@remixproject/engine-electron' |
|
|
|
import RemixUiXterm from './remix-ui-xterm' |
|
|
|
import RemixUiXterm from './remix-ui-xterm' |
|
|
|
|
|
|
|
import '../css/index.css' |
|
|
|
import { |
|
|
|
import { Tab, Tabs } from 'react-bootstrap' |
|
|
|
ImperativePanelGroupHandle, |
|
|
|
|
|
|
|
Panel, |
|
|
|
|
|
|
|
PanelGroup, |
|
|
|
|
|
|
|
PanelResizeHandle, |
|
|
|
|
|
|
|
} from "react-resizable-panels"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface RemixUiXterminalsProps { |
|
|
|
export interface RemixUiXterminalsProps { |
|
|
|
plugin: ElectronPlugin |
|
|
|
plugin: ElectronPlugin |
|
|
|
} |
|
|
|
} |
|
|
@ -94,11 +88,13 @@ export const RemixUiXterminals = (props: RemixUiXterminalsProps) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (<> |
|
|
|
return (<> |
|
|
|
<button onClick={() => { |
|
|
|
|
|
|
|
|
|
|
|
<button className='btn border' onClick={() => { |
|
|
|
createTerminal() |
|
|
|
createTerminal() |
|
|
|
}}>create terminal</button> |
|
|
|
}}>open terminal</button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className='remix-ui-xterminals-container'> |
|
|
|
{terminals.map((xtermState) => { |
|
|
|
{terminals.map((xtermState) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div key={xtermState.pid} data-id={`remixUIXT${xtermState.pid}`}> |
|
|
|
<div key={xtermState.pid} data-id={`remixUIXT${xtermState.pid}`}> |
|
|
@ -106,6 +102,9 @@ export const RemixUiXterminals = (props: RemixUiXterminalsProps) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|
})} |
|
|
|
})} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</>) |
|
|
|
</>) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|