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
2772c4a4
Unverified
Commit
2772c4a4
authored
Jun 27, 2019
by
yann300
Committed by
GitHub
Jun 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2116 from ethereum/master_li
added checks before compilation
parents
1afc5568
2b84d962
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
compilerContainer.js
src/app/tabs/compileTab/compilerContainer.js
+15
-7
No files found.
src/app/tabs/compileTab/compilerContainer.js
View file @
2772c4a4
...
@@ -137,7 +137,7 @@ class CompilerContainer {
...
@@ -137,7 +137,7 @@ class CompilerContainer {
this
.
_view
.
versionSelector
=
yo
`
this
.
_view
.
versionSelector
=
yo
`
<select onchange="
${
this
.
onchangeLoadVersion
.
bind
(
this
)}
" class="custom-select" id="versionSelector" disabled>
<select onchange="
${
this
.
onchangeLoadVersion
.
bind
(
this
)}
" class="custom-select" id="versionSelector" disabled>
<option disabled selected>
Select new compiler version
</option>
<option disabled selected>
${
this
.
data
.
defaultVersion
}
</option>
</select>`
</select>`
this
.
_view
.
languageSelector
=
yo
`
this
.
_view
.
languageSelector
=
yo
`
<select onchange="
${
this
.
onchangeLanguage
.
bind
(
this
)}
" class="custom-select" id="compilierLanguageSelector" title="Available since v0.5.7">
<select onchange="
${
this
.
onchangeLanguage
.
bind
(
this
)}
" class="custom-select" id="compilierLanguageSelector" title="Available since v0.5.7">
...
@@ -234,22 +234,30 @@ class CompilerContainer {
...
@@ -234,22 +234,30 @@ class CompilerContainer {
}
}
compile
(
event
)
{
compile
(
event
)
{
this
.
compileTabLogic
.
runCompiler
()
if
(
this
.
config
.
get
(
'currentFile'
))
{
this
.
compileTabLogic
.
runCompiler
()
}
}
compileIfAutoCompileOn
()
{
if
(
this
.
config
.
get
(
'autoCompile'
))
{
this
.
compile
()
}
}
}
hideWarnings
(
event
)
{
hideWarnings
(
event
)
{
this
.
config
.
set
(
'hideWarnings'
,
this
.
_view
.
hideWarningsBox
.
checked
)
this
.
config
.
set
(
'hideWarnings'
,
this
.
_view
.
hideWarningsBox
.
checked
)
this
.
compile
()
this
.
compile
IfAutoCompileOn
()
}
}
onchangeOptimize
()
{
onchangeOptimize
()
{
this
.
compileTabLogic
.
setOptimize
(
!!
this
.
_view
.
optimize
.
checked
)
this
.
compileTabLogic
.
setOptimize
(
!!
this
.
_view
.
optimize
.
checked
)
this
.
compile
TabLogic
.
runCompiler
()
this
.
compile
IfAutoCompileOn
()
}
}
onchangeLanguage
(
event
)
{
onchangeLanguage
(
event
)
{
this
.
compileTabLogic
.
setLanguage
(
event
.
target
.
value
)
this
.
compileTabLogic
.
setLanguage
(
event
.
target
.
value
)
this
.
compile
()
this
.
compile
IfAutoCompileOn
()
}
}
onchangeEvmVersion
(
_
)
{
onchangeEvmVersion
(
_
)
{
...
@@ -259,7 +267,7 @@ class CompilerContainer {
...
@@ -259,7 +267,7 @@ class CompilerContainer {
v
=
null
v
=
null
}
}
this
.
compileTabLogic
.
setEvmVersion
(
v
)
this
.
compileTabLogic
.
setEvmVersion
(
v
)
this
.
compile
()
this
.
compile
IfAutoCompileOn
()
}
}
onchangeLoadVersion
(
event
)
{
onchangeLoadVersion
(
event
)
{
...
@@ -343,7 +351,7 @@ class CompilerContainer {
...
@@ -343,7 +351,7 @@ class CompilerContainer {
scheduleCompilation
()
{
scheduleCompilation
()
{
if
(
!
this
.
config
.
get
(
'autoCompile'
))
return
if
(
!
this
.
config
.
get
(
'autoCompile'
))
return
if
(
this
.
data
.
compileTimeout
)
window
.
clearTimeout
(
this
.
data
.
compileTimeout
)
if
(
this
.
data
.
compileTimeout
)
window
.
clearTimeout
(
this
.
data
.
compileTimeout
)
this
.
data
.
compileTimeout
=
window
.
setTimeout
(()
=>
this
.
compile
TabLogic
.
runCompiler
(),
this
.
data
.
timeout
)
this
.
data
.
compileTimeout
=
window
.
setTimeout
(()
=>
this
.
compile
IfAutoCompileOn
(),
this
.
data
.
timeout
)
}
}
}
}
...
...
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