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
4def8f69
Commit
4def8f69
authored
Feb 10, 2018
by
ninabreznik
Committed by
yann300
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle transactionActions and unify icons with other icons
parent
6630ec8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
run-tab.js
src/app/tabs/run-tab.js
+5
-12
run-tab-styles.js
src/app/tabs/styles/run-tab-styles.js
+14
-6
No files found.
src/app/tabs/run-tab.js
View file @
4def8f69
...
@@ -24,7 +24,7 @@ var pendingTxsText = yo`<span></span>`
...
@@ -24,7 +24,7 @@ var pendingTxsText = yo`<span></span>`
function
runTab
(
container
,
appAPI
,
appEvents
)
{
function
runTab
(
container
,
appAPI
,
appEvents
)
{
var
events
=
new
EventManager
()
var
events
=
new
EventManager
()
var
clearInstanceElement
=
yo
`<i class="
${
css
.
clearinstance
}
fa fa-minus-square-o" title="Clear Instances List" aria-hidden="true"></i>`
var
clearInstanceElement
=
yo
`<i class="
${
css
.
clearinstance
}
${
css
.
icon
}
fa fa-minus-square-o" title="Clear Instances List" aria-hidden="true"></i>`
clearInstanceElement
.
addEventListener
(
'click'
,
()
=>
{
clearInstanceElement
.
addEventListener
(
'click'
,
()
=>
{
events
.
trigger
(
'clearInstance'
,
[])
events
.
trigger
(
'clearInstance'
,
[])
})
})
...
@@ -139,21 +139,14 @@ function makeRecorder (events, appAPI, appEvents) {
...
@@ -139,21 +139,14 @@ function makeRecorder (events, appAPI, appEvents) {
api
:
appAPI
api
:
appAPI
})
})
var
css2
=
csjs
`
var
css2
=
csjs
`
.container
{
.container
,
}
.runTxs,
.recorder {
.recorder {
font-size: 20px;
cursor: pointer;
}
.runTxs {
margin-left: 10px;
font-size: 20px;
cursor: pointer;
}
}
`
`
var
recordButton
=
yo
`<i class="fa fa-floppy-o savetransaction
${
css2
.
recorder
}
" title="Save Transactions" aria-hidden="true"></i>`
var
recordButton
=
yo
`<i class="fa fa-floppy-o savetransaction
${
css2
.
recorder
}
${
css
.
icon
}
" title="Save Transactions" aria-hidden="true"></i>`
var
runButton
=
yo
`<i class="fa fa-play runtransaction
${
css2
.
runTxs
}
" title="Run Transactions" aria-hidden="true"></i>`
var
runButton
=
yo
`<i class="fa fa-play runtransaction
${
css2
.
runTxs
}
${
css
.
icon
}
" title="Run Transactions" aria-hidden="true"></i>`
recordButton
.
onclick
=
()
=>
{
recordButton
.
onclick
=
()
=>
{
var
txJSON
=
JSON
.
stringify
(
recorder
.
getAll
(),
null
,
2
)
var
txJSON
=
JSON
.
stringify
(
recorder
.
getAll
(),
null
,
2
)
...
...
src/app/tabs/styles/run-tab-styles.js
View file @
4def8f69
...
@@ -109,6 +109,9 @@ var css = csjs`
...
@@ -109,6 +109,9 @@ var css = csjs`
.pendingTxsText {
.pendingTxsText {
${
styles
.
rightPanel
.
runTab
.
borderBox_Instance
}
${
styles
.
rightPanel
.
runTab
.
borderBox_Instance
}
font-style: italic;
font-style: italic;
display: flex;
justify-content: space-evenly;
align-items: center;
}
}
.item {
.item {
margin-right: 1em;
margin-right: 1em;
...
@@ -141,6 +144,7 @@ var css = csjs`
...
@@ -141,6 +144,7 @@ var css = csjs`
.icon {
.icon {
cursor: pointer;
cursor: pointer;
font-size: 12px;
font-size: 12px;
cursor: pointer;
color:
${
styles
.
rightPanel
.
runTab
.
icon_Color
}
;
color:
${
styles
.
rightPanel
.
runTab
.
icon_Color
}
;
margin-left: 5px;
margin-left: 5px;
}
}
...
@@ -171,13 +175,17 @@ var css = csjs`
...
@@ -171,13 +175,17 @@ var css = csjs`
.networkItem {
.networkItem {
margin-right: 5px;
margin-right: 5px;
}
}
.clearinstance {
font-size: 20px;
cursor: pointer;
margin-right: 10px;
}
.transactionActions {
.transactionActions {
float: right;
display: flex;
width: 50px;
justify-content: space-between;
}
`
`
module
.
exports
=
css
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