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
4aa56918
Commit
4aa56918
authored
Jun 26, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
a6a9df44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
compilerContainer.js
src/app/tabs/compileTab/compilerContainer.js
+2
-2
universal-dapp-ui.js
src/universal-dapp-ui.js
+21
-6
No files found.
src/app/tabs/compileTab/compilerContainer.js
View file @
4aa56918
...
...
@@ -110,7 +110,7 @@ class CompilerContainer {
return
el
}
_retriveVersion
()
{
_retri
e
veVersion
()
{
let
version
=
this
.
_view
.
versionSelector
.
value
return
version
.
substring
(
9
,
14
)
}
...
...
@@ -306,7 +306,7 @@ class CompilerContainer {
}
_updateLanguageSelector
()
{
if
(
this
.
_retriveVersion
()
<
'0.5.7'
)
{
if
(
this
.
_retri
e
veVersion
()
<
'0.5.7'
)
{
this
.
_view
.
languageSelector
.
setAttribute
(
'disabled'
,
''
)
this
.
_view
.
languageSelector
.
value
=
'Solidity'
this
.
compileTabLogic
.
setLanguage
(
'Solidity'
)
...
...
src/universal-dapp-ui.js
View file @
4aa56918
...
...
@@ -69,21 +69,36 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
var
shortAddress
=
helper
.
shortenAddress
(
address
)
var
title
=
yo
`
<div class="
${
css
.
title
}
alert alert-secondary p-2">
<button class="btn
${
css
.
titleExpander
}
" onclick="
${(
e
)
=>
{
toggleClass
(
e
)
}}
"><i class="
fas
fa
-
angle
-
right
" aria-hidden="
true
"></i></button>
<button class="btn
${
css
.
titleExpander
}
" onclick="
${(
e
)
=>
{
toggleClass
(
e
)
}}
">
<i class="
fas
fa
-
angle
-
right
" aria-hidden="
true
"></i>
</button>
<div class="
input
-
group
$
{
css
.
nameNbuts
}
">
<div class="
${
css
.
titleText
}
input-group-prepend"><span class="input-group-text
${
css
.
spanTitleText
}
">
${
contractName
}
at
${
shortAddress
}
(
${
context
}
)</span></div>
<div class="
${
css
.
titleText
}
input-group-prepend">
<span class="input-group-text
${
css
.
spanTitleText
}
">
${
contractName
}
at
${
shortAddress
}
(
${
context
}
)
</span>
</div>
<div class="btn-group">
<button class="btn p-1 btn-secondary">
${
copyToClipboard
(()
=>
address
)}
</button>
</div>
</div>
</div>`
</div>
`
var
close
=
yo
`<button class="
${
css
.
udappClose
}
p-1 btn btn-secondary" onclick=
${
remove
}
title="Remove from the list"><i class="
${
css
.
closeIcon
}
fas fa-times" aria-hidden="true"></i></button>`
var
close
=
yo
`
<button
class="
${
css
.
udappClose
}
p-1 btn btn-secondary"
onclick=
${
remove
}
title="Remove from the list"
>
<i class="
${
css
.
closeIcon
}
fas fa-times" aria-hidden="true"></i>
</button>`
title
.
querySelector
(
'.btn-group'
).
appendChild
(
close
)
var
contractActionsWrapper
=
yo
`
<div class="
${
css
.
cActionsWrapper
}
">
</div>`
<div class="
${
css
.
cActionsWrapper
}
">
</div>
`
function
remove
()
{
instance
.
remove
()
...
...
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