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
4c7211f2
Commit
4c7211f2
authored
Sep 17, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes on terminal
parent
bf93deeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
terminal.js
apps/remix-ide/src/app/panels/terminal.js
+0
-1
remix-ui-terminal.tsx
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+8
-6
No files found.
apps/remix-ide/src/app/panels/terminal.js
View file @
4c7211f2
...
...
@@ -105,7 +105,6 @@ class Terminal extends Plugin {
}
logHtml
(
html
)
{
// console.log({ html: html.innerText })
this
.
logHtmlResponse
.
push
(
html
.
innerText
)
this
.
renderComponent
()
this
.
resetLogHtml
()
...
...
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
View file @
4c7211f2
...
...
@@ -503,7 +503,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
{
newstate
.
journalBlocks
&&
newstate
.
journalBlocks
.
map
((
x
,
index
)
=>
{
if
(
x
.
name
===
'emptyBlock'
)
{
return
(
<
div
className=
"px-4 block"
data
-
id=
'block
_null
'
key=
{
index
}
>
<
div
className=
"px-4 block"
data
-
id=
'block'
key=
{
index
}
>
<
span
className=
'txLog'
>
<
span
className=
'tx'
><
div
className=
'txItem'
>
[
<
span
className=
'txItemTitle'
>
block:
{
x
.
message
}
-
</
span
>
0
{
'transactions'
}
]
</
div
></
span
></
span
>
</
div
>
...
...
@@ -520,18 +520,20 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
return
x
.
message
.
map
((
msg
,
i
)
=>
{
if
(
typeof
msg
===
'object'
)
{
return
(
<
div
className=
"px-4 block"
data
-
id=
"block
_null
"
key=
{
i
}
><
span
className=
{
x
.
style
}
>
{
msg
.
value
?
parse
(
msg
.
value
)
:
JSON
.
stringify
(
msg
)
}
</
span
></
div
>
<
div
className=
"px-4 block"
data
-
id=
"block"
key=
{
i
}
><
span
className=
{
x
.
style
}
>
{
msg
.
value
?
parse
(
msg
.
value
)
:
JSON
.
stringify
(
msg
)
}
</
span
></
div
>
)
}
else
{
return
(
<
div
className=
"px-4 block"
data
-
id=
"block
_null
"
key=
{
i
}
>
{
msg
?
msg
.
toString
().
replace
(
/,/g
,
''
)
:
msg
}
</
div
>
<
div
className=
"px-4 block"
data
-
id=
"block"
key=
{
i
}
>
{
msg
?
msg
.
toString
().
replace
(
/,/g
,
''
)
:
msg
}
</
div
>
)
}
})
}
else
{
return
(
<
div
className=
"px-4 block"
data
-
id=
"block_null"
key=
{
index
}
>
<
span
className=
{
x
.
style
}
>
{
x
.
message
}
</
span
></
div
>
)
if
(
typeof
x
.
message
!==
'function'
)
{
return
(
<
div
className=
"px-4 block"
data
-
id=
"block"
key=
{
index
}
>
<
span
className=
{
x
.
style
}
>
{
x
.
message
}
</
span
></
div
>
)
}
}
})
}
<
div
ref=
{
messagesEndRef
}
/>
...
...
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