show terminal

pull/1857/head
filip mertens 3 years ago
parent 350fac6659
commit 24ef3e951e
  1. 2
      apps/remix-ide/src/remixAppManager.js
  2. 4
      libs/remix-ui/panel/src/lib/main/main-panel.tsx

@ -10,7 +10,7 @@ const _paq = window._paq = window._paq || []
const requiredModules = [ // services + layout views + system views const requiredModules = [ // services + layout views + system views
'manager', 'config', 'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'editor', 'offsetToLineColumnConverter', 'network', 'theme', 'manager', 'config', 'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'editor', 'offsetToLineColumnConverter', 'network', 'theme',
'fileManager', 'contentImport', 'blockchain', 'web3Provider', 'scriptRunner', 'fetchAndCompile', 'mainPanel', 'hiddenPanel', 'sidePanel', 'menuicons', 'fileManager', 'contentImport', 'blockchain', 'web3Provider', 'scriptRunner', 'fetchAndCompile', 'mainPanel', 'hiddenPanel', 'sidePanel', 'menuicons',
'filePanel', 'terminal', 'settings', 'pluginManager', 'tabs', 'udapp', 'dGitProvider', 'solidity-logic', 'walkthrough'] 'filePanel', 'terminal', 'settings', 'pluginManager', 'tabs', 'udapp', 'dGitProvider', 'solidity-logic', 'walkthrough', 'layout']
const dependentModules = ['git', 'hardhat', 'slither'] // module which shouldn't be manually activated (e.g git is activated by remixd) const dependentModules = ['git', 'hardhat', 'slither'] // module which shouldn't be manually activated (e.g git is activated by remixd)

@ -16,6 +16,7 @@ const RemixUIMainPanel = () => {
const refs = [tabsRef, editorRef, mainPanelRef, terminalRef] const refs = [tabsRef, editorRef, mainPanelRef, terminalRef]
const _adjustLayout = (delta: number) => { const _adjustLayout = (delta: number) => {
if(!delta) return
const limitDown = 32 const limitDown = 32
const containerHeight = window.innerHeight const containerHeight = window.innerHeight
const tmp = delta - limitDown const tmp = delta - limitDown
@ -64,9 +65,10 @@ const RemixUIMainPanel = () => {
return ( return (
<div className="mainview"> <div className="mainview">
{Object.values(plugins).map((pluginRecord, i) => { {Object.values(plugins).map((pluginRecord, i) => {
console.log(pluginRecord)
return ( return (
<> <>
{(pluginRecord.profile.name === 'terminal') ? <DragBar minHeight={32} hidden={false} setHideStatus={()=>{}} refObject={terminalRef}></DragBar>:<></>} {(pluginRecord.profile.name === 'terminal') ? <DragBar key={'dragbar'} minHeight={32} hidden={false} setHideStatus={()=>{}} refObject={terminalRef}></DragBar>:<></>}
<RemixUIPanelPlugin <RemixUIPanelPlugin
ref={refs[i]} ref={refs[i]}
key={pluginRecord.profile.name} key={pluginRecord.profile.name}

Loading…
Cancel
Save