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
fa123d73
Unverified
Commit
fa123d73
authored
Oct 29, 2018
by
yann300
Committed by
GitHub
Oct 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1583 from ethereum/addCompilerToTerminal
Add compiler to terminal
parents
281b15f5
4c059194
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
editor-panel.js
src/app/panels/editor-panel.js
+6
-2
terminal.js
src/app/panels/terminal.js
+2
-0
No files found.
src/app/panels/editor-panel.js
View file @
fa123d73
...
...
@@ -26,7 +26,8 @@ class EditorPanel {
config
:
self
.
_components
.
registry
.
get
(
'config'
).
api
,
txListener
:
self
.
_components
.
registry
.
get
(
'txlistener'
).
api
,
fileManager
:
self
.
_components
.
registry
.
get
(
'filemanager'
).
api
,
udapp
:
self
.
_components
.
registry
.
get
(
'udapp'
).
api
udapp
:
self
.
_components
.
registry
.
get
(
'udapp'
).
api
,
compiler
:
self
.
_components
.
registry
.
get
(
'compiler'
).
api
}
self
.
data
=
{
_FILE_SCROLL_DELTA
:
200
,
...
...
@@ -46,7 +47,10 @@ class EditorPanel {
contextualListener
:
contextualListener
,
contextView
:
new
ContextView
({
contextualListener
:
contextualListener
,
editor
:
editor
}),
terminal
:
new
Terminal
({
udapp
:
self
.
_deps
.
udapp
udapp
:
self
.
_deps
.
udapp
,
compilers
:
{
'solidity'
:
self
.
_deps
.
compiler
}
},
{
getPosition
:
(
event
)
=>
{
...
...
src/app/panels/terminal.js
View file @
fa123d73
...
...
@@ -378,6 +378,7 @@ class Terminal {
<li><a target="_blank" href="https://web3js.readthedocs.io/en/1.0/">web3 version 1.0.0</a></li>
<li><a target="_blank" href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> </li>
<li><a target="_blank" href="https://www.npmjs.com/package/swarmgw">swarmgw</a> </li>
<li>compilers - contains currently loaded compiler</li>
</ul>
</li>
<li>Executing common command to interact with the Remix interface (see list of commands above). Note that these commands can also be included and run from a JavaScript script.</li>
...
...
@@ -614,6 +615,7 @@ class Terminal {
function
domTerminalFeatures
(
self
,
scopedCommands
)
{
return
{
compilers
:
self
.
_opts
.
compilers
,
swarmgw
,
ethers
,
remix
:
self
.
_components
.
cmdInterpreter
,
...
...
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