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
aa986a2b
Commit
aa986a2b
authored
Apr 15, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use latest remix-plugin
parent
9e6e81b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
terminal.js
src/app/panels/terminal.js
+12
-13
No files found.
src/app/panels/terminal.js
View file @
aa986a2b
...
@@ -17,7 +17,7 @@ var AutoCompletePopup = require('../ui/auto-complete-popup')
...
@@ -17,7 +17,7 @@ var AutoCompletePopup = require('../ui/auto-complete-popup')
var
csjs
=
require
(
'csjs-inject'
)
var
csjs
=
require
(
'csjs-inject'
)
var
css
=
require
(
'./styles/terminal-styles'
)
var
css
=
require
(
'./styles/terminal-styles'
)
import
{
ApiFactory
}
from
'remix-plugin'
import
{
BaseApi
}
from
'remix-plugin'
var
packageV
=
require
(
'../../../package.json'
)
var
packageV
=
require
(
'../../../package.json'
)
...
@@ -27,9 +27,18 @@ function register (api) { KONSOLES.push(api) }
...
@@ -27,9 +27,18 @@ function register (api) { KONSOLES.push(api) }
var
ghostbar
=
yo
`<div class=
${
css
.
ghostbar
}
bg-secondary></div>`
var
ghostbar
=
yo
`<div class=
${
css
.
ghostbar
}
bg-secondary></div>`
class
Terminal
extends
ApiFactory
{
const
profile
=
{
displayName
:
'Terminal'
,
name
:
'terminal'
,
methods
:
[],
events
:
[],
description
:
' - '
,
required
:
false
}
class
Terminal
extends
BaseApi
{
constructor
(
opts
,
api
)
{
constructor
(
opts
,
api
)
{
super
()
super
(
profile
)
var
self
=
this
var
self
=
this
self
.
event
=
new
EventManager
()
self
.
event
=
new
EventManager
()
self
.
_api
=
api
self
.
_api
=
api
...
@@ -116,16 +125,6 @@ class Terminal extends ApiFactory {
...
@@ -116,16 +125,6 @@ class Terminal extends ApiFactory {
focus
()
{
focus
()
{
if
(
this
.
_view
.
input
)
this
.
_view
.
input
.
focus
()
if
(
this
.
_view
.
input
)
this
.
_view
.
input
.
focus
()
}
}
get
profile
()
{
return
{
displayName
:
'terminal'
,
name
:
'terminal'
,
methods
:
[],
events
:
[],
description
:
' - '
,
required
:
false
}
}
render
()
{
render
()
{
var
self
=
this
var
self
=
this
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
...
...
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