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
5d56e7d1
Unverified
Commit
5d56e7d1
authored
May 08, 2019
by
yann300
Committed by
GitHub
May 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1936 from ethereum/swap_it_style_fixes_l
status update key has been renamed
parents
9a908090
f92c55f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
vertical-icons-component.js
src/app/components/vertical-icons-component.js
+4
-4
analysis-tab.js
src/app/tabs/analysis-tab.js
+1
-1
compile-tab.js
src/app/tabs/compile-tab.js
+3
-3
No files found.
src/app/components/vertical-icons-component.js
View file @
5d56e7d1
...
@@ -53,7 +53,7 @@ class VerticalIconComponent {
...
@@ -53,7 +53,7 @@ class VerticalIconComponent {
if
(
!
api
.
events
)
return
if
(
!
api
.
events
)
return
// the list of supported keys. 'none' will remove the status
// the list of supported keys. 'none' will remove the status
const
keys
=
[
'edited'
,
'succe
ss'
,
'none'
,
'spinner'
,
'fail
'
]
const
keys
=
[
'edited'
,
'succe
ed'
,
'none'
,
'loading'
,
'failed
'
]
const
types
=
[
'error'
,
'warning'
,
'success'
,
'info'
,
''
]
const
types
=
[
'error'
,
'warning'
,
'success'
,
'info'
,
''
]
const
fn
=
(
status
)
=>
{
const
fn
=
(
status
)
=>
{
if
(
!
types
.
includes
(
status
.
type
)
&&
status
.
type
)
throw
new
Error
(
`type should be
${
keys
.
join
()}
`
)
if
(
!
types
.
includes
(
status
.
type
)
&&
status
.
type
)
throw
new
Error
(
`type should be
${
keys
.
join
()}
`
)
...
@@ -92,16 +92,16 @@ class VerticalIconComponent {
...
@@ -92,16 +92,16 @@ class VerticalIconComponent {
resolveClasses
(
key
,
type
)
{
resolveClasses
(
key
,
type
)
{
let
classes
=
css
.
status
let
classes
=
css
.
status
switch
(
key
)
{
switch
(
key
)
{
case
'succe
ss
'
:
case
'succe
ed
'
:
classes
+=
' fas fa-check-circle text-'
+
type
+
' '
+
css
.
statusCheck
classes
+=
' fas fa-check-circle text-'
+
type
+
' '
+
css
.
statusCheck
break
break
case
'edited'
:
case
'edited'
:
classes
+=
' fas fa-sync text-'
+
type
+
' '
+
css
.
statusCheck
classes
+=
' fas fa-sync text-'
+
type
+
' '
+
css
.
statusCheck
break
break
case
'
spinner
'
:
case
'
loading
'
:
classes
+=
' fas fa-spinner text-'
+
type
+
' '
+
css
.
statusCheck
classes
+=
' fas fa-spinner text-'
+
type
+
' '
+
css
.
statusCheck
break
break
case
'fail'
:
case
'fail
ed
'
:
classes
+=
' fas fa-exclamation-triangle text-'
+
type
+
' '
+
css
.
statusCheck
classes
+=
' fas fa-exclamation-triangle text-'
+
type
+
' '
+
css
.
statusCheck
break
break
default
:
{
default
:
{
...
...
src/app/tabs/analysis-tab.js
View file @
5d56e7d1
...
@@ -32,7 +32,7 @@ class AnalysisTab extends BaseApi {
...
@@ -32,7 +32,7 @@ class AnalysisTab extends BaseApi {
if
(
count
>
0
)
{
if
(
count
>
0
)
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
count
,
title
:
`
${
count
}
warning
${
count
===
1
?
''
:
's'
}
`
,
type
:
'warning'
})
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
count
,
title
:
`
${
count
}
warning
${
count
===
1
?
''
:
's'
}
`
,
type
:
'warning'
})
}
else
if
(
count
===
0
)
{
}
else
if
(
count
===
0
)
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'succe
ss
'
,
title
:
'no warning'
,
type
:
'success'
})
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'succe
ed
'
,
title
:
'no warning'
,
type
:
'success'
})
}
else
{
}
else
{
// count ==-1 no compilation result
// count ==-1 no compilation result
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'none'
})
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'none'
})
...
...
src/app/tabs/compile-tab.js
View file @
5d56e7d1
...
@@ -83,7 +83,7 @@ class CompileTab extends CompilerApi {
...
@@ -83,7 +83,7 @@ class CompileTab extends CompilerApi {
this
.
editor
.
event
.
register
(
'sessionSwitched'
,
onContentChanged
)
this
.
editor
.
event
.
register
(
'sessionSwitched'
,
onContentChanged
)
this
.
compiler
.
event
.
register
(
'loadingCompiler'
,
()
=>
{
this
.
compiler
.
event
.
register
(
'loadingCompiler'
,
()
=>
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'
spinner
'
,
title
:
'loading compiler...'
,
type
:
'info'
})
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'
loading
'
,
title
:
'loading compiler...'
,
type
:
'info'
})
})
})
this
.
compiler
.
event
.
register
(
'compilerLoaded'
,
()
=>
{
this
.
compiler
.
event
.
register
(
'compilerLoaded'
,
()
=>
{
...
@@ -94,7 +94,7 @@ class CompileTab extends CompilerApi {
...
@@ -94,7 +94,7 @@ class CompileTab extends CompilerApi {
if
(
this
.
_view
.
errorContainer
)
{
if
(
this
.
_view
.
errorContainer
)
{
this
.
_view
.
errorContainer
.
innerHTML
=
''
this
.
_view
.
errorContainer
.
innerHTML
=
''
}
}
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'
spinner
'
,
title
:
'compiling...'
,
type
:
'info'
})
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'
loading
'
,
title
:
'compiling...'
,
type
:
'info'
})
})
})
this
.
fileManager
.
events
.
on
(
'currentFileChanged'
,
(
name
)
=>
{
this
.
fileManager
.
events
.
on
(
'currentFileChanged'
,
(
name
)
=>
{
...
@@ -123,7 +123,7 @@ class CompileTab extends CompilerApi {
...
@@ -123,7 +123,7 @@ class CompileTab extends CompilerApi {
title
:
`compilation finished successful with warning
${
data
.
errors
.
length
>
1
?
's'
:
''
}
`
,
title
:
`compilation finished successful with warning
${
data
.
errors
.
length
>
1
?
's'
:
''
}
`
,
type
:
'warning'
type
:
'warning'
})
})
}
else
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'succe
ss
'
,
title
:
'compilation successful'
,
type
:
'success'
})
}
else
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'succe
ed
'
,
title
:
'compilation successful'
,
type
:
'success'
})
// Store the contracts
// Store the contracts
this
.
data
.
contractsDetails
=
{}
this
.
data
.
contractsDetails
=
{}
this
.
compiler
.
visitContracts
((
contract
)
=>
{
this
.
compiler
.
visitContracts
((
contract
)
=>
{
...
...
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