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
2fa15b93
Commit
2fa15b93
authored
Jan 21, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
framing
parent
ce51843b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
swap-panel-api.js
src/app/components/swap-panel-api.js
+3
-3
framingService.js
src/framingService.js
+7
-7
No files found.
src/app/components/swap-panel-api.js
View file @
2fa15b93
...
...
@@ -8,17 +8,17 @@ class SwapPanelApi {
verticalIconsComponent
.
event
.
on
(
'showContent'
,
(
moduleName
)
=>
{
if
(
!
swapPanelComponent
.
contents
[
moduleName
])
return
if
(
this
.
currentContent
===
moduleName
)
{
this
.
event
.
emit
(
'toggle'
)
this
.
event
.
emit
(
'toggle'
,
moduleName
)
return
}
this
.
showContent
(
moduleName
)
this
.
event
.
emit
(
'showing'
,
moduleName
)
this
.
component
.
showContent
(
moduleName
)
this
.
currentContent
=
moduleName
})
}
showContent
(
moduleName
)
{
this
.
component
.
showContent
(
moduleName
)
this
.
currentContent
=
moduleName
}
/*
...
...
src/framingService.js
View file @
2fa15b93
export
default
{
start
:
(
appStore
,
swapPanelApi
,
verticalIconApi
,
mainPanelApi
,
resizeFeature
)
=>
{
swapPanelApi
.
event
.
on
(
'toggle'
,
()
=>
{
swapPanelApi
.
event
.
on
(
'toggle'
,
(
moduleName
)
=>
{
resizeFeature
.
panel1
.
clientWidth
!==
0
?
resizeFeature
.
minimize
()
:
resizeFeature
.
maximise
()
if
(
moduleName
===
'file explorers'
)
{
mainPanelApi
.
showContent
(
'code editor'
)
}
})
mainPanelApi
.
event
.
on
(
'toggle'
,
()
=>
{
verticalIconApi
.
select
(
'code editor'
)
resizeFeature
.
maximise
()
})
swapPanelApi
.
event
.
on
(
'showing'
,
(
moduleName
)
=>
{
if
(
moduleName
===
'file explorers'
)
{
mainPanelApi
.
showContent
(
'code editor'
)
...
...
@@ -19,10 +15,14 @@ export default {
// warn the content that it is being displayed. TODO should probably be done in each view
if
(
current
&&
current
.
api
.
__showing
)
current
.
api
.
__showing
()
})
mainPanelApi
.
event
.
on
(
'showing'
,
(
moduleName
)
=>
{})
mainPanelApi
.
event
.
on
(
'toggle'
,
()
=>
{
verticalIconApi
.
select
(
'code editor'
)
resizeFeature
.
maximise
()
})
// mainPanelApi.event.on('showing', (moduleName) => {})
verticalIconApi
.
select
(
'file explorers'
)
resizeFeature
.
minimize
()
verticalIconApi
.
select
(
'homepage'
)
resizeFeature
.
minimize
()
}
}
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