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
9e0a2537
Commit
9e0a2537
authored
Feb 06, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move css styles of run-tab to its own file
parent
cd8b855f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
185 additions
and
190 deletions
+185
-190
run-tab.js
src/app/tabs/run-tab.js
+3
-190
run-tab-styles.js
src/app/tabs/styles/run-tab-styles.js
+182
-0
No files found.
src/app/tabs/run-tab.js
View file @
9e0a2537
...
...
@@ -12,197 +12,8 @@ var Recorder = require('../../recorder')
var
EventManager
=
require
(
'remix-lib'
).
EventManager
var
addTooltip
=
require
(
'../ui/tooltip'
)
// -------------- styling ----------------------
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'remix-lib'
).
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.runTabView {
padding: 2%;
display: flex;
flex-direction: column;
}
.settings {
${
styles
.
rightPanel
.
runTab
.
box_RunTab
}
margin-bottom: 2%;
padding: 10px 15px 15px 15px;
}
.crow {
margin-top: .5em;
display: flex;
align-items: center;
}
.col1 {
width: 30%;
float: left;
align-self: center;
}
.col1_1 {
font-size: 12px;
width: 25%;
min-width: 75px;
float: left;
align-self: center;
}
.environment {
display: flex;
align-items: center;
position: relative;
}
.col2 {
${
styles
.
rightPanel
.
runTab
.
input_RunTab
}
}
.col2_1 {
${
styles
.
rightPanel
.
runTab
.
input_RunTab
}
width: 165px;
min-width: 165px;
}
.col2_2 {
${
styles
.
rightPanel
.
runTab
.
dropdown_RunTab
}
width: 82px;
min-width: 82px;
}
.select {
${
styles
.
rightPanel
.
runTab
.
dropdown_RunTab
}
font-weight: normal;
min-width: 150px;
}
.instanceContainer {
display: flex;
flex-direction: column;
margin-top: 2%;
border: none;
text-align: center;
}
.pendingTxsContainer {
${
styles
.
rightPanel
.
runTab
.
box_Instance
}
display: flex;
flex-direction: column;
margin-top: 2%;
border: none;
text-align: center;
}
.container {
${
styles
.
rightPanel
.
runTab
.
box_RunTab
}
margin-top: 2%;
}
.contractNames {
${
styles
.
rightPanel
.
runTab
.
dropdown_RunTab
}
width: 100%;
border: 1px solid
}
.contractNamesError {
border: 1px solid
${
styles
.
appProperties
.
errorText_Color
}
}
.subcontainer {
display: flex;
flex-direction: row;
align-items: baseline;
}
.button {
display: flex;
align-items: center;
margin-top: 2%;
}
.transaction {
${
styles
.
rightPanel
.
runTab
.
button_transaction
}
}
.atAddress {
${
styles
.
rightPanel
.
runTab
.
button_atAddress
}
}
.create {
${
styles
.
rightPanel
.
runTab
.
button_Create
}
}
.input {
${
styles
.
rightPanel
.
runTab
.
input_RunTab
}
}
.noInstancesText {
${
styles
.
rightPanel
.
runTab
.
box_Instance
}
font-style: italic;
}
.pendingTxsText {
${
styles
.
rightPanel
.
runTab
.
borderBox_Instance
}
font-style: italic;
}
.item {
margin-right: 1em;
display: flex;
align-items: center;
}
.transact {
color:
${
styles
.
colors
.
lightRed
}
;
margin-right: .3em;
}
.payable {
color:
${
styles
.
colors
.
red
}
;
margin-right: .3em;
}
.call {
color:
${
styles
.
colors
.
lightBlue
}
;
margin-right: .3em;
}
.pendingContainer {
display: flex;
align-items: baseline;
}
.pending {
height: 25px;
text-align: center;
padding-left: 10px;
border-radius: 3px;
margin-left: 5px;
}
.icon {
font-size: 12px;
color:
${
styles
.
rightPanel
.
runTab
.
icon_Color
}
;
margin-left: 5px;
}
.icon:hover {
font-size: 12px;
color:
${
styles
.
rightPanel
.
runTab
.
icon_HoverColor
}
;
}
.errorIcon {
color:
${
styles
.
appProperties
.
errorText_Color
}
;
margin-left: 15px;
}
.failDesc {
color:
${
styles
.
appProperties
.
errorText_Color
}
;
padding-left: 10px;
display: inline;
}
.network {
display: flex;
justify-content: flex-end;
align-items: center;
position: absolute;
color: grey;
width: 100%;
height: 100%;
padding-right: 28px;
pointer-events: none;
}
.networkItem {
margin-right: 5px;
}
.clearinstance {
font-size: 20px;
cursor: pointer;
margin-right: 10px;
}
.transactionActions {
float: right;
}
.createAccount {
margin-left: 5px;
cursor: pointer;
}
.createAccount:hover {
color:
${
styles
.
colors
.
orange
}
;
}
`
module
.
exports
=
runTab
var
css
=
require
(
'./styles/run-tab-styles'
)
var
instanceContainer
=
yo
`<div class="
${
css
.
instanceContainer
}
"></div>`
var
noInstancesText
=
yo
`<div class="
${
css
.
noInstancesText
}
">0 contract Instances</div>`
...
...
@@ -630,3 +441,5 @@ function settings (container, appAPI, appEvents) {
return
el
}
module
.
exports
=
runTab
src/app/tabs/styles/run-tab-styles.js
0 → 100644
View file @
9e0a2537
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'remix-lib'
).
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.runTabView {
padding: 2%;
display: flex;
flex-direction: column;
}
.settings {
${
styles
.
rightPanel
.
runTab
.
box_RunTab
}
margin-bottom: 2%;
padding: 10px 15px 15px 15px;
}
.crow {
margin-top: .5em;
display: flex;
align-items: center;
}
.col1 {
width: 30%;
float: left;
align-self: center;
}
.col1_1 {
font-size: 12px;
width: 25%;
min-width: 75px;
float: left;
align-self: center;
}
.environment {
display: flex;
align-items: center;
position: relative;
}
.col2 {
${
styles
.
rightPanel
.
runTab
.
input_RunTab
}
}
.col2_1 {
${
styles
.
rightPanel
.
runTab
.
input_RunTab
}
width: 165px;
min-width: 165px;
}
.col2_2 {
${
styles
.
rightPanel
.
runTab
.
dropdown_RunTab
}
width: 82px;
min-width: 82px;
}
.select {
${
styles
.
rightPanel
.
runTab
.
dropdown_RunTab
}
font-weight: normal;
min-width: 150px;
}
.instanceContainer {
display: flex;
flex-direction: column;
margin-top: 2%;
border: none;
text-align: center;
}
.pendingTxsContainer {
${
styles
.
rightPanel
.
runTab
.
box_Instance
}
display: flex;
flex-direction: column;
margin-top: 2%;
border: none;
text-align: center;
}
.container {
${
styles
.
rightPanel
.
runTab
.
box_RunTab
}
margin-top: 2%;
}
.contractNames {
${
styles
.
rightPanel
.
runTab
.
dropdown_RunTab
}
width: 100%;
border: 1px solid
}
.contractNamesError {
border: 1px solid
${
styles
.
appProperties
.
errorText_Color
}
}
.subcontainer {
display: flex;
flex-direction: row;
align-items: baseline;
}
.button {
display: flex;
align-items: center;
margin-top: 2%;
}
.transaction {
${
styles
.
rightPanel
.
runTab
.
button_transaction
}
}
.atAddress {
${
styles
.
rightPanel
.
runTab
.
button_atAddress
}
}
.create {
${
styles
.
rightPanel
.
runTab
.
button_Create
}
}
.input {
${
styles
.
rightPanel
.
runTab
.
input_RunTab
}
}
.noInstancesText {
${
styles
.
rightPanel
.
runTab
.
box_Instance
}
font-style: italic;
}
.pendingTxsText {
${
styles
.
rightPanel
.
runTab
.
borderBox_Instance
}
font-style: italic;
}
.item {
margin-right: 1em;
display: flex;
align-items: center;
}
.transact {
color:
${
styles
.
colors
.
lightRed
}
;
margin-right: .3em;
}
.payable {
color:
${
styles
.
colors
.
red
}
;
margin-right: .3em;
}
.call {
color:
${
styles
.
colors
.
lightBlue
}
;
margin-right: .3em;
}
.pendingContainer {
display: flex;
align-items: baseline;
}
.pending {
height: 25px;
text-align: center;
padding-left: 10px;
border-radius: 3px;
margin-left: 5px;
}
.icon {
font-size: 12px;
color:
${
styles
.
rightPanel
.
runTab
.
icon_Color
}
;
margin-left: 5px;
}
.icon:hover {
font-size: 12px;
color:
${
styles
.
rightPanel
.
runTab
.
icon_HoverColor
}
;
}
.errorIcon {
color:
${
styles
.
appProperties
.
errorText_Color
}
;
margin-left: 15px;
}
.failDesc {
color:
${
styles
.
appProperties
.
errorText_Color
}
;
padding-left: 10px;
display: inline;
}
.network {
display: flex;
justify-content: flex-end;
align-items: center;
position: absolute;
color: grey;
width: 100%;
height: 100%;
padding-right: 28px;
pointer-events: none;
}
.networkItem {
margin-right: 5px;
}
.clearinstance {
font-size: 20px;
cursor: pointer;
margin-right: 10px;
}
.transactionActions {
float: right;
`
module
.
exports
=
css
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