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
563e07ae
Commit
563e07ae
authored
Jan 11, 2019
by
Iuri Matias
Committed by
yann300
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mode RunTab to a class
parent
d5696f24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
run-tab.js
src/app/tabs/run-tab.js
+12
-7
No files found.
src/app/tabs/run-tab.js
View file @
563e07ae
var
$
=
require
(
'jquery'
)
var
$
=
require
(
'jquery'
)
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
EventManager
=
require
(
'../../lib/events'
)
var
EventManager
=
require
(
'../../lib/events'
)
var
glob
l
alRegistry
=
require
(
'../../global/registry'
)
var
globalRegistry
=
require
(
'../../global/registry'
)
var
executionContext
=
require
(
'../../execution-context'
)
var
executionContext
=
require
(
'../../execution-context'
)
var
Card
=
require
(
'../ui/card'
)
var
Card
=
require
(
'../ui/card'
)
var
css
=
require
(
'./styles/run-tab-styles'
)
var
css
=
require
(
'./styles/run-tab-styles'
)
...
@@ -15,7 +15,9 @@ var ContractDropdownUI = require('./runTab/contractDropdown.js')
...
@@ -15,7 +15,9 @@ var ContractDropdownUI = require('./runTab/contractDropdown.js')
var
Recorder
=
require
(
'./runTab/model/recorder.js'
)
var
Recorder
=
require
(
'./runTab/model/recorder.js'
)
var
RecorderUI
=
require
(
'./runTab/recorder.js'
)
var
RecorderUI
=
require
(
'./runTab/recorder.js'
)
function
runTab
(
opts
,
localRegistry
)
{
class
RunTab
{
constructor
(
opts
,
localRegistry
)
{
var
self
=
this
var
self
=
this
self
.
event
=
new
EventManager
()
self
.
event
=
new
EventManager
()
self
.
_view
=
{}
self
.
_view
=
{}
...
@@ -25,7 +27,7 @@ function runTab (opts, localRegistry) {
...
@@ -25,7 +27,7 @@ function runTab (opts, localRegistry) {
another environment. e.g Transactions created in Javascript VM can be replayed in the Injected Web3.`
another environment. e.g Transactions created in Javascript VM can be replayed in the Injected Web3.`
}
}
self
.
_components
=
{}
self
.
_components
=
{}
self
.
_components
.
registry
=
localRegistry
||
globl
alRegistry
self
.
_components
.
registry
=
localRegistry
||
glob
alRegistry
self
.
_components
.
transactionContextAPI
=
{
self
.
_components
.
transactionContextAPI
=
{
getAddress
:
(
cb
)
=>
{
getAddress
:
(
cb
)
=>
{
cb
(
null
,
$
(
'#txorigin'
).
val
())
cb
(
null
,
$
(
'#txorigin'
).
val
())
...
@@ -184,9 +186,13 @@ function runTab (opts, localRegistry) {
...
@@ -184,9 +186,13 @@ function runTab (opts, localRegistry) {
</div>
</div>
`
`
container
.
appendChild
(
el
)
container
.
appendChild
(
el
)
this
.
container
=
container
}
render
()
{
return
this
.
container
}
return
{
render
()
{
return
container
},
profile
()
{
profile
()
{
return
{
return
{
name
:
'run transactions'
,
name
:
'run transactions'
,
...
@@ -196,7 +202,6 @@ function runTab (opts, localRegistry) {
...
@@ -196,7 +202,6 @@ function runTab (opts, localRegistry) {
description
:
'execute and save transactions'
description
:
'execute and save transactions'
}
}
}
}
}
}
}
module
.
exports
=
r
unTab
module
.
exports
=
R
unTab
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