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
bcf27572
Commit
bcf27572
authored
Aug 30, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix standard
parent
5a31c5cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
compile-tab.js
src/app/tabs/compile-tab.js
+6
-7
No files found.
src/app/tabs/compile-tab.js
View file @
bcf27572
...
...
@@ -347,16 +347,15 @@ function compileTab (container, appAPI, appEvents, opts) {
}
}
function
insertValue
(
details
,
x
)
{
function
insertValue
(
details
,
x
)
{
var
value
=
yo
`<pre class="
${
css
.
value
}
"></pre>`
console
.
log
(
x
)
if
(
x
===
'bytecode'
||
x
===
'metadataHash'
||
x
===
'swarmLocation'
||
x
===
'Runtime Bytecode'
||
x
===
'Opcodes'
)
{
var
node
=
yo
`<div>
${
JSON
.
stringify
((
details
[
x
].
slice
(
1
,
40
)
+
'...'
),
null
,
4
)}
</div>`
value
.
appendChild
(
node
)
var
node
if
(
x
===
'bytecode'
||
x
===
'metadataHash'
||
x
===
'swarmLocation'
||
x
===
'Runtime Bytecode'
||
x
===
'Opcodes'
)
{
node
=
yo
`<div>
${
JSON
.
stringify
((
details
[
x
].
slice
(
1
,
40
)
+
'...'
),
null
,
4
)}
</div>`
}
else
{
var
node
=
yo
`<div>
${
JSON
.
stringify
(
details
[
x
],
null
,
4
)}
</div>`
value
.
appendChild
(
node
)
node
=
yo
`<div>
${
JSON
.
stringify
(
details
[
x
],
null
,
4
)}
</div>`
}
value
.
appendChild
(
node
)
return
value
}
...
...
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