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
77342077
Commit
77342077
authored
Feb 28, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove old code and select homepage at start
parent
45b4408f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
generate.js
src/app/ui/landing-page/generate.js
+10
-1
workspace.js
src/app/ui/landing-page/workspace.js
+1
-6
framingService.js
src/framingService.js
+1
-8
No files found.
src/app/ui/landing-page/generate.js
View file @
77342077
...
...
@@ -5,6 +5,7 @@ import { defaultWorkspaces } from './workspace'
export
function
homepageProfile
()
{
return
{
displayName
:
'home page'
,
name
:
'homepage'
,
methods
:
[],
events
:
[],
...
...
@@ -14,7 +15,7 @@ export function homepageProfile () {
}
}
export
function
generateHomePage
(
appManager
)
{
export
function
generateHomePage
(
appManager
,
appStore
)
{
/*
var actions1 = [
{label: 'new file', type: `callback`, payload: () => { alert(`-new file created-`) }},
...
...
@@ -56,6 +57,14 @@ export function generateHomePage (appManager) {
*/
var
sectionsWorkspaces
=
[]
sectionsWorkspaces
.
push
({
label
:
'Close All Modules'
,
type
:
'callback'
,
payload
:
()
=>
{
appStore
.
getActives
()
.
filter
(({
profile
})
=>
!
profile
.
required
)
.
forEach
((
profile
)
=>
{
appManager
.
deactivateOne
(
profile
.
name
)
})
}})
defaultWorkspaces
(
appManager
).
forEach
((
workspace
)
=>
{
sectionsWorkspaces
.
push
({
label
:
workspace
.
title
,
type
:
'callback'
,
payload
:
()
=>
{
workspace
.
activate
()
}})
})
...
...
src/app/ui/landing-page/workspace.js
View file @
77342077
...
...
@@ -7,13 +7,8 @@ export class Workspace {
}
}
export
const
defaultWorkspaces
=
(
appManager
,
appStore
)
=>
{
export
const
defaultWorkspaces
=
(
appManager
)
=>
{
return
[
new
Workspace
(
'Close All Modules'
,
''
,
()
=>
{
appStore
.
getActives
()
.
filter
(({
profile
})
=>
!
profile
.
required
)
.
forEach
((
profile
)
=>
{
appManager
.
deactivateOne
(
profile
.
name
)
})
},
()
=>
{}),
new
Workspace
(
'Solidity Basic'
,
''
,
()
=>
{
appManager
.
ensureActivated
(
'solidity'
)
},
()
=>
{}),
...
...
src/framingService.js
View file @
77342077
...
...
@@ -2,27 +2,20 @@ export default {
start
:
(
appStore
,
swapPanelApi
,
verticalIconApi
,
mainPanelApi
,
resizeFeature
)
=>
{
swapPanelApi
.
event
.
on
(
'toggle'
,
(
moduleName
)
=>
{
resizeFeature
.
panel1
.
clientWidth
!==
0
?
resizeFeature
.
minimize
()
:
resizeFeature
.
maximise
()
if
(
moduleName
===
'fileExplorers'
)
{
mainPanelApi
.
showContent
(
'code editor'
)
}
})
swapPanelApi
.
event
.
on
(
'showing'
,
(
moduleName
)
=>
{
if
(
moduleName
===
'fileExplorers'
)
{
mainPanelApi
.
showContent
(
'code editor'
)
}
resizeFeature
.
panel1
.
clientWidth
===
0
?
resizeFeature
.
maximise
()
:
''
var
current
=
appStore
.
getOne
(
moduleName
)
// 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
(
'toggle'
,
()
=>
{
verticalIconApi
.
select
(
'code editor'
)
resizeFeature
.
maximise
()
})
// mainPanelApi.event.on('showing', (moduleName) => {})
verticalIconApi
.
select
(
'fileExplorers'
)
verticalIconApi
.
selec
t
(
'homepage'
)
mainPanelApi
.
showConten
t
(
'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