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
22247f94
Commit
22247f94
authored
Apr 03, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new style for landing page
parent
245a7fb2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
175 additions
and
79 deletions
+175
-79
landing-page.js
src/app/ui/landing-page/landing-page.js
+147
-59
section.js
src/app/ui/landing-page/section.js
+3
-4
workspace.js
src/app/ui/landing-page/workspace.js
+25
-16
No files found.
src/app/ui/landing-page/landing-page.js
View file @
22247f94
This diff is collapsed.
Click to expand it.
src/app/ui/landing-page/section.js
View file @
22247f94
...
...
@@ -27,12 +27,11 @@ class Section {
constructor
(
title
,
actions
)
{
this
.
title
=
title
this
.
actions
=
actions
this
.
cardStyle
=
(
this
.
title
===
'Workspaces'
)
?
'bg-success text-light'
:
'bg-light text-dark'
}
render
()
{
let
sectionLook
=
yo
`
<div class="card
${
this
.
cardStyle
}
p-3" style="min-width: 300px; min-height: 19
0px;">
<div class="card
border-0 bg-light bd-light text-dark p-1" style="min-width: 300px; min-height: 21
0px;">
<div class="card-header font-weight-bold" style="user-select: none;">
${
this
.
title
}
</div>
<p></p>
</div>
...
...
@@ -41,7 +40,7 @@ class Section {
if
(
this
.
actions
[
i
].
type
===
`callback`
)
{
sectionLook
.
appendChild
(
yo
`
<div>
<span class
="
${
css
.
text
}
" onclick=
${
this
.
actions
[
i
].
payload
}
>
<span class
="
${
css
.
text
}
text-dark
" onclick=
${
this
.
actions
[
i
].
payload
}
>
${
this
.
actions
[
i
].
label
}
</span>
</div>
...
...
@@ -49,7 +48,7 @@ class Section {
}
else
if
(
this
.
actions
[
i
].
type
===
`link`
)
{
sectionLook
.
appendChild
(
yo
`
<div >
<a class="
${
css
.
link
}
text-decoration-none" href=
${
this
.
actions
[
i
].
payload
}
target="_blank" >
<a class="
${
css
.
link
}
text-d
ark text-d
ecoration-none" href=
${
this
.
actions
[
i
].
payload
}
target="_blank" >
${
this
.
actions
[
i
].
label
}
</a>
</div>
...
...
src/app/ui/landing-page/workspace.js
View file @
22247f94
export
class
Workspace
{
constructor
(
title
,
description
,
activate
,
deactivate
)
{
constructor
(
title
,
description
,
isMain
,
activate
,
deactivate
)
{
this
.
title
=
title
this
.
description
=
description
this
.
isMain
=
isMain
this
.
activate
=
activate
this
.
deactivate
=
deactivate
}
...
...
@@ -9,23 +10,31 @@ export class Workspace {
export
const
defaultWorkspaces
=
(
appManager
)
=>
{
return
[
new
Workspace
(
'Solidity'
,
''
,
()
=>
{
appManager
.
ensureActivated
(
'solidity'
)
appManager
.
ensureActivated
(
'run'
)
appManager
.
ensureActivated
(
'solidityStaticAnalysis'
)
appManager
.
ensureActivated
(
'solidityUnitTesting'
)
},
()
=>
{}),
new
Workspace
(
'Vyper'
,
''
,
()
=>
{
appManager
.
ensureActivated
(
'vyper'
)
appManager
.
ensureActivated
(
'run'
)
new
Workspace
(
'Solidity'
,
'Writing smart contracts. It is used for implementing smart contracts on various blockchain platforms'
,
true
,
()
=>
{
appManager
.
ensureActivated
(
'solidity'
)
appManager
.
ensureActivated
(
'run'
)
appManager
.
ensureActivated
(
'solidityStaticAnalysis'
)
appManager
.
ensureActivated
(
'solidityUnitTesting'
)
},
()
=>
{}),
new
Workspace
(
'Vyper'
,
'Vyper is a contract-oriented, pythonic programming language that targets the Ethereum Virtual Machine (EVM)'
,
true
,
()
=>
{
appManager
.
ensureActivated
(
'vyper'
)
appManager
.
ensureActivated
(
'run'
)
},
()
=>
{}),
new
Workspace
(
'Debugger'
,
'Debug transactions with remix'
,
false
,
()
=>
{
appManager
.
ensureActivated
(
'debugger'
)
},
()
=>
{}),
new
Workspace
(
'Pipeline'
,
''
,
()
=>
{
new
Workspace
(
'Pipeline'
,
''
,
false
,
()
=>
{
appManager
.
ensureActivated
(
'solidity'
)
appManager
.
ensureActivated
(
'run'
)
appManager
.
ensureActivated
(
'pipeline'
)
},
()
=>
{}),
new
Workspace
(
'Debugger'
,
''
,
()
=>
{
appManager
.
ensureActivated
(
'debugger'
)
},
()
=>
{})
appManager
.
ensureActivated
(
'run'
)
})
]
}
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