Commit aa986a2b authored by yann300's avatar yann300

use latest remix-plugin

parent 9e6e81b0
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment