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
fd178df1
Commit
fd178df1
authored
Oct 06, 2015
by
d11e9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-add contract size in bytes
parent
fec3d2ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
universal-dapp.js
libs/universal-dapp.js
+3
-0
universal-dapp.css
stylesheets/universal-dapp.css
+8
-0
No files found.
libs/universal-dapp.js
View file @
fd178df1
...
...
@@ -39,6 +39,9 @@ UniversalDApp.prototype.render = function () {
this
.
getInstanceInterface
(
this
.
contracts
[
c
],
this
.
contracts
[
c
].
address
,
$contractEl
);
}
else
{
var
$title
=
$
(
'<span class="title"/>'
).
text
(
this
.
contracts
[
c
].
name
);
if
(
this
.
contracts
[
c
].
bytecode
)
{
$title
.
append
(
$
(
'<div class="size"/>'
).
text
((
this
.
contracts
[
c
].
bytecode
.
length
/
2
)
+
' bytes'
))
}
$contractEl
.
append
(
$title
).
append
(
this
.
getCreateInterface
(
$contractEl
,
this
.
contracts
[
c
])
);
}
this
.
$el
.
append
(
$contractEl
);
...
...
stylesheets/universal-dapp.css
View file @
fd178df1
...
...
@@ -62,6 +62,14 @@
font-weight
:
bold
;
padding-right
:
2em
;
word-wrap
:
break-word
;
position
:
relative
;
}
.udapp
.title
.size
{
position
:
absolute
;
right
:
2.2em
;
top
:
0.2em
;
font-weight
:
normal
;
}
.udapp
.output
{
...
...
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