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
9b675bcd
Commit
9b675bcd
authored
Sep 08, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing unused variables from terminal props
parent
ae1700ed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
terminal.js
apps/remix-ide/src/app/panels/terminal.js
+16
-0
terminalAction.ts
libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
+0
-13
terminalTypes.ts
libs/remix-ui/terminal/src/lib/types/terminalTypes.ts
+5
-1
No files found.
apps/remix-ide/src/app/panels/terminal.js
View file @
9b675bcd
...
@@ -4,6 +4,7 @@ import ReactDOM from 'react-dom'
...
@@ -4,6 +4,7 @@ import ReactDOM from 'react-dom'
import
{
RemixUiTerminal
}
from
'@remix-ui/terminal'
// eslint-disable-line
import
{
RemixUiTerminal
}
from
'@remix-ui/terminal'
// eslint-disable-line
import
{
Plugin
}
from
'@remixproject/engine'
import
{
Plugin
}
from
'@remixproject/engine'
import
*
as
packageJson
from
'../../../../../package.json'
import
*
as
packageJson
from
'../../../../../package.json'
var
vm
=
require
(
'vm'
)
var
EventManager
=
require
(
'../../lib/events'
)
var
EventManager
=
require
(
'../../lib/events'
)
var
CommandInterpreterAPI
=
require
(
'../../lib/cmdInterpreterAPI'
)
var
CommandInterpreterAPI
=
require
(
'../../lib/cmdInterpreterAPI'
)
...
@@ -47,7 +48,18 @@ class Terminal extends Plugin {
...
@@ -47,7 +48,18 @@ class Terminal extends Plugin {
compilersArtefacts
:
this
.
registry
.
get
(
'compilersartefacts'
).
api
,
compilersArtefacts
:
this
.
registry
.
get
(
'compilersartefacts'
).
api
,
offsetToLineColumnConverter
:
this
.
registry
.
get
(
'offsettolinecolumnconverter'
).
api
offsetToLineColumnConverter
:
this
.
registry
.
get
(
'offsettolinecolumnconverter'
).
api
}
}
this
.
commandHelp
=
{
'remix.loadgist(id)'
:
'Load a gist in the file explorer.'
,
'remix.loadurl(url)'
:
'Load the given url in the file explorer. The url can be of type github, swarm, ipfs or raw http'
,
'remix.execute(filepath)'
:
'Run the script specified by file path. If filepath is empty, script currently displayed in the editor is executed.'
,
'remix.exeCurrent()'
:
'Run the script currently displayed in the editor'
,
'remix.help()'
:
'Display this help message'
}
this
.
blockchain
=
opts
.
blockchain
this
.
blockchain
=
opts
.
blockchain
this
.
vm
=
vm
this
.
_api
=
api
this
.
_opts
=
opts
this
.
config
=
config
this
.
version
=
packageJson
.
version
this
.
version
=
packageJson
.
version
this
.
data
=
{
this
.
data
=
{
lineLength
:
opts
.
lineLength
||
80
,
// ????
lineLength
:
opts
.
lineLength
||
80
,
// ????
...
@@ -103,7 +115,11 @@ class Terminal extends Plugin {
...
@@ -103,7 +115,11 @@ class Terminal extends Plugin {
renderComponent
()
{
renderComponent
()
{
ReactDOM
.
render
(
ReactDOM
.
render
(
<
RemixUiTerminal
<
RemixUiTerminal
event
=
{
this
.
event
}
blockchain
=
{
this
.
blockchain
}
blockchain
=
{
this
.
blockchain
}
api
=
{
this
.
_api
}
options
=
{
this
.
_opts
}
registerCommand
=
{
this
.
registerCommand
}
version
=
{
this
.
version
}
version
=
{
this
.
version
}
config
=
{
this
.
config
}
config
=
{
this
.
config
}
thisState
=
{
this
}
thisState
=
{
this
}
...
...
libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
View file @
9b675bcd
...
@@ -20,19 +20,6 @@ export const registerCommandAction = (name, command, activate, dispatch) => {
...
@@ -20,19 +20,6 @@ export const registerCommandAction = (name, command, activate, dispatch) => {
data
.
filterFns
[
commandName
]
=
filterFn
data
.
filterFns
[
commandName
]
=
filterFn
}
}
// const _appendItem = (item) => {
// var { el, gidx } = item
// _JOURNAL[gidx] = item
// if (!_jobs.length) {
// requestAnimationFrame(function updateTerminal () {
// _jobs.forEach(el => _view.journal.appendChild(el))
// .scroll2bottom()
// ._jobs = []
// })
// }
// if (data.activeFilters.commands[item.cmd]) _jobs.push(el)
// }
commands
[
name
]
=
function
()
{
commands
[
name
]
=
function
()
{
const
args
=
[...
arguments
]
const
args
=
[...
arguments
]
const
steps
=
[]
const
steps
=
[]
...
...
libs/remix-ui/terminal/src/lib/types/terminalTypes.ts
View file @
9b675bcd
...
@@ -7,17 +7,21 @@ export interface ROOTS {
...
@@ -7,17 +7,21 @@ export interface ROOTS {
}
}
export
interface
RemixUiTerminalProps
{
export
interface
RemixUiTerminalProps
{
propterties
:
any
event
:
any
event
:
any
blockchain
:
any
blockchain
:
any
api
:
any
options
:
any
version
:
any
version
:
any
config
:
any
config
:
any
thisState
:
any
thisState
:
any
vm
:
any
commandHelp
:
any
,
_deps
:
any
,
_deps
:
any
,
fileImport
:
any
,
fileImport
:
any
,
gistHandler
:
any
,
gistHandler
:
any
,
sourceHighlighter
:
any
,
sourceHighlighter
:
any
,
registry
:
any
,
registry
:
any
,
commands
:
any
,
txListener
:
any
,
txListener
:
any
,
eventsDecoder
:
any
,
eventsDecoder
:
any
,
logHtml
:
any
logHtml
:
any
...
...
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