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
1487725e
Commit
1487725e
authored
Feb 27, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't re execute render 2 times + fix plugin
parent
65472242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
righthand-panel.js
src/app/panels/righthand-panel.js
+9
-7
No files found.
src/app/panels/righthand-panel.js
View file @
1487725e
...
@@ -55,17 +55,19 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) {
...
@@ -55,17 +55,19 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) {
optionViews
.
appendChild
(
debuggerTab
.
render
())
optionViews
.
appendChild
(
debuggerTab
.
render
())
var
supportTab
=
new
SupportTab
(
appAPI
,
events
)
var
supportTab
=
new
SupportTab
(
appAPI
,
events
)
optionViews
.
appendChild
(
supportTab
.
render
())
optionViews
.
appendChild
(
supportTab
.
render
())
this
.
_view
.
tabbedMenu
.
addTab
(
'Compile'
,
'compileView'
,
compileTab
.
render
(
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Compile'
,
'compileView'
,
optionViews
.
querySelector
(
'#compileTabView'
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Run'
,
'runView'
,
runTab
.
render
(
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Run'
,
'runView'
,
optionViews
.
querySelector
(
'#runTabView'
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Settings'
,
'settingsView'
,
settingsTab
.
render
(
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Settings'
,
'settingsView'
,
optionViews
.
querySelector
(
'#settingsView'
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Analysis'
,
'staticanalysisView'
,
analysisTab
.
render
(
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Analysis'
,
'staticanalysisView'
,
optionViews
.
querySelector
(
'#staticanalysisView'
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Debugger'
,
'debugView'
,
debuggerTab
.
render
(
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Debugger'
,
'debugView'
,
optionViews
.
querySelector
(
'#debugView'
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Support'
,
'supportView'
,
supportTab
.
render
(
))
this
.
_view
.
tabbedMenu
.
addTab
(
'Support'
,
'supportView'
,
optionViews
.
querySelector
(
'#supportView'
))
this
.
_view
.
tabbedMenu
.
selectTabByTitle
(
'Compile'
)
this
.
_view
.
tabbedMenu
.
selectTabByTitle
(
'Compile'
)
self
.
pluginManager
=
new
PluginManager
(
appAPI
,
events
)
self
.
pluginManager
=
new
PluginManager
(
appAPI
,
events
)
events
.
rhp
.
register
(
'plugin-loadRequest'
,
(
json
)
=>
{
events
.
rhp
.
register
(
'plugin-loadRequest'
,
(
json
)
=>
{
var
content
=
new
PluginTab
(
appAPI
,
events
,
json
)
var
tab
=
new
PluginTab
(
appAPI
,
events
,
json
)
var
content
=
tab
.
render
()
optionViews
.
appendChild
(
content
)
this
.
_view
.
tabbedMenu
.
addTab
(
json
.
title
,
'plugin'
,
content
)
this
.
_view
.
tabbedMenu
.
addTab
(
json
.
title
,
'plugin'
,
content
)
self
.
pluginManager
.
register
(
json
,
content
)
self
.
pluginManager
.
register
(
json
,
content
)
})
})
...
...
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