mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-02-06 01:54:24 +01:00
preact: update dependencies
This commit is contained in:
@@ -10,15 +10,16 @@
|
||||
"author": "Shuanglei Tao <tsl0922@gmail.com>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "preact watch"
|
||||
"start": "preact watch",
|
||||
"build": "preact build --no-service-worker --no-prerender"
|
||||
},
|
||||
"devDependencies": {
|
||||
"preact-cli": "^2.1.0"
|
||||
"preact-cli": "^2.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"decko": "^1.2.0",
|
||||
"fast-text-encoding": "^1.0.0",
|
||||
"preact": "^8.2.7",
|
||||
"xterm": "^3.3.0"
|
||||
"preact": "^8.4.2",
|
||||
"xterm": "^3.12.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @param {WebpackConfigHelpers} helpers - object with useful helpers when working with config.
|
||||
**/
|
||||
export default function (config, env, helpers) {
|
||||
const { devServer } = config;
|
||||
const { devServer, plugins } = config;
|
||||
if (devServer) {
|
||||
devServer.proxy = {
|
||||
'/ws': {
|
||||
|
||||
@@ -7,8 +7,7 @@ require('fast-text-encoding');
|
||||
|
||||
export default class Terminal extends Component {
|
||||
componentDidMount() {
|
||||
TERMINAL.applyAddon(require('xterm/dist/addons/fit'));
|
||||
TERMINAL.applyAddon(require('xterm/dist/addons/winptyCompat'));
|
||||
TERMINAL.applyAddon(require('xterm/lib/addons/fit/fit'));
|
||||
TERMINAL.applyAddon(require('./overlay'));
|
||||
|
||||
this.url = (window.location.protocol === 'https:' ? 'wss://' : 'ws://')
|
||||
@@ -93,7 +92,6 @@ export default class Terminal extends Component {
|
||||
terminal.on('resize', this.onTerminalResize);
|
||||
|
||||
terminal.open(this.container, true);
|
||||
terminal.winptyCompatInit();
|
||||
terminal.fit();
|
||||
terminal.focus();
|
||||
}
|
||||
|
||||
5438
preact/yarn.lock
5438
preact/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user