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
fd50e50d
Commit
fd50e50d
authored
May 20, 2018
by
serapath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CompileTab: move view code to .render()
parent
dcb12bc2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
compile-tab.js
src/app/tabs/compile-tab.js
+5
-5
No files found.
src/app/tabs/compile-tab.js
View file @
fd50e50d
...
@@ -117,6 +117,10 @@ module.exports = class CompileTab {
...
@@ -117,6 +117,10 @@ module.exports = class CompileTab {
self
.
_opts
.
renderer
.
error
(
msg
,
self
.
_view
.
errorContainer
,
settings
)
self
.
_opts
.
renderer
.
error
(
msg
,
self
.
_view
.
errorContainer
,
settings
)
}
}
})
})
}
render
()
{
const
self
=
this
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
self
.
_view
.
warnCompilationSlow
=
yo
`<i title="Copy Address" style="display:none" class="
${
css
.
warnCompilationSlow
}
fa fa-exclamation-triangle" aria-hidden="true"></i>`
self
.
_view
.
warnCompilationSlow
=
yo
`<i title="Copy Address" style="display:none" 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
.
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
.
compileButton
=
yo
`<div class="
${
css
.
compileButton
}
onclick=
${
compile
}
"id="compile" title="Compile source code">
${
self
.
_view
.
compileIcon
}
Start to compile</div>`
...
@@ -255,11 +259,7 @@ module.exports = class CompileTab {
...
@@ -255,11 +259,7 @@ module.exports = class CompileTab {
}
}
}
}
}
}
return
{
render
()
{
return
self
.
_view
.
el
}
}
return
self
.
_view
.
el
}
render
()
{
const
self
=
this
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
}
}
}
}
...
...
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