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
eba224cc
Commit
eba224cc
authored
Apr 29, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added warnings status update
parent
78c6eba4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
compile-tab.js
src/app/tabs/compile-tab.js
+9
-2
renderer.js
src/app/ui/renderer.js
+2
-1
No files found.
src/app/tabs/compile-tab.js
View file @
eba224cc
...
...
@@ -111,7 +111,13 @@ class CompileTab extends CompilerApi {
if
(
success
)
{
// forwarding the event to the appManager infra
this
.
events
.
emit
(
'compilationFinished'
,
source
.
target
,
source
,
'soljson'
,
data
)
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'check'
,
title
:
'compilation successful'
,
type
:
'success'
})
if
(
data
.
errors
)
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
data
.
errors
.
length
.
toString
(),
title
:
'compilation finished successful with warning'
+
data
.
errors
.
length
>
1
?
's'
:
''
,
type
:
'warning'
})
}
else
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'check'
,
title
:
'compilation successful'
,
type
:
'success'
})
// Store the contracts
this
.
data
.
contractsDetails
=
{}
this
.
compiler
.
visitContracts
((
contract
)
=>
{
...
...
@@ -122,7 +128,8 @@ class CompileTab extends CompilerApi {
)
})
}
else
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
data
.
errors
.
length
.
toString
(),
title
:
'compilation failed'
,
type
:
'danger'
})
const
count
=
errorList
.
filter
(
error
=>
error
.
severity
===
'error'
).
length
.
toString
()
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
count
,
title
:
'compilation failed'
,
type
:
'danger'
})
}
// Update contract Selection
let
contractMap
=
{}
...
...
src/app/ui/renderer.js
View file @
eba224cc
...
...
@@ -89,7 +89,8 @@ Renderer.prototype.error = function (message, container, opt) {
var
$pre
=
$
(
opt
.
useSpan
?
yo
`<span></span>`
:
yo
`<pre></pre>`
).
html
(
message
)
var
$error
=
$
(
yo
`<div class="sol
${
opt
.
type
}
"><div class="close"><i class="fas fa-times"></i></div></div>`
).
prepend
(
$pre
)
let
classList
=
opt
.
type
===
'error'
?
'alert alert-danger'
:
'alert alert-warning'
var
$error
=
$
(
yo
`<div class="
${
classList
}
"><div class="close"><i class="fas fa-times"></i></div></div>`
).
prepend
(
$pre
)
$
(
container
).
append
(
$error
)
$error
.
click
((
ev
)
=>
{
...
...
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