mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-26 04:34:21 +01:00
html: upgrade to xterm 5.4.0 (#1303)
* html: Upgrade xterm.js Upgrade xterm.js to the latest stable release. As part of this upgrade, the xterm packages have been scoped as the unscoped packages were not updated. The addons have also been upgraded to match the compatible versions. As part of this upgrade, a compatibility issue was identified with the Gulp task to inline source. By disabling compression, this allowed the task to complete successfully. The size of the source file `html.h` did not change significantly which indicates compression was not being applied previously. Signed-off-by: Michael Lorant <michael.lorant@nine.com.au> * html: rebuild header file --------- Signed-off-by: Michael Lorant <michael.lorant@nine.com.au> Co-authored-by: Shuanglei Tao <tsl0922@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { h, Component } from 'preact';
|
||||
|
||||
import { ITerminalOptions, ITheme } from 'xterm';
|
||||
import { ITerminalOptions, ITheme } from '@xterm/xterm';
|
||||
import { ClientOptions, FlowControl } from './terminal/xterm';
|
||||
import { Terminal } from './terminal';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { bind } from 'decko';
|
||||
import { Component, h } from 'preact';
|
||||
import { Xterm, XtermOptions } from './xterm';
|
||||
|
||||
import 'xterm/css/xterm.css';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import { Modal } from '../modal';
|
||||
|
||||
interface Props extends XtermOptions {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// ported from hterm.Terminal.prototype.showOverlay
|
||||
// https://chromium.googlesource.com/apps/libapps/+/master/hterm/js/hterm_terminal.js
|
||||
import { bind } from 'decko';
|
||||
import { ITerminalAddon, Terminal } from 'xterm';
|
||||
import { ITerminalAddon, Terminal } from '@xterm/xterm';
|
||||
|
||||
export class OverlayAddon implements ITerminalAddon {
|
||||
private terminal: Terminal;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { bind } from 'decko';
|
||||
import { saveAs } from 'file-saver';
|
||||
import { IDisposable, ITerminalAddon, Terminal } from 'xterm';
|
||||
import { IDisposable, ITerminalAddon, Terminal } from '@xterm/xterm';
|
||||
import * as Zmodem from 'zmodem.js/src/zmodem_browser';
|
||||
import { TrzszFilter } from 'trzsz';
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { bind } from 'decko';
|
||||
import { IDisposable, ITerminalOptions, Terminal } from 'xterm';
|
||||
import { CanvasAddon } from 'xterm-addon-canvas';
|
||||
import { WebglAddon } from 'xterm-addon-webgl';
|
||||
import { FitAddon } from 'xterm-addon-fit';
|
||||
import { WebLinksAddon } from 'xterm-addon-web-links';
|
||||
import { ImageAddon } from 'xterm-addon-image';
|
||||
import { IDisposable, ITerminalOptions, Terminal } from '@xterm/xterm';
|
||||
import { CanvasAddon } from '@xterm/addon-canvas';
|
||||
import { WebglAddon } from '@xterm/addon-webgl';
|
||||
import { FitAddon } from '@xterm/addon-fit';
|
||||
import { WebLinksAddon } from '@xterm/addon-web-links';
|
||||
import { ImageAddon } from '@xterm/addon-image';
|
||||
import { OverlayAddon } from './addons/overlay';
|
||||
import { ZmodemAddon } from './addons/zmodem';
|
||||
|
||||
import 'xterm/css/xterm.css';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
|
||||
interface TtydTerminal extends Terminal {
|
||||
fit(): void;
|
||||
|
||||
Reference in New Issue
Block a user