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
6445a7ac
Commit
6445a7ac
authored
Apr 29, 2018
by
ninabreznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix open/close for tx logs in terminal from network
parent
a8008743
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
txLogger.js
src/app/execution/txLogger.js
+9
-5
No files found.
src/app/execution/txLogger.js
View file @
6445a7ac
...
@@ -237,8 +237,8 @@ function renderUnknownTransaction (self, data) {
...
@@ -237,8 +237,8 @@ function renderUnknownTransaction (self, data) {
var
obj
=
{
from
,
to
}
var
obj
=
{
from
,
to
}
var
tx
=
yo
`
var
tx
=
yo
`
<span id="tx
${
data
.
tx
.
hash
}
">
<span id="tx
${
data
.
tx
.
hash
}
">
<i class="
${
css
.
caret
}
fa fa-caret-right"></i>
<div class="
${
css
.
log
}
" onclick=
${
e
=>
txDetails
(
e
,
tx
,
data
,
obj
)}
>
<div class="
${
css
.
log
}
" onclick=
${
e
=>
txDetails
(
e
,
tx
,
data
,
obj
)}
>
<i class="
${
css
.
caret
}
fa fa-caret-right"></i>
${
context
(
self
,
{
from
,
to
,
data
})}
${
context
(
self
,
{
from
,
to
,
data
})}
<div class=
${
css
.
buttons
}
>
<div class=
${
css
.
buttons
}
>
<div class=
${
css
.
debug
}
onclick=
${(
e
)
=>
debug
(
e
,
data
,
self
)}
>Debug</div>
<div class=
${
css
.
debug
}
onclick=
${(
e
)
=>
debug
(
e
,
data
,
self
)}
>Debug</div>
...
@@ -264,7 +264,7 @@ function context (self, opts) {
...
@@ -264,7 +264,7 @@ function context (self, opts) {
var
val
=
data
.
tx
.
value
var
val
=
data
.
tx
.
value
var
hash
=
data
.
tx
.
hash
?
helper
.
shortenHexData
(
data
.
tx
.
hash
)
:
''
var
hash
=
data
.
tx
.
hash
?
helper
.
shortenHexData
(
data
.
tx
.
hash
)
:
''
var
input
=
data
.
tx
.
input
?
helper
.
shortenHexData
(
data
.
tx
.
input
)
:
''
var
input
=
data
.
tx
.
input
?
helper
.
shortenHexData
(
data
.
tx
.
input
)
:
''
var
logs
=
data
.
logs
&&
data
.
logs
.
decoded
?
data
.
logs
.
decoded
.
length
:
0
var
logs
=
data
.
logs
&&
data
.
logs
.
decoded
&&
data
.
logs
.
decoded
.
length
?
data
.
logs
.
decoded
.
length
:
0
var
block
=
data
.
tx
.
blockNumber
||
''
var
block
=
data
.
tx
.
blockNumber
||
''
var
i
=
data
.
tx
.
transactionIndex
var
i
=
data
.
tx
.
transactionIndex
var
value
=
val
?
typeConversion
.
toInt
(
val
)
:
0
var
value
=
val
?
typeConversion
.
toInt
(
val
)
:
0
...
@@ -299,7 +299,6 @@ function context (self, opts) {
...
@@ -299,7 +299,6 @@ function context (self, opts) {
hash
=
helper
.
shortenHexData
(
data
.
tx
.
blockHash
)
hash
=
helper
.
shortenHexData
(
data
.
tx
.
blockHash
)
return
yo
`
return
yo
`
<div>
<div>
<i class="
${
css
.
caret
}
fa fa-caret-right"></i>
<span class=
${
css
.
txLog
}
>
<span class=
${
css
.
txLog
}
>
<span class='
${
css
.
tx
}
'>[block:
${
block
}
txIndex:
${
i
}
]</span>
<span class='
${
css
.
tx
}
'>[block:
${
block
}
txIndex:
${
i
}
]</span>
<div class=
${
css
.
txItem
}
><span class=
${
css
.
txItemTitle
}
>from:</span>
${
from
}
</div>
<div class=
${
css
.
txItem
}
><span class=
${
css
.
txItemTitle
}
>from:</span>
${
from
}
</div>
...
@@ -318,8 +317,13 @@ function txDetails (e, tx, data, obj) {
...
@@ -318,8 +317,13 @@ function txDetails (e, tx, data, obj) {
var
table
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
var
table
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
var
from
=
obj
.
from
var
from
=
obj
.
from
var
to
=
obj
.
to
var
to
=
obj
.
to
var
log
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^='log']`
)
var
log
=
e
.
currentTarget
var
caret
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^='caret']`
)
for
(
var
i
=
0
;
i
<
log
.
children
.
length
;
i
++
)
{
if
(
~
log
.
children
[
i
].
className
.
indexOf
(
'caret'
))
{
var
caret
=
log
.
children
[
i
]
break
}
}
var
caretDown
=
yo
`<i class="
${
css
.
caret
}
fa fa-caret-down"></i>`
var
caretDown
=
yo
`<i class="
${
css
.
caret
}
fa fa-caret-down"></i>`
var
caretRight
=
yo
`<i class="
${
css
.
caret
}
fa fa-caret-right"></i>`
var
caretRight
=
yo
`<i class="
${
css
.
caret
}
fa fa-caret-right"></i>`
if
(
table
&&
table
.
parentNode
)
{
if
(
table
&&
table
.
parentNode
)
{
...
...
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