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`
align-items: baseline;
}
.txTable, .tr, .td {
border: 1px solid black;
border: 1px solid
${
styles
.
colors
.
orange
}
;
background-color:
${
styles
.
colors
.
veryLightGrey
}
;
border-collapse: collapse;
font-size: 10px;
color: grey;
}
.txTable {
width: 35%;
color:
${
styles
.
colors
.
grey
}
;
}
#txTable {
width:
20
0px;
margin-
left: 2
0px;
width:
45
0px;
margin-
top: 1
0px;
align-self: center;
}
.tr, .td {
padding:
3
px;
padding:
4
px;
}
.buttons {
display: flex;
...
...
@@ -108,6 +106,7 @@ function log (self, tx, api) {
function
renderKnownTransaction
(
self
,
data
)
{
var
from
=
helper
.
shortenAddress
(
data
.
tx
.
from
)
var
to
=
''
if
(
data
.
tx
.
blockHash
)
{
to
=
helper
.
shortenAddress
(
data
.
tx
.
to
)
}
else
if
(
data
.
tx
.
hash
)
{
// call (constructor of function call)
...
...
@@ -122,20 +121,22 @@ function renderKnownTransaction (self, data) {
from
=
from
+
' '
+
name
+
logs
}
}
function
debug
()
{
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
])
}
var
tx
=
yo
`
<span class=
${
css
.
log
}
id="tx
${
data
.
tx
.
hash
}
">
${
context
(
self
,
data
.
tx
)}
,
${
data
.
resolvedData
.
contractName
}
.
${
data
.
resolvedData
.
fn
}
,
${
data
.
logs
.
length
}
logs
<div class=
${
css
.
buttons
}
>
<button class=
${
css
.
details
}
onclick=
${
e
=>
detail
(
e
,
tx
)}
>Details</button>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
<span class=
${
css
.
container
}
id="tx
${
data
.
tx
.
hash
}
">
<div class="
${
css
.
log
}
">
${
context
(
self
,
data
.
tx
)}
,
${
data
.
resolvedData
.
contractName
}
.
${
data
.
resolvedData
.
fn
}
,
${
data
.
logs
.
length
}
logs
<div class=
${
css
.
buttons
}
>
<button class=
${
css
.
details
}
onclick=
${
detail
}
>Details</button>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
</div>
</div>
</span>
`
function
detail
(
e
,
container
)
{
var
el
=
container
function
detail
()
{
var
table
=
yo
`
<table class="
${
css
.
txTable
}
" id="txTable">
<tr class="
${
css
.
tr
}
">
...
...
@@ -160,7 +161,7 @@ function renderKnownTransaction (self, data) {
</tr class="
${
css
.
tr
}
">
</table>
`
el
.
appendChild
(
table
)
tx
.
appendChild
(
table
)
}
return
tx
}
...
...
@@ -173,16 +174,17 @@ function renderUnknownTransaction (self, data) {
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
])
}
var
tx
=
yo
`
<span class=
${
css
.
log
}
id="tx
${
data
.
tx
.
hash
}
">
${
context
(
self
,
data
.
tx
)}
<div class=
${
css
.
buttons
}
>
<button class=
${
css
.
details
}
onclick=
${
e
=>
detail
(
e
,
tx
)}
>Details</button>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
<span class=
${
css
.
container
}
id="tx
${
data
.
tx
.
hash
}
">
<div class="
${
css
.
log
}
">
${
context
(
self
,
data
.
tx
)}
<div class=
${
css
.
buttons
}
>
<button class=
${
css
.
details
}
onclick=
${
detail
}
>Details</button>
<button class=
${
css
.
debug
}
onclick=
${
debug
}
>Debug</button>
</div>
</div>
</span>
`
function
detail
(
e
,
container
)
{
var
el
=
container
function
detail
()
{
var
table
=
yo
`
<table class="
${
css
.
txTable
}
" id="txTable">
<tr class="
${
css
.
tr
}
">
...
...
@@ -207,7 +209,7 @@ function renderUnknownTransaction (self, data) {
</tr class="
${
css
.
tr
}
">
</table>
`
el
.
appendChild
(
table
)
tx
.
appendChild
(
table
)
}
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