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
b3f54604
Commit
b3f54604
authored
Oct 30, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fixes
parent
80ea12bc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
VmDebugger.js
src/app/tabs/debugger/debuggerUI/VmDebugger.js
+4
-4
MemoryPanel.js
src/app/tabs/debugger/debuggerUI/vmDebugger/MemoryPanel.js
+1
-1
StackPanel.js
src/app/tabs/debugger/debuggerUI/vmDebugger/StackPanel.js
+1
-1
SolidityTypeFormatter.js
...gger/debuggerUI/vmDebugger/utils/SolidityTypeFormatter.js
+4
-4
No files found.
src/app/tabs/debugger/debuggerUI/VmDebugger.js
View file @
b3f54604
...
...
@@ -123,8 +123,8 @@ function VmDebugger (vmDebuggerLogic) {
}
VmDebugger
.
prototype
.
renderHead
=
function
()
{
var
headView
=
yo
`
<div id=
'vmheadView'
class="
${
css
.
vmheadView
}
container">
const
headView
=
yo
`
<div id=
"vmheadView"
class="
${
css
.
vmheadView
}
container">
<div class="row" >
<div class="
${
css
.
asmCode
}
column">
${
this
.
asmCode
.
render
()}
</div>
<div class="
${
css
.
stepDetail
}
column">
${
this
.
stepDetail
.
render
()}
</div>
...
...
@@ -143,8 +143,8 @@ VmDebugger.prototype.remove = function () {
}
VmDebugger
.
prototype
.
render
=
function
()
{
var
view
=
yo
`
<div id=
'vmdebugger'
>
const
view
=
yo
`
<div id=
"vmdebugger"
>
<div>
${
this
.
solidityLocals
.
render
()}
${
this
.
solidityState
.
render
()}
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/MemoryPanel.js
View file @
b3f54604
...
...
@@ -15,7 +15,7 @@ MemoryPanel.prototype.update = function (calldata) {
}
MemoryPanel
.
prototype
.
render
=
function
()
{
return
yo
`<div id=
'memorypanel' class='text-monospace small'
>
${
this
.
basicPanel
.
render
()}
</div>`
return
yo
`<div id=
"memorypanel" class="text-monospace small"
>
${
this
.
basicPanel
.
render
()}
</div>`
}
module
.
exports
=
MemoryPanel
src/app/tabs/debugger/debuggerUI/vmDebugger/StackPanel.js
View file @
b3f54604
...
...
@@ -11,7 +11,7 @@ StackPanel.prototype.update = function (calldata) {
}
StackPanel
.
prototype
.
render
=
function
()
{
return
yo
`<div id=
'stackpanel' class='text-monospace small'
>
${
this
.
basicPanel
.
render
()}
</div>`
return
yo
`<div id=
"stackpanel" class="text-monospace small"
>
${
this
.
basicPanel
.
render
()}
</div>`
}
module
.
exports
=
StackPanel
src/app/tabs/debugger/debuggerUI/vmDebugger/utils/SolidityTypeFormatter.js
View file @
b3f54604
...
...
@@ -7,12 +7,12 @@ module.exports = {
}
function
formatSelf
(
key
,
data
)
{
var
style
=
fontColor
(
data
)
var
keyStyle
=
data
.
isProperty
?
'color: var(--info)'
:
''
const
style
=
fontColor
(
data
)
const
keyStyle
=
data
.
isProperty
?
'color: var(--info)'
:
''
if
(
data
.
type
===
'string'
)
{
data
.
self
=
JSON
.
stringify
(
data
.
self
)
}
return
yo
`<label style='
${
keyStyle
}
;white-space:pre-wrap;'>
${
' '
+
key
}
:<label style=
${
style
}
>
${
' '
+
data
.
self
}
</label><label style='font-style:italic'>
${
data
.
isProperty
||
!
data
.
type
?
''
:
' '
+
data
.
type
}
</label></label>`
return
yo
`<label style=
${
keyStyle
}
>
${
key
}
: <label style=
${
style
}
>
${
data
.
self
}
</label><label style='font-style:italic'>
${
data
.
isProperty
||
!
data
.
type
?
''
:
' '
+
data
.
type
}
</label></label>`
}
function
extractData
(
item
,
parent
,
key
)
{
...
...
@@ -55,7 +55,7 @@ function extractData (item, parent, key) {
}
function
fontColor
(
data
)
{
var
color
=
'var(--primary)'
let
color
=
'var(--primary)'
if
(
data
.
isArray
||
data
.
isStruct
||
data
.
isMapping
)
{
color
=
'var(--info)'
}
else
if
(
...
...
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