Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
5a4527b7
Commit
5a4527b7
authored
Sep 21, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing terminal toggle
parent
1446d18f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
remix-ui-terminal.tsx
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+6
-6
No files found.
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
View file @
5a4527b7
...
@@ -37,7 +37,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -37,7 +37,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
[
newstate
,
dispatch
]
=
useReducer
(
registerCommandReducer
,
initialState
)
const
[
newstate
,
dispatch
]
=
useReducer
(
registerCommandReducer
,
initialState
)
const
[
cmdHistory
,
cmdHistoryDispatch
]
=
useReducer
(
addCommandHistoryReducer
,
initialState
)
const
[
cmdHistory
,
cmdHistoryDispatch
]
=
useReducer
(
addCommandHistoryReducer
,
initialState
)
const
[,
scriptRunnerDispatch
]
=
useReducer
(
registerScriptRunnerReducer
,
initialState
)
const
[,
scriptRunnerDispatch
]
=
useReducer
(
registerScriptRunnerReducer
,
initialState
)
const
[,
setIsListeningOnNetwork
]
=
useState
(
false
)
const
[
isListeningOnNetwork
,
setIsListeningOnNetwork
]
=
useState
(
false
)
const
[
clearConsole
,
setClearConsole
]
=
useState
(
false
)
const
[
clearConsole
,
setClearConsole
]
=
useState
(
false
)
const
[
paste
,
setPaste
]
=
useState
(
false
)
const
[
paste
,
setPaste
]
=
useState
(
false
)
const
[
autoCompletState
,
setAutoCompleteState
]
=
useState
({
const
[
autoCompletState
,
setAutoCompleteState
]
=
useState
({
...
@@ -101,7 +101,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -101,7 +101,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
if
(
output
)
scriptRunnerDispatch
({
type
:
'script'
,
payload
:
{
message
:
'5'
}
})
if
(
output
)
scriptRunnerDispatch
({
type
:
'script'
,
payload
:
{
message
:
'5'
}
})
})
})
},
{
activate
:
true
},
dispatch
)
},
{
activate
:
true
},
dispatch
)
},
[
autoCompletState
.
text
])
},
[
isListeningOnNetwork
,
autoCompletState
.
text
])
useEffect
(()
=>
{
useEffect
(()
=>
{
scrollToBottom
()
scrollToBottom
()
...
@@ -178,14 +178,14 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -178,14 +178,14 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
}
}
}
const
handleMinimizeTerminal
=
(
e
vent
)
=>
{
const
handleMinimizeTerminal
=
(
e
)
=>
{
e
vent
.
preventDefault
()
e
.
preventDefault
()
e
vent
.
stopPropagation
()
e
.
stopPropagation
()
if
(
toggleDownUp
===
'fa-angle-double-down'
)
{
if
(
toggleDownUp
===
'fa-angle-double-down'
)
{
setToggleDownUp
(
'fa-angle-double-up'
)
setToggleDownUp
(
'fa-angle-double-up'
)
event
.
trigger
(
'resize'
,
[])
event
.
trigger
(
'resize'
,
[])
}
else
{
}
else
{
const
terminalTopOffset
=
config
.
get
(
'terminal-top-offset'
)
const
terminalTopOffset
=
config
.
config
.
get
(
'terminal-top-offset'
)
event
.
trigger
(
'resize'
,
[
terminalTopOffset
])
event
.
trigger
(
'resize'
,
[
terminalTopOffset
])
setToggleDownUp
(
'fa-angle-double-down'
)
setToggleDownUp
(
'fa-angle-double-down'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment