|
|
@ -386,7 +386,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
|
|
|
|
|
|
|
|
const handleAutoComplete = () => ( |
|
|
|
const handleAutoComplete = () => ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
className='remix_ui_terminal_popup position-absolute text-left alert alert-secondary' |
|
|
|
className='remix_ui_terminal_popup bg-light ml-4 p-2 position-absolute text-left ' |
|
|
|
style={{ display: (autoCompletState.showSuggestions && autoCompletState.userInput !== '' && (autoCompletState.userInput.length > 2)) && autoCompletState.data._options.length > 0 ? 'block' : 'none' }} |
|
|
|
style={{ display: (autoCompletState.showSuggestions && autoCompletState.userInput !== '' && (autoCompletState.userInput.length > 2)) && autoCompletState.data._options.length > 0 ? 'block' : 'none' }} |
|
|
|
> |
|
|
|
> |
|
|
|
<div> |
|
|
|
<div> |
|
|
@ -395,7 +395,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
<div |
|
|
|
<div |
|
|
|
key={index} |
|
|
|
key={index} |
|
|
|
data-id="autoCompletePopUpAutoCompleteItem" |
|
|
|
data-id="autoCompletePopUpAutoCompleteItem" |
|
|
|
className={`remix_ui_terminal_autoCompleteItem d-none item ${autoCompletState.data._options[autoCompletState.activeSuggestion] === item ? 'border border-primary ' : ''}`} |
|
|
|
className={`remix_ui_terminal_autoCompleteItem item ${autoCompletState.data._options[autoCompletState.activeSuggestion] === item ? 'border border-primary ' : ''}`} |
|
|
|
onKeyDown={ handleSelect } |
|
|
|
onKeyDown={ handleSelect } |
|
|
|
onClick={() => handleClickSelect(item)} |
|
|
|
onClick={() => handleClickSelect(item)} |
|
|
|
> |
|
|
|
> |
|
|
@ -471,7 +471,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
handleAutoComplete() |
|
|
|
handleAutoComplete() |
|
|
|
} |
|
|
|
} |
|
|
|
<div className="position-relative d-flex flex-column-reverse h-100"> |
|
|
|
<div className="position-relative d-flex flex-column-reverse h-100"> |
|
|
|
<div id='journal' className='remix_ui_terminal_journal pt-3 pb-4 px-2 m-2' data-id='terminalJournal'> |
|
|
|
<div id='journal' className='remix_ui_terminal_journal d-flex flex-column pt-3 pb-4 px-2 m-2 mr-0' data-id='terminalJournal'> |
|
|
|
{!clearConsole && <TerminalWelcomeMessage packageJson={version}/>} |
|
|
|
{!clearConsole && <TerminalWelcomeMessage packageJson={version}/>} |
|
|
|
{newstate.journalBlocks && newstate.journalBlocks.map((x, index) => { |
|
|
|
{newstate.journalBlocks && newstate.journalBlocks.map((x, index) => { |
|
|
|
if (x.name === EMPTY_BLOCK) { |
|
|
|
if (x.name === EMPTY_BLOCK) { |
|
|
@ -554,7 +554,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
<div id="terminalCli" data-id="terminalCli" className="remix_ui_terminal_cli position-absolute w-100" onClick={focusinput}> |
|
|
|
<div id="terminalCli" data-id="terminalCli" className="remix_ui_terminal_cli position-absolute w-100" onClick={focusinput}> |
|
|
|
<span className="remix_ui_terminal_prompt blink mx-1 font-weight-bold text-dark">{'>'}</span> |
|
|
|
<span className="remix_ui_terminal_prompt blink mx-1 font-weight-bold text-dark">{'>'}</span> |
|
|
|
<input |
|
|
|
<input |
|
|
|
className="remix_ui_terminal_input bg-dark ml-3 text-dark text-break border-0" |
|
|
|
className="remix_ui_terminal_input bg-light ml-1 text-dark text-break border-0" |
|
|
|
ref={inputEl} |
|
|
|
ref={inputEl} |
|
|
|
spellCheck="false" |
|
|
|
spellCheck="false" |
|
|
|
contentEditable="true" |
|
|
|
contentEditable="true" |
|
|
|