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
a31be1fd
Commit
a31be1fd
authored
Feb 03, 2018
by
ninabreznik
Committed by
yann300
Apr 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix styling for the table
parent
174040e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
47 deletions
+26
-47
txLogger.js
src/app/execution/txLogger.js
+26
-47
No files found.
src/app/execution/txLogger.js
View file @
a31be1fd
...
@@ -64,19 +64,8 @@ var css = csjs`
...
@@ -64,19 +64,8 @@ var css = csjs`
.txTable, .tr, .td {
.txTable, .tr, .td {
border-collapse: collapse;
border-collapse: collapse;
font-size: 10px;
font-size: 10px;
}
color:
${
styles
.
terminal
.
text_Primary
}
;
.tr {
border: 1px solid
${
styles
.
terminal
.
text_Secondary
}
;
width: 70%;
border-bottom: 1px solid white;
display: flex;
align-items: center;
}
.td:first-child {
min-width: 30%;
width: 30%;
display: flex;
align-items: baseline;
font-weight: bold;
}
}
#txTable {
#txTable {
margin-top: 1%;
margin-top: 1%;
...
@@ -85,6 +74,7 @@ var css = csjs`
...
@@ -85,6 +74,7 @@ var css = csjs`
width: 85%;
width: 85%;
}
}
.tr, .td {
.tr, .td {
padding: 4px;
vertical-align: baseline;
vertical-align: baseline;
}
}
.td:first-child {
.td:first-child {
...
@@ -394,10 +384,9 @@ function createTable (opts) {
...
@@ -394,10 +384,9 @@ function createTable (opts) {
var
contractAddress
=
yo
`
var
contractAddress
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> contractAddress
<td class="
${
css
.
td
}
"> contractAddress </td>
${
copyToClipboard
(()
=>
opts
.
contractAddress
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
contractAddress
}
<td class="
${
css
.
td
}
">
${
opts
.
contractAddress
}
${
copyToClipboard
(()
=>
opts
.
contractAddress
)}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -405,10 +394,9 @@ function createTable (opts) {
...
@@ -405,10 +394,9 @@ function createTable (opts) {
var
from
=
yo
`
var
from
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
${
css
.
tableTitle
}
"> from
<td class="
${
css
.
td
}
${
css
.
tableTitle
}
"> from </td>
${
copyToClipboard
(()
=>
opts
.
from
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
from
}
<td class="
${
css
.
td
}
">
${
opts
.
from
}
${
copyToClipboard
(()
=>
opts
.
from
)}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -423,10 +411,9 @@ function createTable (opts) {
...
@@ -423,10 +411,9 @@ function createTable (opts) {
}
}
var
to
=
yo
`
var
to
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> to
<td class="
${
css
.
td
}
"> to </td>
${
copyToClipboard
(()
=>
data
.
to
?
data
.
to
:
toHash
)}
</td>
<td class="
${
css
.
td
}
">
${
toHash
}
<td class="
${
css
.
td
}
">
${
toHash
}
${
copyToClipboard
(()
=>
data
.
to
?
data
.
to
:
toHash
)}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -434,10 +421,9 @@ function createTable (opts) {
...
@@ -434,10 +421,9 @@ function createTable (opts) {
var
gas
=
yo
`
var
gas
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> gas
<td class="
${
css
.
td
}
"> gas </td>
${
copyToClipboard
(()
=>
opts
.
gas
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
gas
}
gas
<td class="
${
css
.
td
}
">
${
opts
.
gas
}
gas
${
copyToClipboard
(()
=>
opts
.
gas
)}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -450,10 +436,9 @@ function createTable (opts) {
...
@@ -450,10 +436,9 @@ function createTable (opts) {
if
(
opts
.
transactionCost
)
{
if
(
opts
.
transactionCost
)
{
table
.
appendChild
(
yo
`
table
.
appendChild
(
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> transaction cost
<td class="
${
css
.
td
}
"> transaction cost </td>
${
copyToClipboard
(()
=>
opts
.
transactionCost
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
transactionCost
}
gas
${
callWarning
}
<td class="
${
css
.
td
}
">
${
opts
.
transactionCost
}
gas
${
callWarning
}
${
copyToClipboard
(()
=>
opts
.
transactionCost
)}
</td>
</td>
</tr>`
)
</tr>`
)
}
}
...
@@ -461,20 +446,18 @@ function createTable (opts) {
...
@@ -461,20 +446,18 @@ function createTable (opts) {
if
(
opts
.
executionCost
)
{
if
(
opts
.
executionCost
)
{
table
.
appendChild
(
yo
`
table
.
appendChild
(
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> execution cost
<td class="
${
css
.
td
}
"> execution cost </td>
${
copyToClipboard
(()
=>
opts
.
executionCost
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
executionCost
}
gas
${
callWarning
}
<td class="
${
css
.
td
}
">
${
opts
.
executionCost
}
gas
${
callWarning
}
${
copyToClipboard
(()
=>
opts
.
executionCost
)}
</td>
</td>
</tr>`
)
</tr>`
)
}
}
var
hash
=
yo
`
var
hash
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> hash
<td class="
${
css
.
td
}
"> hash </td>
${
copyToClipboard
(()
=>
opts
.
hash
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
hash
}
<td class="
${
css
.
td
}
">
${
opts
.
hash
}
${
copyToClipboard
(()
=>
opts
.
hash
)}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -482,10 +465,9 @@ function createTable (opts) {
...
@@ -482,10 +465,9 @@ function createTable (opts) {
var
input
=
yo
`
var
input
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> input
<td class="
${
css
.
td
}
"> input </td>
${
copyToClipboard
(()
=>
opts
.
input
)}
</td>
<td class="
${
css
.
td
}
">
${
opts
.
input
}
<td class="
${
css
.
td
}
">
${
opts
.
input
}
${
copyToClipboard
(()
=>
opts
.
input
)}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -494,10 +476,9 @@ function createTable (opts) {
...
@@ -494,10 +476,9 @@ function createTable (opts) {
if
(
opts
[
'decoded input'
])
{
if
(
opts
[
'decoded input'
])
{
var
inputDecoded
=
yo
`
var
inputDecoded
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> decoded input
<td class="
${
css
.
td
}
"> decoded input </td>
${
copyToClipboard
(
opts
[
'decoded input'
])}
</td>
<td class="
${
css
.
td
}
">
${
opts
[
'decoded input'
]}
<td class="
${
css
.
td
}
">
${
opts
[
'decoded input'
]}
${
copyToClipboard
(
opts
[
'decoded input'
])}
</td>
</td>
</tr>`
</tr>`
table
.
appendChild
(
inputDecoded
)
table
.
appendChild
(
inputDecoded
)
...
@@ -518,12 +499,11 @@ function createTable (opts) {
...
@@ -518,12 +499,11 @@ function createTable (opts) {
}
}
var
logs
=
yo
`
var
logs
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> logs
<td class="
${
css
.
td
}
"> logs </td>
${
copyToClipboard
(()
=>
JSON
.
stringify
(
stringified
,
null
,
'
\
t'
))}
${
copyToClipboard
(()
=>
JSON
.
stringify
(
opts
.
logs
.
raw
||
'0'
))}
</td>
<td class="
${
css
.
td
}
" id="logs">
<td class="
${
css
.
td
}
" id="logs">
${
JSON
.
stringify
(
stringified
,
null
,
'
\
t'
)}
${
JSON
.
stringify
(
stringified
,
null
,
'
\
t'
)}
${
copyToClipboard
(()
=>
JSON
.
stringify
(
stringified
,
null
,
'
\
t'
))}
${
copyToClipboard
(()
=>
JSON
.
stringify
(
opts
.
logs
.
raw
||
'0'
))}
</td>
</td>
</tr>
</tr>
`
`
...
@@ -532,10 +512,9 @@ function createTable (opts) {
...
@@ -532,10 +512,9 @@ function createTable (opts) {
var
val
=
opts
.
val
!=
null
?
typeConversion
.
toInt
(
opts
.
val
)
:
0
var
val
=
opts
.
val
!=
null
?
typeConversion
.
toInt
(
opts
.
val
)
:
0
val
=
yo
`
val
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> value
<td class="
${
css
.
td
}
"> value </td>
${
copyToClipboard
(()
=>
`
${
val
}
wei`
)}
</td>
<td class="
${
css
.
td
}
">
${
val
}
wei
<td class="
${
css
.
td
}
">
${
val
}
wei
${
copyToClipboard
(()
=>
`
${
val
}
wei`
)}
</td>
</td>
</tr>
</tr>
`
`
...
...
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