fix: replace term.js to xterm

parent 516f39e1
......@@ -6992,9 +6992,6 @@
"stream-splicer": "2.0.0"
}
},
"layui-layer": {
"version": "git+https://github.com/jumpserver/layer.git#c568876741b64556df9916ed678a6106e1e82899"
},
"lazy-cache": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz",
......@@ -16683,11 +16680,6 @@
"inherits": "2.0.3"
}
},
"term.js": {
"version": "0.0.7",
"resolved": "https://registry.npmjs.org/term.js/-/term.js-0.0.7.tgz",
"integrity": "sha1-Um8kz8Dy72+A9RfJ4n2ulHvIcxU="
},
"tether": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/tether/-/tether-1.4.0.tgz",
......
......@@ -61,7 +61,6 @@
"socket.io": "^2.0.3",
"socket.io-client": "^2.0.4",
"ssh-keygen": "^0.4.1",
"term.js": "0.0.7",
"tether": "^1.4.0",
"uuid-js": "^0.7.5",
"xterm": "^2.9.2",
......
......@@ -71,7 +71,7 @@ export class HttpService {
get_guacamole_token(username: string, assetID: string, systemUserID: string) {
return this.get('/guacamole/api/tokens?username=' + username + '&password=zheng&asset_id=' +
assetID + '&system_user_id=' + systemUserID, {headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded')});
assetID + '&system_user_id=' + systemUserID, {headers: new HttpHeaders().set('Content-type', 'application/x-www-form-urlencoded')});
}
search(q: string) {
......
'use strict';
import * as terminal from 'term.js/src/term.js';
import * as terminal from 'xterm/src/xterm';
import * as io from 'socket.io-client';
export function Terminal(xargs: any) {
......
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