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
ae626b55
Commit
ae626b55
authored
Oct 19, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix terminal
parent
66370603
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
app.js
apps/remix-ide/src/app.js
+1
-3
terminal.js
apps/remix-ide/src/app/panels/terminal.js
+6
-9
No files found.
apps/remix-ide/src/app.js
View file @
ae626b55
...
...
@@ -283,7 +283,7 @@ class App {
registry
.
put
({
api
:
offsetToLineColumnConverter
,
name
:
'offsettolinecolumnconverter'
})
// -------------------Terminal----------------------------------------
makeUdapp
(
blockchain
,
compilersArtefacts
,
(
domEl
)
=>
terminal
.
logHtml
(
domEl
))
const
terminal
=
new
Terminal
(
{
appManager
,
blockchain
},
{
...
...
@@ -297,8 +297,6 @@ class App {
}
}
)
makeUdapp
(
blockchain
,
compilersArtefacts
,
(
domEl
)
=>
terminal
.
logHtml
(
domEl
))
const
contextualListener
=
new
ContextualListener
({
editor
})
engine
.
register
([
...
...
apps/remix-ide/src/app/panels/terminal.js
View file @
ae626b55
...
...
@@ -12,7 +12,6 @@ const AutoCompletePopup = require('../ui/auto-complete-popup')
import
{
CompilerImports
}
from
'@remix-project/core-plugin'
// eslint-disable-line
const
globalRegistry
=
require
(
'../../global/registry'
)
const
SourceHighlighter
=
require
(
'../../app/editor/sourceHighlighter'
)
const
GistHandler
=
require
(
'../../lib/gist-handler'
)
const
KONSOLES
=
[]
...
...
@@ -29,12 +28,11 @@ const profile = {
}
class
Terminal
extends
Plugin
{
constructor
(
opts
,
api
,
registry
)
{
constructor
(
opts
,
api
)
{
super
(
profile
)
this
.
fileImport
=
new
CompilerImports
()
this
.
gistHandler
=
new
GistHandler
()
this
.
event
=
new
EventManager
()
this
.
registry
=
registry
this
.
globalRegistry
=
globalRegistry
this
.
element
=
document
.
createElement
(
'div'
)
this
.
element
.
setAttribute
(
'class'
,
'panel'
)
...
...
@@ -42,12 +40,11 @@ class Terminal extends Plugin {
this
.
element
.
setAttribute
(
'data-id'
,
'terminalContainer-view'
)
this
.
eventsDecoder
=
this
.
globalRegistry
.
get
(
'eventsDecoder'
).
api
this
.
txListener
=
this
.
globalRegistry
.
get
(
'txlistener'
).
api
this
.
sourceHighlighter
=
new
SourceHighlighter
()
this
.
_deps
=
{
fileManager
:
this
.
r
egistry
.
get
(
'filemanager'
).
api
,
editor
:
this
.
r
egistry
.
get
(
'editor'
).
api
,
compilersArtefacts
:
this
.
r
egistry
.
get
(
'compilersartefacts'
).
api
,
offsetToLineColumnConverter
:
this
.
r
egistry
.
get
(
'offsettolinecolumnconverter'
).
api
fileManager
:
this
.
globalR
egistry
.
get
(
'filemanager'
).
api
,
editor
:
this
.
globalR
egistry
.
get
(
'editor'
).
api
,
compilersArtefacts
:
this
.
globalR
egistry
.
get
(
'compilersartefacts'
).
api
,
offsetToLineColumnConverter
:
this
.
globalR
egistry
.
get
(
'offsettolinecolumnconverter'
).
api
}
this
.
commandHelp
=
{
'remix.loadgist(id)'
:
'Load a gist in the file explorer.'
,
...
...
@@ -60,7 +57,7 @@ class Terminal extends Plugin {
this
.
vm
=
vm
this
.
_api
=
api
this
.
_opts
=
opts
this
.
config
=
r
egistry
.
get
(
'config'
).
api
this
.
config
=
this
.
globalR
egistry
.
get
(
'config'
).
api
this
.
version
=
packageJson
.
version
this
.
data
=
{
lineLength
:
opts
.
lineLength
||
80
,
// ????
...
...
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