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
d8ac9db2
Commit
d8ac9db2
authored
Jun 06, 2018
by
serapath
Committed by
yann300
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rhp: refactor to class
parent
ac90207d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
righthand-panel.js
src/app/panels/righthand-panel.js
+6
-9
No files found.
src/app/panels/righthand-panel.js
View file @
d8ac9db2
...
@@ -17,8 +17,8 @@ const RunTab = require('../tabs/run-tab')
...
@@ -17,8 +17,8 @@ const RunTab = require('../tabs/run-tab')
const
EventManager
=
remixLib
.
EventManager
const
EventManager
=
remixLib
.
EventManager
const
styles
=
styleguide
.
chooser
()
const
styles
=
styleguide
.
chooser
()
var
prototype
=
{
module
.
exports
=
class
RighthandPanel
{
constructor
:
function
RighthandPanel
(
api
=
{},
events
=
{},
opts
=
{})
{
constructor
(
api
=
{},
events
=
{},
opts
=
{})
{
const
self
=
this
const
self
=
this
self
.
_api
=
api
self
.
_api
=
api
self
.
_events
=
events
self
.
_events
=
events
...
@@ -81,12 +81,12 @@ var prototype = {
...
@@ -81,12 +81,12 @@ var prototype = {
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
)
})
})
}
,
}
render
:
function
()
{
render
()
{
const
self
=
this
const
self
=
this
return
self
.
_view
.
element
return
self
.
_view
.
element
}
,
}
init
:
function
()
{
init
()
{
const
self
=
this
const
self
=
this
// ;[...options.children].forEach((el) => { el.classList.add(css.options) })
// ;[...options.children].forEach((el) => { el.classList.add(css.options) })
...
@@ -131,9 +131,6 @@ var prototype = {
...
@@ -131,9 +131,6 @@ var prototype = {
}
}
}
}
}
}
prototype
.
constructor
.
prototype
=
prototype
module
.
exports
=
prototype
.
constructor
const
css
=
csjs
`
const
css
=
csjs
`
#righthand-panel {
#righthand-panel {
...
...
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