mirror of https://github.com/rancher/ui.git
bump Xterm.js to v3.7
This commit is contained in:
parent
974d2da35c
commit
08c13b8234
|
|
@ -86,6 +86,13 @@ module.exports = function(defaults) {
|
|||
app.import('node_modules/prismjs/components/prism-json.js');
|
||||
app.import('node_modules/ember-source/dist/ember-template-compiler.js');
|
||||
app.import('node_modules/ipaddr.js/lib/ipaddr.js');
|
||||
app.import('node_modules/xterm/dist/xterm.js');
|
||||
app.import('node_modules/xterm/dist/addons/fit/fit.js', {
|
||||
using: [{
|
||||
transformation: 'amd',
|
||||
as: 'xterm-fit'
|
||||
}]
|
||||
});
|
||||
|
||||
// app.import('vendor/aws-sdk-ec2.js');
|
||||
app.import('vendor/aws-sdk-ec2-iam-2.279.1.min.js');
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { get, set, observer, computed } from '@ember/object';
|
|||
import { inject as service } from '@ember/service';
|
||||
import { alternateLabel } from 'ui/utils/platform';
|
||||
import ThrottledResize from 'shared/mixins/throttled-resize';
|
||||
import Terminal from 'npm:xterm';
|
||||
import { proposeGeometry } from 'ui/utils/xterm-fit-addon';
|
||||
import * as fit from 'xterm-fit'
|
||||
import { next } from '@ember/runloop';
|
||||
import layout from './template';
|
||||
import Component from '@ember/component';
|
||||
|
|
@ -126,11 +126,9 @@ export default Component.extend(ThrottledResize, {
|
|||
socket.onopen = () => {
|
||||
set(this, 'status', 'initializing');
|
||||
|
||||
var term = new Terminal({
|
||||
useStyle: true,
|
||||
screenKeys: true,
|
||||
cursorBlink: false
|
||||
});
|
||||
Terminal.applyAddon(fit)
|
||||
|
||||
var term = new Terminal({});
|
||||
|
||||
set(this, 'term', term);
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
"semver": "^5.4.1",
|
||||
"shell-quote": "^1.6.1",
|
||||
"url-regex": "^4.1.1",
|
||||
"xterm": "^2.9.2",
|
||||
"xterm": "^3.7.0",
|
||||
"yamljs": "^0.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue