use latest remix-plugin

pull/1/head
yann300 6 years ago
parent 9e6e81b038
commit aa986a2b4c
  1. 25
      src/app/panels/terminal.js

@ -17,7 +17,7 @@ var AutoCompletePopup = require('../ui/auto-complete-popup')
var csjs = require('csjs-inject')
var css = require('./styles/terminal-styles')
import { ApiFactory } from 'remix-plugin'
import { BaseApi } from 'remix-plugin'
var packageV = require('../../../package.json')
@ -27,9 +27,18 @@ function register (api) { KONSOLES.push(api) }
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) {
super()
super(profile)
var self = this
self.event = new EventManager()
self._api = api
@ -116,16 +125,6 @@ class Terminal extends ApiFactory {
focus () {
if (this._view.input) this._view.input.focus()
}
get profile () {
return {
displayName: 'terminal',
name: 'terminal',
methods: [],
events: [],
description: ' - ',
required: false
}
}
render () {
var self = this
if (self._view.el) return self._view.el

Loading…
Cancel
Save