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
086db97f
Commit
086db97f
authored
May 22, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home tab activation
t Please enter the commit message for your changes. Lines starting
parent
b0a3f754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
18 deletions
+32
-18
vertical-icons.js
src/app/components/vertical-icons.js
+25
-14
landing-page.js
src/app/ui/landing-page/landing-page.js
+6
-3
framingService.js
src/framingService.js
+1
-1
No files found.
src/app/components/vertical-icons.js
View file @
086db97f
...
@@ -196,11 +196,19 @@ export class VerticalIcons {
...
@@ -196,11 +196,19 @@ export class VerticalIcons {
* @param {string} name Name of profile of the module to activate
* @param {string} name Name of profile of the module to activate
*/
*/
select
(
name
)
{
select
(
name
)
{
this
.
removeActive
()
this
.
updateActivations
(
name
)
this
.
addActive
(
name
)
this
.
events
.
emit
(
'showContent'
,
name
)
this
.
events
.
emit
(
'showContent'
,
name
)
}
}
updateActivations
(
name
)
{
if
(
name
===
"home"
)
{
this
.
activateHome
()
}
else
{
this
.
removeActive
()
this
.
addActive
(
name
)
}
}
onThemeChanged
(
themeType
)
{
onThemeChanged
(
themeType
)
{
const
invert
=
themeType
===
'dark'
?
1
:
0
const
invert
=
themeType
===
'dark'
?
1
:
0
const
active
=
this
.
view
.
querySelector
(
`.
${
css
.
active
}
`
)
const
active
=
this
.
view
.
querySelector
(
`.
${
css
.
active
}
`
)
...
@@ -211,17 +219,20 @@ export class VerticalIcons {
...
@@ -211,17 +219,20 @@ export class VerticalIcons {
}
}
_iconClick
(
name
)
{
_iconClick
(
name
)
{
this
.
removeActive
()
this
.
updateActivations
(
name
)
this
.
addActive
(
name
)
this
.
events
.
emit
(
'toggleContent'
,
name
)
this
.
events
.
emit
(
'toggleContent'
,
name
)
}
}
activateHome
()
{
globalRegistry
.
get
(
'appmanager'
).
api
.
ensureActivated
(
'home'
)
}
render
()
{
render
()
{
let
home
=
yo
`
let
home
=
yo
`
<div
<div
class="
${
css
.
homeIcon
}
"
class="
${
css
.
homeIcon
}
"
onclick="
${(
e
)
=>
{
onclick="
${(
e
)
=>
{
globalRegistry
.
get
(
'appmanager'
).
api
.
ensureActivated
(
'home'
)
this
.
activateHome
(
)
}}
"
}}
"
plugin="
$
{
this
.
homeProfile
.
name
}
" title="
${
this
.
homeProfile
.
displayName
}
"
plugin="
$
{
this
.
homeProfile
.
name
}
" title="
${
this
.
homeProfile
.
displayName
}
"
>
>
...
@@ -345,15 +356,15 @@ export class VerticalIcons {
...
@@ -345,15 +356,15 @@ export class VerticalIcons {
this
.
view
=
yo
`
this
.
view
=
yo
`
<div class=
${
css
.
icons
}
>
<div class=
${
css
.
icons
}
>
${
home
}
${
home
}
${
this
.
iconKind
[
'fileexplorer'
]}
${
this
.
iconKind
[
'fileexplorer'
]}
${
this
.
iconKind
[
'compile'
]}
${
this
.
iconKind
[
'compile'
]}
${
this
.
iconKind
[
'run'
]}
${
this
.
iconKind
[
'run'
]}
${
this
.
iconKind
[
'testing'
]}
${
this
.
iconKind
[
'testing'
]}
${
this
.
iconKind
[
'analysis'
]}
${
this
.
iconKind
[
'analysis'
]}
${
this
.
iconKind
[
'debugging'
]}
${
this
.
iconKind
[
'debugging'
]}
${
this
.
iconKind
[
'other'
]}
${
this
.
iconKind
[
'other'
]}
${
this
.
iconKind
[
'settings'
]}
${
this
.
iconKind
[
'settings'
]}
</div>
</div>
`
`
return
this
.
view
return
this
.
view
...
...
src/app/ui/landing-page/landing-page.js
View file @
086db97f
...
@@ -96,9 +96,12 @@ export class LandingPage extends BaseApi {
...
@@ -96,9 +96,12 @@ export class LandingPage extends BaseApi {
let
load
=
function
(
service
,
item
,
examples
,
info
)
{
let
load
=
function
(
service
,
item
,
examples
,
info
)
{
let
compilerImport
=
new
CompilerImport
()
let
compilerImport
=
new
CompilerImport
()
let
fileProviders
=
globalRegistry
.
get
(
'fileproviders'
).
api
let
fileProviders
=
globalRegistry
.
get
(
'fileproviders'
).
api
const
msg
=
yo
`<div class="p-2"><span>Enter the
${
item
}
you would like to load.</span>
const
msg
=
yo
`
<div>
${
info
}
</div>
<div class="p-2">
<div>e.g
${
examples
.
map
((
url
)
=>
{
return
yo
`<div class="p-1"><a>
${
url
}
</a></div>`
})}
</div></div>`
<span>Enter the
${
item
}
you would like to load.</span>
<div>
${
info
}
</div>
<div>e.g
${
examples
.
map
((
url
)
=>
{
return
yo
`<div class="p-1"><a>
${
url
}
</a></div>`
})}
</div>
</div>`
modalDialogCustom
.
prompt
(
`Import from
${
service
}
`
,
msg
,
null
,
(
target
)
=>
{
modalDialogCustom
.
prompt
(
`Import from
${
service
}
`
,
msg
,
null
,
(
target
)
=>
{
if
(
target
!==
''
)
{
if
(
target
!==
''
)
{
...
...
src/framingService.js
View file @
086db97f
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
})
})
verticalIcon
.
select
(
'fileExplorers'
)
verticalIcon
.
select
(
'fileExplorers'
)
mainPanel
.
showConten
t
(
'home'
)
verticalIcon
.
selec
t
(
'home'
)
document
.
addEventListener
(
'keypress'
,
(
e
)
=>
{
document
.
addEventListener
(
'keypress'
,
(
e
)
=>
{
if
(
e
.
shiftKey
&&
e
.
ctrlKey
)
{
if
(
e
.
shiftKey
&&
e
.
ctrlKey
)
{
...
...
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