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
d8d07040
Commit
d8d07040
authored
Jan 14, 2019
by
Iuri Matias
Committed by
yann300
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move plugin styles and refactor plugin tab
parent
32993d66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
24 deletions
+33
-24
plugin-tab.js
src/app/tabs/plugin-tab.js
+18
-24
plugin-tab-styles.js
src/app/tabs/styles/plugin-tab-styles.js
+15
-0
No files found.
src/app/tabs/plugin-tab.js
View file @
d8d07040
var
yo
=
require
(
'yo-yo'
)
var
cs
js
=
require
(
'csjs-inject
'
)
var
cs
s
=
require
(
'./styles/plugin-tab-styles
'
)
var
globalRegistry
=
require
(
'../../global/registry'
)
var
EventManager
=
require
(
'../../lib/events'
)
module
.
exports
=
class
plugintab
{
class
PluginTab
{
constructor
(
json
,
localRegistry
)
{
const
self
=
this
self
.
event
=
new
EventManager
()
self
.
_view
=
{
el
:
null
}
self
.
data
=
{
json
}
self
.
_components
=
{}
self
.
_components
.
registry
=
localRegistry
||
globalRegistry
this
.
event
=
new
EventManager
()
this
.
_view
=
{
el
:
null
}
this
.
data
=
{
json
}
this
.
_components
=
{}
this
.
_components
.
registry
=
localRegistry
||
globalRegistry
}
render
()
{
const
self
=
this
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
self
.
_view
.
el
=
yo
`
if
(
this
.
_view
.
el
)
return
this
.
_view
.
el
this
.
_view
.
el
=
yo
`
<div class="
${
css
.
pluginTabView
}
" id="pluginView">
<iframe class="
${
css
.
iframe
}
" src="
${
self
.
data
.
json
.
url
}
/index.html"></iframe>
<iframe class="
${
css
.
iframe
}
" src="
${
this
.
data
.
json
.
url
}
/index.html"></iframe>
</div>`
return
self
.
_view
.
el
return
this
.
_view
.
el
}
}
const
css
=
csjs
`
.pluginTabView {
height: 100%;
width: 100%;
}
.iframe {
height: 100%;
width: 100%;
border: 0;
}
`
module
.
exports
=
PluginTab
src/app/tabs/styles/plugin-tab-styles.js
0 → 100644
View file @
d8d07040
var
csjs
=
require
(
'csjs-inject'
)
const
css
=
csjs
`
.pluginTabView {
height: 100%;
width: 100%;
}
.iframe {
height: 100%;
width: 100%;
border: 0;
}
`
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