From 75b3b59247e34a4cda6e40c871a52b9a07416bd9 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 26 Oct 2019 14:45:04 +0800 Subject: [PATCH] html: upgrade to preact 10 and xterm 4.2.0 --- html/package.json | 6 +++--- html/src/components/app.tsx | 2 +- html/src/components/modal/index.tsx | 2 +- html/src/components/zmodem/index.tsx | 2 +- html/yarn.lock | 24 ++++++++++++------------ src/index.html | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/html/package.json b/html/package.json index 7970ebd..08afeb1 100644 --- a/html/package.json +++ b/html/package.json @@ -60,9 +60,9 @@ "dependencies": { "backoff": "^2.5.0", "decko": "^1.2.0", - "preact": "^8.5.0", - "xterm": "^4.0.2", - "xterm-addon-fit": "^0.2.1", + "preact": "^10.0.1", + "xterm": "^4.2.0", + "xterm-addon-fit": "^0.3.0", "xterm-addon-web-links": "^0.2.1", "zmodem.js": "^0.1.9" } diff --git a/html/src/components/app.tsx b/html/src/components/app.tsx index e9f50ac..cc8f100 100644 --- a/html/src/components/app.tsx +++ b/html/src/components/app.tsx @@ -1,4 +1,4 @@ -import { Component, h } from 'preact'; +import { h, Component } from 'preact'; import { ITerminalOptions, ITheme } from 'xterm'; import { Xterm } from './terminal'; diff --git a/html/src/components/modal/index.tsx b/html/src/components/modal/index.tsx index 51ec82a..e42a1c2 100644 --- a/html/src/components/modal/index.tsx +++ b/html/src/components/modal/index.tsx @@ -1,4 +1,4 @@ -import { Component, ComponentChildren, h } from 'preact'; +import { h, Component, ComponentChildren } from 'preact'; import './modal.scss'; diff --git a/html/src/components/zmodem/index.tsx b/html/src/components/zmodem/index.tsx index cab3865..55e5c32 100644 --- a/html/src/components/zmodem/index.tsx +++ b/html/src/components/zmodem/index.tsx @@ -1,5 +1,5 @@ import { bind } from 'decko'; -import { Component, h } from 'preact'; +import { h, Component } from 'preact'; import { IDisposable, ITerminalAddon, Terminal } from 'xterm'; import * as Zmodem from 'zmodem.js/src/zmodem_browser'; diff --git a/html/yarn.lock b/html/yarn.lock index 1fa4558..e4f399b 100644 --- a/html/yarn.lock +++ b/html/yarn.lock @@ -6123,10 +6123,10 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.1 source-map "^0.6.1" supports-color "^6.1.0" -preact@^8.5.0: - version "8.5.2" - resolved "https://registry.yarnpkg.com/preact/-/preact-8.5.2.tgz#2f532da485287c07369e08150cf4d23921a09789" - integrity sha512-37tlDJGq5IQKqGUbqPZ7qPtsTOWFyxe+ojAOFfzKo0dEPreenqrqgJuS83zGpeGAqD9h9L9Yr7QuxH2W4ZrKxg== +preact@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.0.1.tgz#16451887a8490dd534d60d1bc7d2ff4a70f7e0ee" + integrity sha512-lq7jo1rwwCd1YkiBcuOxRc3I0y1FZACa6O7tgNXt47QZJtSlLEE53f/FDNsLtiB2IVQTHbaey20TjSPmejhDyQ== precond@0.2: version "0.2.3" @@ -8372,20 +8372,20 @@ xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -xterm-addon-fit@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/xterm-addon-fit/-/xterm-addon-fit-0.2.1.tgz#353f43921eb78e3f9ad3f3afbb14e7ac183ca738" - integrity sha512-BlR57O3t1/bmVcnS81bn9ZnNf+GiGNbeXdNUKSBa9tKEwNUMcU3S+KFLIRv7rm1Ty0D5pMOu0vbz/RDorKRwKQ== +xterm-addon-fit@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/xterm-addon-fit/-/xterm-addon-fit-0.3.0.tgz#341710741027de9d648a9f84415a01ddfdbbe715" + integrity sha512-kvkiqHVrnMXgyCH9Xn0BOBJ7XaWC/4BgpSWQy3SueqximgW630t/QOankgqkvk11iTOCwWdAY9DTyQBXUMN3lw== xterm-addon-web-links@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/xterm-addon-web-links/-/xterm-addon-web-links-0.2.1.tgz#6d1f2ce613e09870badf17615e7a1170a31542b2" integrity sha512-2KnHtiq0IG7hfwv3jw2/jQeH1RBk2d5CH4zvgwQe00rLofSJqSfgnJ7gwowxxpGHrpbPr6Lv4AmH/joaNw2+HQ== -xterm@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/xterm/-/xterm-4.0.2.tgz#c6a1b9586c0786627625e2ee9e78ad519dbc8c99" - integrity sha512-NIr11b6C782TZznU8e6K/IMfmwlWMWRI6ba9GEDG9uX25SadkpjoMnzvxOS0Z/15sfrbn0rghPiarGDmmP0uhQ== +xterm@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/xterm/-/xterm-4.2.0.tgz#b9980b2ae18c64ed31bcc95eace3bcecffebbbd9" + integrity sha512-oNfLqt+LmghLPOt5UcskP5Km1fXpTBHsTZ99nxJKY2N0MNFXBKIVXUcNNhHCa74JGZFMGhLT58A/UN3HcPXSfg== y18n@^3.2.1: version "3.2.1" diff --git a/src/index.html b/src/index.html index 5536adf..5bf8aac 100644 --- a/src/index.html +++ b/src/index.html @@ -1 +1 @@ -ttyd - Terminal \ No newline at end of file +ttyd - Terminal \ No newline at end of file -- 2.43.4