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
c32e1b20
Commit
c32e1b20
authored
Sep 03, 2017
by
ninabreznik
Committed by
yann300
Sep 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix table position and colors
parent
7ede5d1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
24 deletions
+26
-24
txLogger.js
src/app/execution/txLogger.js
+26
-24
No files found.
src/app/execution/txLogger.js
View file @
c32e1b20
...
@@ -19,21 +19,19 @@ var css = csjs`
...
@@ -19,21 +19,19 @@ var css = csjs`
align-items: baseline;
align-items: baseline;
}
}
.txTable, .tr, .td {
.txTable, .tr, .td {
border: 1px solid black;
border: 1px solid
${
styles
.
colors
.
orange
}
;
background-color:
${
styles
.
colors
.
veryLightGrey
}
;
border-collapse: collapse;
border-collapse: collapse;
font-size: 10px;
font-size: 10px;
color: grey;
color:
${
styles
.
colors
.
grey
}
;
}
.txTable {
width: 35%;
}
}
#txTable {
#txTable {
width:
20
0px;
width:
45
0px;
margin-
left: 2
0px;
margin-
top: 1
0px;
align-self: center;
align-self: center;
}
}
.tr, .td {
.tr, .td {
padding:
3
px;
padding:
4
px;
}
}
.buttons {
.buttons {
display: flex;
display: flex;
...
@@ -108,6 +106,7 @@ function log (self, tx, api) {
...
@@ -108,6 +106,7 @@ function log (self, tx, api) {
function
renderKnownTransaction
(
self
,
data
)
{
function
renderKnownTransaction
(
self
,
data
)
{
var
from
=
helper
.
shortenAddress
(
data
.
tx
.
from
)
var
from
=
helper
.
shortenAddress
(
data
.
tx
.
from
)
var
to
=
''
var
to
=
''
if
(
data
.
tx
.
blockHash
)
{
if
(
data
.
tx
.
blockHash
)
{
to
=
helper
.
shortenAddress
(
data
.
tx
.
to
)
to
=
helper
.
shortenAddress
(
data
.
tx
.
to
)
}
else
if
(
data
.
tx
.
hash
)
{
// call (constructor of function call)
}
else
if
(
data
.
tx
.
hash
)
{
// call (constructor of function call)
...
@@ -122,20 +121,22 @@ function renderKnownTransaction (self, data) {
...
@@ -122,20 +121,22 @@ function renderKnownTransaction (self, data) {
from
=
from
+
' '
+
name
+
logs
from
=
from
+
' '
+
name
+
logs
}
}
}
}
function
debug
()
{
function
debug
()
{
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
])
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
])
}
}
var
tx
=
yo
`
var
tx
=
yo
`
<span class=
${
css
.
log
}
id="tx
${
data
.
tx
.
hash
}
">
<span class=
${
css
.
container
}
id="tx
${
data
.
tx
.
hash
}
">
${
context
(
self
,
data
.
tx
)}
,
${
data
.
resolvedData
.
contractName
}
.
${
data
.
resolvedData
.
fn
}
,
${
data
.
logs
.
length
}
logs
<div class="
${
css
.
log
}
">
<div class=
${
css
.
buttons
}
>
${
context
(
self
,
data
.
tx
)}
,
${
data
.
resolvedData
.
contractName
}
.
${
data
.
resolvedData
.
fn
}
,
${
data
.
logs
.
length
}
logs
<button class=
${
css
.
details
}
onclick=
${
e
=>
detail
(
e
,
tx
)}
>Details</button>
<div class=
${
css
.
buttons
}
>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
<button class=
${
css
.
details
}
onclick=
${
detail
}
>Details</button>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
</div>
</div>
</div>
</span>
</span>
`
`
function
detail
(
e
,
container
)
{
function
detail
()
{
var
el
=
container
var
table
=
yo
`
var
table
=
yo
`
<table class="
${
css
.
txTable
}
" id="txTable">
<table class="
${
css
.
txTable
}
" id="txTable">
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
...
@@ -160,7 +161,7 @@ function renderKnownTransaction (self, data) {
...
@@ -160,7 +161,7 @@ function renderKnownTransaction (self, data) {
</tr class="
${
css
.
tr
}
">
</tr class="
${
css
.
tr
}
">
</table>
</table>
`
`
el
.
appendChild
(
table
)
tx
.
appendChild
(
table
)
}
}
return
tx
return
tx
}
}
...
@@ -173,16 +174,17 @@ function renderUnknownTransaction (self, data) {
...
@@ -173,16 +174,17 @@ function renderUnknownTransaction (self, data) {
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
])
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
])
}
}
var
tx
=
yo
`
var
tx
=
yo
`
<span class=
${
css
.
log
}
id="tx
${
data
.
tx
.
hash
}
">
<span class=
${
css
.
container
}
id="tx
${
data
.
tx
.
hash
}
">
${
context
(
self
,
data
.
tx
)}
<div class="
${
css
.
log
}
">
<div class=
${
css
.
buttons
}
>
${
context
(
self
,
data
.
tx
)}
<button class=
${
css
.
details
}
onclick=
${
e
=>
detail
(
e
,
tx
)}
>Details</button>
<div class=
${
css
.
buttons
}
>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
<button class=
${
css
.
details
}
onclick=
${
detail
}
>Details</button>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
</div>
</div>
</div>
</span>
</span>
`
`
function
detail
(
e
,
container
)
{
function
detail
()
{
var
el
=
container
var
table
=
yo
`
var
table
=
yo
`
<table class="
${
css
.
txTable
}
" id="txTable">
<table class="
${
css
.
txTable
}
" id="txTable">
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
...
@@ -207,7 +209,7 @@ function renderUnknownTransaction (self, data) {
...
@@ -207,7 +209,7 @@ function renderUnknownTransaction (self, data) {
</tr class="
${
css
.
tr
}
">
</tr class="
${
css
.
tr
}
">
</table>
</table>
`
`
el
.
appendChild
(
table
)
tx
.
appendChild
(
table
)
}
}
return
tx
return
tx
}
}
...
...
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