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
90a27495
Commit
90a27495
authored
May 16, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling
parent
27b3922e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
TxBrowser.js
src/app/debugger/debuggerUI/TxBrowser.js
+5
-11
VmDebugger.js
src/app/debugger/debuggerUI/VmDebugger.js
+2
-0
DropdownPanel.js
src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js
+1
-1
No files found.
src/app/debugger/debuggerUI/TxBrowser.js
View file @
90a27495
...
...
@@ -80,21 +80,13 @@ TxBrowser.prototype.setState = function (state) {
}
}
TxBrowser
.
prototype
.
setTx
=
function
(
blockNumber
,
txNumber
)
{
this
.
blockNumber
=
blockNumber
this
.
txNumber
=
txNumber
if
(
this
.
view
)
{
yo
.
update
(
this
.
view
,
this
.
render
())
}
}
TxBrowser
.
prototype
.
render
=
function
()
{
var
self
=
this
var
view
=
yo
`<div class="
${
css
.
container
}
">
<div class="
${
css
.
txContainer
}
">
<div class="
${
css
.
txinputs
}
p-1 input-group">
<input value=
${
this
.
blockNumber
||
''
}
class="form-control
${
css
.
txinput
}
" onkeyup=
${
function
()
{
self
.
updateBlockN
(
arguments
[
0
])
}
} type='text' placeholder=
${
'Block number'
}
/>
<input value=
${
this
.
txNumber
||
''
}
class="form-control
${
css
.
txinput
}
" id='txinput' onkeyup=
${
function
()
{
self
.
updateTxN
(
arguments
[
0
])
}
} type='text' placeholder=
${
'Transaction index or hash'
}
/>
<input value=
"
${
this
.
blockNumber
||
''
}
"
class="form-control
${
css
.
txinput
}
" onkeyup=
${
function
()
{
self
.
updateBlockN
(
arguments
[
0
])
}
} type='text' placeholder=
${
'Block number'
}
/>
<input value=
"
${
this
.
txNumber
||
''
}
"
class="form-control
${
css
.
txinput
}
" id='txinput' onkeyup=
${
function
()
{
self
.
updateTxN
(
arguments
[
0
])
}
} type='text' placeholder=
${
'Transaction index or hash'
}
/>
</div>
<div class="
${
css
.
txbuttons
}
btn-group p-1">
<button class='btn btn-primary btn-sm
${
css
.
txbutton
}
' id='load' title='
${
this
.
debugging
?
'Stop'
:
'Start'
}
debugging' onclick=
${
function
()
{
self
.
submit
()
}
}>
${
this
.
debugging
?
'Stop'
:
'Start'
}
debugging</button>
...
...
@@ -102,7 +94,9 @@ TxBrowser.prototype.render = function () {
</div>
<span id='error'></span>
</div>`
if
(
this
.
debugging
)
{
view
.
querySelectorAll
(
'input'
).
forEach
(
element
=>
{
element
.
setAttribute
(
'disabled'
,
''
)
})
}
if
(
!
this
.
view
)
{
this
.
view
=
view
}
...
...
src/app/debugger/debuggerUI/VmDebugger.js
View file @
90a27495
...
...
@@ -16,8 +16,10 @@ var DropdownPanel = require('./vmDebugger/DropdownPanel')
var
css
=
csjs
`
.asmCode {
width: 100%;
}
.stepDetail {
width: 100%;
}
.vmheadView {
margin-top:10px;
...
...
src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js
View file @
90a27495
...
...
@@ -121,7 +121,7 @@ DropdownPanel.prototype.render = function (overridestyle, node) {
<div class='message' style='display:none'></div>
</div>`
var
view
=
yo
`
<div class="border
border-primary rounded p-1 m-1
">
<div class="border
rounded p-1 m-1 bg-light
">
<style>
@-moz-keyframes spin {
to { -moz-transform: rotate(359deg); }
...
...
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