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
9d51f74b
Unverified
Commit
9d51f74b
authored
Aug 09, 2018
by
yann300
Committed by
GitHub
Aug 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update terminal.js
parent
ed18c3d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
terminal.js
src/app/panels/terminal.js
+2
-0
No files found.
src/app/panels/terminal.js
View file @
9d51f74b
...
@@ -8,6 +8,7 @@ var vm = require('vm')
...
@@ -8,6 +8,7 @@ var vm = require('vm')
var
remixLib
=
require
(
'remix-lib'
)
var
remixLib
=
require
(
'remix-lib'
)
var
EventManager
=
remixLib
.
EventManager
var
EventManager
=
remixLib
.
EventManager
var
Web3
=
require
(
'web3'
)
var
Web3
=
require
(
'web3'
)
var
swarmgw
=
require
(
'swarmgw'
)
var
CommandInterpreterAPI
=
require
(
'../../lib/cmdInterpreterAPI'
)
var
CommandInterpreterAPI
=
require
(
'../../lib/cmdInterpreterAPI'
)
var
executionContext
=
require
(
'../../execution-context'
)
var
executionContext
=
require
(
'../../execution-context'
)
...
@@ -575,6 +576,7 @@ class Terminal {
...
@@ -575,6 +576,7 @@ class Terminal {
function
domTerminalFeatures
(
self
,
scopedCommands
)
{
function
domTerminalFeatures
(
self
,
scopedCommands
)
{
return
{
return
{
swarmgw
,
ethers
,
ethers
,
remix
:
self
.
_components
.
cmdInterpreter
,
remix
:
self
.
_components
.
cmdInterpreter
,
web3
:
executionContext
.
getProvider
()
!==
'vm'
?
new
Web3
(
executionContext
.
web3
().
currentProvider
)
:
null
,
web3
:
executionContext
.
getProvider
()
!==
'vm'
?
new
Web3
(
executionContext
.
web3
().
currentProvider
)
:
null
,
...
...
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