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
6bbdb4ab
Commit
6bbdb4ab
authored
Sep 07, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add listen on network menu item
parent
1afb5e52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
app.js
src/app.js
+4
-0
editor-panel.js
src/app/panels/editor-panel.js
+3
-0
terminal.js
src/app/panels/terminal.js
+5
-0
No files found.
src/app.js
View file @
6bbdb4ab
...
...
@@ -531,6 +531,10 @@ function run () {
udapp
:
udapp
.
event
}})
self
.
_components
.
editorpanel
.
terminal
().
event
.
register
(
'listenOnNetWork'
,
(
listenOnNetWork
)
=>
{
txlistener
.
setListenOnNetwork
(
listenOnNetWork
)
})
var
eventsDecoder
=
new
EventsDecoder
({
api
:
{
resolveReceipt
:
function
(
tx
,
cb
)
{
...
...
src/app/panels/editor-panel.js
View file @
6bbdb4ab
...
...
@@ -231,6 +231,9 @@ class EditorPanel {
var
self
=
this
return
self
.
_components
.
terminal
.
registerCommand
(
name
,
command
)
}
terminal
()
{
return
this
.
_components
.
terminal
}
_renderTabsbar
()
{
var
self
=
this
if
(
self
.
_view
.
tabsbar
)
return
self
.
_view
.
tabsbar
...
...
src/app/panels/terminal.js
View file @
6bbdb4ab
...
...
@@ -214,10 +214,15 @@ class Terminal {
</div>
${
self
.
_view
.
dropdown
}
<input type="text" class=
${
css
.
filter
}
onkeyup=
${
filter
}
></div>
<input onchange=
${
listenOnNetwork
}
type="checkbox" /><label title="Remix will listen on all transactions mined in the current environment and not only transactions created from the GUI">Listen on network</label>
${
self
.
_view
.
icon
}
</div>
</div>
`
function
listenOnNetwork
(
ev
)
{
self
.
event
.
trigger
(
'listenOnNetWork'
,
[
ev
.
currentTarget
.
checked
])
}
self
.
_view
.
term
=
yo
`
<div class=
${
css
.
terminal
}
onscroll=
${
throttle
(
reattach
,
10
)}
onclick=
${
focusinput
}
>
${
self
.
_view
.
journal
}
...
...
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