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
dd6a7a85
Commit
dd6a7a85
authored
Sep 04, 2017
by
yann300
Committed by
GitHub
Sep 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #743 from ethereum/modal
shortened strings and some text fixes for title of each key in details
parents
4dd7f3f5
405994af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
compile-tab.js
src/app/tabs/compile-tab.js
+18
-10
No files found.
src/app/tabs/compile-tab.js
View file @
dd6a7a85
...
@@ -358,9 +358,9 @@ function compileTab (container, appAPI, appEvents, opts) {
...
@@ -358,9 +358,9 @@ function compileTab (container, appAPI, appEvents, opts) {
function
insertValue
(
details
,
x
)
{
function
insertValue
(
details
,
x
)
{
var
value
=
yo
`<pre class="
${
css
.
value
}
"></pre>`
var
value
=
yo
`<pre class="
${
css
.
value
}
"></pre>`
var
node
var
node
if
(
x
===
'bytecode'
||
x
===
'metadataHash'
||
x
===
'swarmLocation'
||
x
===
'Runtime Bytecode'
||
x
===
'Opcodes'
||
x
===
'name'
)
{
if
(
x
===
'bytecode'
||
x
===
'metadataHash'
||
x
===
'swarmLocation'
||
x
===
'Runtime Bytecode'
||
x
===
'Opcodes'
)
{
node
=
yo
`<div>
${
details
[
x
]}
</div>`
node
=
yo
`<div>
${
details
[
x
]
.
slice
(
0
,
60
)
+
'...'
}
</div>`
}
else
if
(
x
===
'web3Deploy'
)
{
}
else
if
(
x
===
'web3Deploy'
||
x
===
'name'
)
{
node
=
yo
`<pre>
${
details
[
x
]}
</pre>`
node
=
yo
`<pre>
${
details
[
x
]}
</pre>`
}
else
if
(
x
===
'interface'
||
x
===
'metadata'
)
{
}
else
if
(
x
===
'interface'
||
x
===
'metadata'
)
{
var
treeView
=
new
TreeView
({
var
treeView
=
new
TreeView
({
...
@@ -383,11 +383,19 @@ function compileTab (container, appAPI, appEvents, opts) {
...
@@ -383,11 +383,19 @@ function compileTab (container, appAPI, appEvents, opts) {
return
ret
return
ret
}
}
})
})
node
=
yo
`<div>
${
treeView
.
render
(
JSON
.
parse
(
details
[
x
]))}
</div>`
if
(
details
[
x
]
!==
''
)
{
try
{
node
=
yo
`<div>
${
treeView
.
render
(
JSON
.
parse
(
details
[
x
]))}
</div>`
// catch in case the parsing fails.
}
catch
(
e
)
{
node
=
yo
`<div>Unable to display "
${
x
}
":
${
e
.
message
}
</div>`
}
}
else
{
node
=
yo
`<div> - </div>`
}
}
else
{
}
else
{
node
=
yo
`<div>
${
JSON
.
stringify
(
details
[
x
],
null
,
4
)}
</div>`
node
=
yo
`<div>
${
JSON
.
stringify
(
details
[
x
],
null
,
4
)}
</div>`
}
}
value
.
appendChild
(
node
)
if
(
node
)
value
.
appendChild
(
node
)
return
value
return
value
}
}
...
@@ -412,13 +420,13 @@ function detailsHelpSection () {
...
@@ -412,13 +420,13 @@ function detailsHelpSection () {
return
{
return
{
'Assembly'
:
'Assembly opcodes describing the contract including corresponding solidity source code'
,
'Assembly'
:
'Assembly opcodes describing the contract including corresponding solidity source code'
,
'Opcodes'
:
'Assembly opcodes describing the contract'
,
'Opcodes'
:
'Assembly opcodes describing the contract'
,
'Runtime Bytecode'
:
'Bytecode
actually store in the state and
executed during normal contract call'
,
'Runtime Bytecode'
:
'Bytecode
storing the state and being
executed during normal contract call'
,
'bytecode'
:
'Bytecode executed during contract creation'
,
'bytecode'
:
'Bytecode
being
executed during contract creation'
,
'functionHashes'
:
'List of declared function and their corresonding hash'
,
'functionHashes'
:
'List of declared function and their corres
p
onding hash'
,
'gasEstimates'
:
'Gas estimation for each function call'
,
'gasEstimates'
:
'Gas estimation for each function call'
,
'metadata'
:
'Contain all informations related to the compilation'
,
'metadata'
:
'Contain
s
all informations related to the compilation'
,
'metadataHash'
:
'Hash representing all metadata information'
,
'metadataHash'
:
'Hash representing all metadata information'
,
'interface'
:
'ABI:
Describe
all the functions (input/output params, scope, ...)'
,
'interface'
:
'ABI:
describing
all the functions (input/output params, scope, ...)'
,
'name'
:
'Name of the compiled contract'
,
'name'
:
'Name of the compiled contract'
,
'swarmLocation'
:
'Swarm url where all metadata information can be found (contract needs to be published first)'
,
'swarmLocation'
:
'Swarm url where all metadata information can be found (contract needs to be published first)'
,
'web3Deploy'
:
'Copy/paste this code to any JavaScript/Web3 console to deploy this contract'
'web3Deploy'
:
'Copy/paste this code to any JavaScript/Web3 console to deploy this contract'
...
...
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