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
09159dfa
Commit
09159dfa
authored
Oct 05, 2015
by
chriseth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show warnings correctly.
parent
602faa7f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
index.html
index.html
+3
-2
browser-solidity.css
stylesheets/browser-solidity.css
+7
-6
No files found.
index.html
View file @
09159dfa
...
...
@@ -392,8 +392,9 @@ THE SOFTWARE.
var
detailsOpen
=
{};
var
renderError
=
function
(
message
)
{
var
type
=
message
.
match
(
/^
[
0-9:
]
* Warning: /
)
?
'warning'
:
'error'
;
$
(
'#output'
)
.
append
(
$
(
'<pre class="
error
"></pre>'
).
text
(
message
));
.
append
(
$
(
'<pre class="
'
+
type
+
'
"></pre>'
).
text
(
message
));
var
err
=
message
.
match
(
/^:
([
0-9
]
*
)
:
([
0-9
]
*
)
/
)
if
(
err
&&
err
.
length
)
{
var
errLine
=
parseInt
(
err
[
1
],
10
)
-
1
;
...
...
@@ -402,7 +403,7 @@ THE SOFTWARE.
row
:
errLine
,
column
:
errCol
,
text
:
message
,
type
:
"error"
type
:
type
};
editor
.
getSession
().
setAnnotations
(
sourceAnnotations
);
}
...
...
stylesheets/browser-solidity.css
View file @
09159dfa
...
...
@@ -213,12 +213,6 @@ body {
float
:
right
;
}
.solError
{
position
:
absolute
;
background-color
:
rgba
(
255
,
0
,
0
,
0.2
);
z-index
:
40
;
}
.error
{
background-color
:
rgba
(
255
,
0
,
0
,
0.5
);
border-radius
:
0
;
...
...
@@ -226,6 +220,13 @@ body {
border
:
1px
solid
#D00909
;
}
.warning
{
background-color
:
rgba
(
210
,
202
,
36
,
0.5
);
border-radius
:
0
;
word-wrap
:
break-word
;
border
:
1px
solid
#D00909
;
}
#ghostbar
{
width
:
1px
;
background-color
:
red
;
...
...
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