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
a4033ac9
Unverified
Commit
a4033ac9
authored
May 08, 2019
by
yann300
Committed by
GitHub
May 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1942 from ethereum/master_l
style fixes
parents
63f7e029
30daa62e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
16 deletions
+27
-16
gasStation_50.png
assets/img/gasStation_50.png
+0
-0
contextView.js
src/app/editor/contextView.js
+13
-8
contextView-styles.js
src/app/editor/styles/contextView-styles.js
+10
-6
file-explorer.js
src/app/files/file-explorer.js
+1
-1
terminal.js
src/app/panels/terminal.js
+1
-1
modaldialog-styles.js
src/app/ui/styles/modaldialog-styles.js
+2
-0
No files found.
assets/img/gasStation_50.png
deleted
100644 → 0
View file @
63f7e029
960 Bytes
src/app/editor/contextView.js
View file @
a4033ac9
...
@@ -40,7 +40,8 @@ class ContextView {
...
@@ -40,7 +40,8 @@ class ContextView {
}
}
render
()
{
render
()
{
const
view
=
yo
`<div class="
${
css
.
contextview
}
${
css
.
contextviewcontainer
}
badge bg-light border-0">
const
view
=
yo
`
<div class="
${
css
.
contextview
}
${
css
.
contextviewcontainer
}
bg-light text-dark border-0">
<div class=
${
css
.
container
}
>
<div class=
${
css
.
container
}
>
${
this
.
_renderTarget
()}
${
this
.
_renderTarget
()}
</div>
</div>
...
@@ -156,24 +157,28 @@ class ContextView {
...
@@ -156,24 +157,28 @@ class ContextView {
const
showGasEstimation
=
()
=>
{
const
showGasEstimation
=
()
=>
{
if
(
node
.
name
===
'FunctionDefinition'
)
{
if
(
node
.
name
===
'FunctionDefinition'
)
{
const
result
=
this
.
contextualListener
.
gasEstimation
(
node
)
const
result
=
this
.
contextualListener
.
gasEstimation
(
node
)
const
executionCost
=
'Execution cost: '
+
result
.
executionCost
+
' gas'
const
executionCost
=
'
Execution cost: '
+
result
.
executionCost
+
' gas'
const
codeDepositCost
=
'Code deposit cost: '
+
result
.
codeDepositCost
+
' gas'
const
codeDepositCost
=
'Code deposit cost: '
+
result
.
codeDepositCost
+
' gas'
const
estimatedGas
=
result
.
codeDepositCost
?
`
${
codeDepositCost
}
,
${
executionCost
}
`
:
`
${
executionCost
}
`
const
estimatedGas
=
result
.
codeDepositCost
?
`
${
codeDepositCost
}
,
${
executionCost
}
`
:
`
${
executionCost
}
`
return
yo
`<div class=
${
css
.
gasEstimation
}
>
return
yo
`
<img class=
${
css
.
gasStationIcon
}
title='Gas estimation' src='assets/img/gasStation_50.png'>
<div class=
${
css
.
gasEstimation
}
>
${
estimatedGas
}
<i class="fas fa-gas-pump
${
css
.
gasStationIcon
}
" title='Gas estimation'></i>
</div>`
<span>
${
estimatedGas
}
</span>
</div>
`
}
}
}
}
return
yo
`<div class=
${
css
.
line
}
>
${
showGasEstimation
()}
return
yo
`
<div class=
${
css
.
line
}
>
${
showGasEstimation
()}
<div title=
${
type
}
class=
${
css
.
type
}
>
${
type
}
</div>
<div title=
${
type
}
class=
${
css
.
type
}
>
${
type
}
</div>
<div title=
${
node
.
attributes
.
name
}
class=
${
css
.
name
}
>
${
node
.
attributes
.
name
}
</div>
<div title=
${
node
.
attributes
.
name
}
class=
${
css
.
name
}
>
${
node
.
attributes
.
name
}
</div>
<i class="fas fa-share
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jumpTo
}
></i>
<i class="fas fa-share
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jumpTo
}
></i>
<span class=
${
css
.
referencesnb
}
>
${
references
}
</span>
<span class=
${
css
.
referencesnb
}
>
${
references
}
</span>
<i data-action='previous' class="fas fa-chevron-up
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jump
}
></i>
<i data-action='previous' class="fas fa-chevron-up
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jump
}
></i>
<i data-action='next' class="fas fa-chevron-down
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jump
}
></i>
<i data-action='next' class="fas fa-chevron-down
${
css
.
jump
}
" aria-hidden="true" onclick=
${
jump
}
></i>
</div>`
</div>
`
}
}
}
}
...
...
src/app/editor/styles/contextView-styles.js
View file @
a4033ac9
...
@@ -4,7 +4,7 @@ var css = csjs`
...
@@ -4,7 +4,7 @@ var css = csjs`
.contextview {
.contextview {
opacity : 1;
opacity : 1;
position : relative;
position : relative;
height : 2
0
px;
height : 2
5
px;
}
}
.container {
.container {
padding : 1px 15px;
padding : 1px 15px;
...
@@ -37,13 +37,17 @@ var css = csjs`
...
@@ -37,13 +37,17 @@ var css = csjs`
margin-left : 15px;
margin-left : 15px;
}
}
.gasEstimation {
.gasEstimation {
margin-right: 15px;
margin-right
: 15px;
display: flex;
display
: flex;
align-items: center;
align-items
: center;
}
}
.gasStationIcon {
.gasStationIcon {
height: 13px;
margin-right : 5px;
margin-right: 5px;
}
.contextviewcontainer {
z-index : 50;
border-radius : 1px;
border : 2px solid var(--secondary);
}
}
.contextviewcontainer{
.contextviewcontainer{
z-index : 50;
z-index : 50;
...
...
src/app/files/file-explorer.js
View file @
a4033ac9
...
@@ -319,7 +319,7 @@ fileExplorer.prototype.init = function () {
...
@@ -319,7 +319,7 @@ fileExplorer.prototype.init = function () {
fileExplorer
.
prototype
.
publishToGist
=
function
()
{
fileExplorer
.
prototype
.
publishToGist
=
function
()
{
modalDialogCustom
.
confirm
(
modalDialogCustom
.
confirm
(
null
,
'Create a public gist'
,
'Are you sure you want to publish all your files anonymously as a public gist on github.com?'
,
'Are you sure you want to publish all your files anonymously as a public gist on github.com?'
,
()
=>
{
this
.
toGist
()
}
()
=>
{
this
.
toGist
()
}
)
)
...
...
src/app/panels/terminal.js
View file @
a4033ac9
...
@@ -136,7 +136,7 @@ class Terminal extends BaseApi {
...
@@ -136,7 +136,7 @@ class Terminal extends BaseApi {
self
.
_view
.
bar
=
yo
`
self
.
_view
.
bar
=
yo
`
<div class="
${
css
.
bar
}
">
<div class="
${
css
.
bar
}
">
${
self
.
_view
.
dragbar
}
${
self
.
_view
.
dragbar
}
<div class="
${
css
.
menu
}
border-top bg-light">
<div class="
${
css
.
menu
}
border-top b
order-dark b
g-light">
${
self
.
_view
.
icon
}
${
self
.
_view
.
icon
}
<div class=
${
css
.
clear
}
onclick=
${
clear
}
>
<div class=
${
css
.
clear
}
onclick=
${
clear
}
>
<i class="fas fa-ban" aria-hidden="true" title="Clear console"
<i class="fas fa-ban" aria-hidden="true" title="Clear console"
...
...
src/app/ui/styles/modaldialog-styles.js
View file @
a4033ac9
...
@@ -13,6 +13,8 @@ var css = csjs`
...
@@ -13,6 +13,8 @@ var css = csjs`
}
}
.modalBody {
.modalBody {
word-break: break-word;
word-break: break-word;
overflow-y: auto;
max-height: 600px;
}
}
.modalFooterOk {
.modalFooterOk {
}
}
...
...
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