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
a09c19c5
Commit
a09c19c5
authored
Apr 10, 2018
by
serapath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor debugger tab
parent
000c6b12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
24 deletions
+33
-24
debugger-tab.js
src/app/tabs/debugger-tab.js
+33
-9
debugger-tab-styles.js
src/app/tabs/styles/debugger-tab-styles.js
+0
-15
No files found.
src/app/tabs/debugger-tab.js
View file @
a09c19c5
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
css
=
require
(
'./styles/debugger-tab-styles'
)
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
function
debuggerTab
(
api
=
{},
events
=
{},
opts
=
{})
{
var
EventManager
=
remixLib
.
EventManager
var
el
=
yo
`
var
styles
=
require
(
'../../ui/styles-guide/theme-chooser'
).
chooser
()
<div class="
${
css
.
debuggerTabView
}
"id="debugView">
<div id="debugger" class="
${
css
.
debugger
}
"></div>
</div>`
return
{
render
()
{
return
el
}
}
}
module
.
exports
=
debuggerTab
module
.
exports
=
class
DebuggerTab
{
constructor
(
opts
=
{
api
:
{},
events
:
{}
})
{
const
self
=
this
self
.
event
=
new
EventManager
()
self
.
_api
=
opts
.
api
self
.
_events
=
opts
.
events
self
.
_view
=
{
el
:
null
}
self
.
data
=
{}
self
.
_components
=
{}
}
render
()
{
const
self
=
this
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
self
.
_view
.
el
=
yo
`
<div class="
${
css
.
debuggerTabView
}
"id="debugView">
<div id="debugger" class="
${
css
.
debugger
}
"></div>
</div>`
return
self
.
_view
.
el
}
}
const
css
=
csjs
`
.debuggerTabView {
padding: 2%;
}
.debugger {
margin-bottom: 1%;
${
styles
.
rightPanel
.
debuggerTab
.
box_Debugger
}
}
`
src/app/tabs/styles/debugger-tab-styles.js
deleted
100644 → 0
View file @
000c6b12
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'../../ui/styles-guide/theme-chooser'
)
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.debuggerTabView {
padding: 2%;
}
.debugger {
margin-bottom: 1%;
${
styles
.
rightPanel
.
debuggerTab
.
box_Debugger
}
}
`
module
.
exports
=
css
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