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
f43f4815
Unverified
Commit
f43f4815
authored
May 22, 2018
by
yann300
Committed by
GitHub
May 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1318 from ethereum/refactor_compile
refactor compile tab
parents
3adf2ec3
ed61791b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
144 deletions
+1
-144
compile-tab.js
src/app/tabs/compile-tab.js
+0
-0
compile-tab-styles.js
src/app/tabs/styles/compile-tab-styles.js
+0
-143
renderer.js
src/app/ui/renderer.js
+1
-1
No files found.
src/app/tabs/compile-tab.js
View file @
f43f4815
This diff is collapsed.
Click to expand it.
src/app/tabs/styles/compile-tab-styles.js
deleted
100644 → 0
View file @
3adf2ec3
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'../../ui/styles-guide/theme-chooser'
)
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.compileTabView {
padding: 2%;
}
.contract {
display: block;
margin: 3% 0;
}
.compileContainer {
${
styles
.
rightPanel
.
compileTab
.
box_CompileContainer
}
;
margin-bottom: 2%;
}
.autocompileContainer {
width: 90px;
display: flex;
align-items: center;
}
.autocompile {}
.autocompileTitle {
font-weight: bold;
margin: 1% 0;
}
.autocompileText {
margin: 1% 0;
font-size: 12px;
overflow: hidden;
word-break: normal;
line-height: initial;
}
.warnCompilationSlow {
color:
${
styles
.
rightPanel
.
compileTab
.
icon_WarnCompilation_Color
}
;
margin-left: 1%;
}
.compileButtons {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.name {
display: flex;
}
.size {
display: flex;
}
.compileButton {
${
styles
.
rightPanel
.
compileTab
.
button_Compile
}
;
width: 120px;
min-width: 110px;
margin-right: 1%;
font-size: 12px;
}
.container {
${
styles
.
rightPanel
.
compileTab
.
box_CompileContainer
}
;
margin: 0;
display: flex;
align-items: center;
}
.contractNames {
${
styles
.
rightPanel
.
compileTab
.
dropdown_CompileContract
}
;
margin-right: 5%;
}
.contractButtons {
display: flex;
cursor: pointer;
justify-content: center;
text-align: center;
}
.details {
${
styles
.
rightPanel
.
compileTab
.
button_Details
}
;
}
.publish {
${
styles
.
rightPanel
.
compileTab
.
button_Publish
}
;
margin-left: 2%;
width: 120px;
}
.log {
${
styles
.
rightPanel
.
compileTab
.
box_CompileContainer
}
;
display: flex;
flex-direction: column;
margin-bottom: 5%;
overflow: visible;
}
.key {
margin-right: 5px;
color:
${
styles
.
rightPanel
.
text_Primary
}
;
text-transform: uppercase;
width: 100%;
}
.value {
display: flex;
width: 100%;
margin-top: 1.5%;
}
.questionMark {
margin-left: 2%;
cursor: pointer;
color:
${
styles
.
rightPanel
.
icon_Color_TogglePanel
}
;
}
.questionMark:hover {
color:
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
;
}
.detailsJSON {
padding: 8px 0;
background-color:
${
styles
.
rightPanel
.
modalDialog_BackgroundColor_Primary
}
;
border: none;
color:
${
styles
.
rightPanel
.
modalDialog_text_Secondary
}
;
}
.icon {
margin-right: 3%;
}
.spinningIcon {
margin-right: .3em;
animation: spin 2s linear infinite;
}
.bouncingIcon {
margin-right: .3em;
animation: bounce 2s infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@-webkit-keyframes bounce {
0% {
margin-bottom: 0;
color:
${
styles
.
colors
.
transparent
}
;
}
70% {
margin-bottom: 0;
color:
${
styles
.
rightPanel
.
text_Secondary
}
;
}
100% {
margin-bottom: 0;
color:
${
styles
.
colors
.
transparent
}
;
}
}
`
module
.
exports
=
css
src/app/ui/renderer.js
View file @
f43f4815
...
@@ -56,7 +56,7 @@ Renderer.prototype.error = function (message, container, opt) {
...
@@ -56,7 +56,7 @@ Renderer.prototype.error = function (message, container, opt) {
var
$pre
=
$
(
opt
.
useSpan
?
yo
`<span />`
:
yo
`<pre />`
).
html
(
message
)
var
$pre
=
$
(
opt
.
useSpan
?
yo
`<span />`
:
yo
`<pre />`
).
html
(
message
)
var
$error
=
$
(
yo
`<div class="sol
${
opt
.
type
}
"><div class="close"><i class="fa fa-close"></i></div></div>`
).
prepend
(
$pre
)
var
$error
=
$
(
yo
`<div class="sol
${
opt
.
type
}
"><div class="close"><i class="fa fa-close"></i></div></div>`
).
prepend
(
$pre
)
container
.
append
(
$error
)
$
(
container
)
.
append
(
$error
)
$error
.
click
((
ev
)
=>
{
$error
.
click
((
ev
)
=>
{
if
(
opt
.
errFile
&&
opt
.
errLine
)
{
if
(
opt
.
errFile
&&
opt
.
errLine
)
{
...
...
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