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
ad4c265d
Commit
ad4c265d
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 prepare for class
parent
a02f18b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
righthand-panel.js
src/app/panels/righthand-panel.js
+14
-6
No files found.
src/app/panels/righthand-panel.js
View file @
ad4c265d
...
@@ -17,7 +17,7 @@ const RunTab = require('../tabs/run-tab')
...
@@ -17,7 +17,7 @@ const RunTab = require('../tabs/run-tab')
const
EventManager
=
remixLib
.
EventManager
const
EventManager
=
remixLib
.
EventManager
const
styles
=
styleguide
.
chooser
()
const
styles
=
styleguide
.
chooser
()
module
.
exports
=
function
RighthandPanel
(
api
=
{},
events
=
{},
opts
=
{})
{
function
RighthandPanel
(
api
=
{},
events
=
{},
opts
=
{})
{
const
self
=
this
const
self
=
this
self
.
_api
=
api
self
.
_api
=
api
self
.
_events
=
events
self
.
_events
=
events
...
@@ -80,11 +80,16 @@ module.exports = function RighthandPanel (api = {}, events = {}, opts = {}) {
...
@@ -80,11 +80,16 @@ module.exports = function RighthandPanel (api = {}, events = {}, opts = {}) {
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
)
})
})
}
self
.
render
=
function
()
{
return
self
.
_view
.
element
}
var
prototype
=
{
constructor
:
RighthandPanel
,
self
.
init
=
function
()
{
render
:
function
()
{
;[...
options
.
children
].
forEach
((
el
)
=>
{
el
.
classList
.
add
(
css
.
options
)
})
const
self
=
this
return
self
.
_view
.
element
},
init
:
function
()
{
const
self
=
this
// ;[...options.children].forEach((el) => { el.classList.add(css.options) })
// ----------------- resizeable ui ---------------
// ----------------- resizeable ui ---------------
const
limit
=
60
const
limit
=
60
...
@@ -127,6 +132,9 @@ module.exports = function RighthandPanel (api = {}, events = {}, opts = {}) {
...
@@ -127,6 +132,9 @@ module.exports = function RighthandPanel (api = {}, events = {}, opts = {}) {
}
}
}
}
}
}
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