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
eb7438a8
Commit
eb7438a8
authored
Jul 24, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation slow warning
parent
375af180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
compile-tab.js
src/app/tabs/compile-tab.js
+8
-5
No files found.
src/app/tabs/compile-tab.js
View file @
eb7438a8
...
...
@@ -61,9 +61,9 @@ module.exports = class CompileTab {
if
(
speed
>
self
.
data
.
maxTime
)
{
const
msg
=
`Last compilation took
${
speed
}
ms. We suggest to turn off autocompilation.`
self
.
_view
.
warnCompilationSlow
.
setAttribute
(
'title'
,
msg
)
self
.
_view
.
warnCompilationSlow
.
style
.
display
=
'inline-block
'
self
.
_view
.
warnCompilationSlow
.
style
.
visibility
=
'visible
'
}
else
{
self
.
_view
.
warnCompilationSlow
.
style
.
display
=
'none
'
self
.
_view
.
warnCompilationSlow
.
style
.
visibility
=
'hidden
'
}
})
self
.
_deps
.
editor
.
event
.
register
(
'contentChanged'
,
function
changedFile
()
{
...
...
@@ -75,7 +75,7 @@ module.exports = class CompileTab {
self
.
_deps
.
compiler
.
event
.
register
(
'loadingCompiler'
,
function
start
()
{
if
(
!
self
.
_view
.
compileIcon
)
return
self
.
_view
.
compileIcon
.
classList
.
add
(
`
${
css
.
spinningIcon
}
`
)
self
.
_view
.
warnCompilationSlow
.
style
.
display
=
'none
'
self
.
_view
.
warnCompilationSlow
.
style
.
visibility
=
'hidden
'
self
.
_view
.
compileIcon
.
setAttribute
(
'title'
,
'compiler is loading, please wait a few moments.'
)
})
self
.
_deps
.
compiler
.
event
.
register
(
'compilationStarted'
,
function
start
()
{
...
...
@@ -149,7 +149,7 @@ module.exports = class CompileTab {
render
()
{
const
self
=
this
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
self
.
_view
.
warnCompilationSlow
=
yo
`<i title="Co
py Address" style="display:none
" class="
${
css
.
warnCompilationSlow
}
fa fa-exclamation-triangle" aria-hidden="true"></i>`
self
.
_view
.
warnCompilationSlow
=
yo
`<i title="Co
mpilation Slow" style="visibility:hidden
" class="
${
css
.
warnCompilationSlow
}
fa fa-exclamation-triangle" aria-hidden="true"></i>`
self
.
_view
.
compileIcon
=
yo
`<i class="fa fa-refresh
${
css
.
icon
}
" aria-hidden="true"></i>`
self
.
_view
.
compileButton
=
yo
`<div class="
${
css
.
compileButton
}
" onclick=
${
compile
}
id="compile" title="Compile source code">
${
self
.
_view
.
compileIcon
}
Start to compile</div>`
self
.
_view
.
autoCompile
=
yo
`<input class="
${
css
.
autocompile
}
" onchange=
${
updateAutoCompile
}
id="autoCompile" type="checkbox" title="Auto compile">`
...
...
@@ -339,7 +339,10 @@ const css = csjs`
margin-bottom: 2%;
}
.autocompileContainer {
width: 90px;
display: flex;
align-items: center;
}
.hideWarningsContainer {
display: flex;
align-items: center;
}
...
...
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