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
980bab63
Commit
980bab63
authored
Mar 29, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove compilationMessage
parent
99f237db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
app.js
src/app.js
+2
-4
compile-tab.js
src/app/tabs/compile-tab.js
+6
-6
No files found.
src/app.js
View file @
980bab63
...
@@ -750,9 +750,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -750,9 +750,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
}
}
})
})
},
},
compilationMessage
:
(
message
,
container
,
options
)
=>
{
renderer
.
error
(
message
,
container
,
options
)
},
currentCompiledSourceCode
:
()
=>
{
currentCompiledSourceCode
:
()
=>
{
if
(
compiler
.
lastCompilationResult
.
source
)
{
if
(
compiler
.
lastCompilationResult
.
source
)
{
return
compiler
.
lastCompilationResult
.
source
.
sources
[
compiler
.
lastCompilationResult
.
source
.
target
]
return
compiler
.
lastCompilationResult
.
source
.
sources
[
compiler
.
lastCompilationResult
.
source
.
target
]
...
@@ -784,7 +781,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -784,7 +781,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
var
rhpOpts
=
{
var
rhpOpts
=
{
pluginAPI
:
new
PluginAPI
(
self
,
compiler
),
pluginAPI
:
new
PluginAPI
(
self
,
compiler
),
udapp
:
udapp
,
udapp
:
udapp
,
compiler
:
compiler
compiler
:
compiler
,
renderer
:
renderer
}
}
self
.
_components
.
righthandpanel
=
new
RighthandPanel
(
rhpAPI
,
rhpEvents
,
rhpOpts
)
self
.
_components
.
righthandpanel
=
new
RighthandPanel
(
rhpAPI
,
rhpEvents
,
rhpOpts
)
...
...
src/app/tabs/compile-tab.js
View file @
980bab63
...
@@ -115,7 +115,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
...
@@ -115,7 +115,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
var
el
=
yo
`
var
el
=
yo
`
<div class="
${
css
.
compileTabView
}
" id="compileTabView">
<div class="
${
css
.
compileTabView
}
" id="compileTabView">
${
compileContainer
}
${
compileContainer
}
${
contractNames
(
appAPI
,
appEvents
)}
${
contractNames
(
appAPI
,
appEvents
,
opts
)}
${
errorContainer
}
${
errorContainer
}
</div>
</div>
`
`
...
@@ -124,7 +124,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
...
@@ -124,7 +124,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
section CONTRACT DROPDOWN, DETAILS AND PUBLISH
section CONTRACT DROPDOWN, DETAILS AND PUBLISH
------------------------------------------------ */
------------------------------------------------ */
function
contractNames
(
appAPI
,
appEvents
)
{
function
contractNames
(
appAPI
,
appEvents
,
opts
)
{
var
contractsDetails
=
{}
var
contractsDetails
=
{}
appEvents
.
compiler
.
register
(
'compilationStarted'
,
()
=>
{
appEvents
.
compiler
.
register
(
'compilationStarted'
,
()
=>
{
...
@@ -146,18 +146,18 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
...
@@ -146,18 +146,18 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
var
error
=
false
var
error
=
false
if
(
data
[
'error'
])
{
if
(
data
[
'error'
])
{
error
=
true
error
=
true
appAPI
.
compilationMessage
(
data
[
'error'
].
formattedMessage
,
$
(
errorContainer
),
{
type
:
data
[
'error'
].
severity
})
opts
.
renderer
.
error
(
data
[
'error'
].
formattedMessage
,
$
(
errorContainer
),
{
type
:
data
[
'error'
].
severity
})
}
}
if
(
data
[
'errors'
])
{
if
(
data
[
'errors'
])
{
if
(
data
[
'errors'
].
length
)
error
=
true
if
(
data
[
'errors'
].
length
)
error
=
true
data
[
'errors'
].
forEach
(
function
(
err
)
{
data
[
'errors'
].
forEach
(
function
(
err
)
{
appAPI
.
compilationMessage
(
err
.
formattedMessage
,
$
(
errorContainer
),
{
type
:
err
.
severity
})
opts
.
renderer
.
error
(
err
.
formattedMessage
,
$
(
errorContainer
),
{
type
:
err
.
severity
})
})
})
}
}
if
(
!
error
)
{
if
(
!
error
)
{
if
(
data
.
contracts
)
{
if
(
data
.
contracts
)
{
appAPI
.
visitContracts
((
contract
)
=>
{
appAPI
.
visitContracts
((
contract
)
=>
{
appAPI
.
compilationMessage
(
contract
.
name
,
$
(
errorContainer
),
{
type
:
'success'
})
opts
.
renderer
.
error
(
contract
.
name
,
$
(
errorContainer
),
{
type
:
'success'
})
})
})
}
}
}
}
...
@@ -165,7 +165,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
...
@@ -165,7 +165,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
appEvents
.
staticAnalysis
.
register
(
'staticAnaysisWarning'
,
(
count
)
=>
{
appEvents
.
staticAnalysis
.
register
(
'staticAnaysisWarning'
,
(
count
)
=>
{
if
(
count
)
{
if
(
count
)
{
appAPI
.
compilationMessage
(
`Static Analysis raised
${
count
}
warning(s) that requires your attention.`
,
$
(
errorContainer
),
{
opts
.
renderer
.
error
(
`Static Analysis raised
${
count
}
warning(s) that requires your attention.`
,
$
(
errorContainer
),
{
type
:
'warning'
,
type
:
'warning'
,
click
:
()
=>
appAPI
.
switchTab
(
'staticanalysisView'
)
click
:
()
=>
appAPI
.
switchTab
(
'staticanalysisView'
)
})
})
...
...
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