1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-22 18:11:43 +03:00

web related fixes

This commit is contained in:
Eugene Pankov 2021-08-25 01:25:40 +02:00
parent 8d587d27e5
commit de3aab4996
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
17 changed files with 39 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-community-color-schemes", "name": "tabby-community-color-schemes",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Community color schemes for Tabby", "description": "Community color schemes for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-core", "name": "tabby-core",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Tabby core", "description": "Tabby core",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-electron", "name": "tabby-electron",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Electron-specific bindings", "description": "Electron-specific bindings",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-local", "name": "tabby-local",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Tabby's local shell plugin", "description": "Tabby's local shell plugin",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-plugin-manager", "name": "tabby-plugin-manager",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Tabby's plugin manager", "description": "Tabby's plugin manager",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-serial", "name": "tabby-serial",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Serial connections for Tabby", "description": "Serial connections for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-settings", "name": "tabby-settings",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Tabby terminal settings page", "description": "Tabby terminal settings page",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-ssh", "name": "tabby-ssh",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "SSH connections for Tabby", "description": "SSH connections for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-telnet", "name": "tabby-telnet",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Telnet/socket connections for Tabby", "description": "Telnet/socket connections for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-terminal", "name": "tabby-terminal",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Tabby's terminal emulation core", "description": "Tabby's terminal emulation core",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-web-demo", "name": "tabby-web-demo",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-web", "name": "tabby-web",
"version": "1.0.150", "version": "1.0.156-nightly.2",
"description": "Web-specific bindings", "description": "Web-specific bindings",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -93,6 +93,8 @@ Object.assign(window, {
paths: [], paths: [],
}, },
Tabby, Tabby,
__filename: '',
__dirname: '',
process: { process: {
env: { }, env: { },
argv: ['tabby'], argv: ['tabby'],

View File

@ -11,10 +11,11 @@
"patch-package": "^6.4.7", "patch-package": "^6.4.7",
"path-browserify": "^1.0.1", "path-browserify": "^1.0.1",
"readline-browserify": "^0.0.4", "readline-browserify": "^0.0.4",
"stream-browserify": "^3.0.0" "stream-browserify": "^3.0.0",
"url": "^0.11.0"
}, },
"resolutions": { "resolutions": {
"**/util": "^0.12.0" "**/util": "^0.12.0"
}, },
"version": "1.0.150" "version": "1.0.156-nightly.2"
} }

View File

@ -55,9 +55,6 @@ Tabby.registerMock('module', {
prototype: { require: window['require'] }, prototype: { require: window['require'] },
}) })
Tabby.registerMock('url', {
parse: () => null,
})
Tabby.registerMock('http', { Tabby.registerMock('http', {
Agent: class {}, Agent: class {},
request: {}, request: {},
@ -99,6 +96,10 @@ Tabby.registerModule('net', {
}) })
Tabby.registerModule('events', require('events')) Tabby.registerModule('events', require('events'))
Tabby.registerModule('path', require('path-browserify')) Tabby.registerModule('path', require('path-browserify'))
Tabby.registerModule('url', {
...require('url'),
pathToFileURL: x => `file://${x}`,
})
Tabby.registerModule('zlib', { Tabby.registerModule('zlib', {
...require('browserify-zlib'), ...require('browserify-zlib'),
constants: require('browserify-zlib'), constants: require('browserify-zlib'),

View File

@ -13,7 +13,6 @@ for (const key of [
'querystring', 'querystring',
'tls', 'tls',
'tty', 'tty',
'url',
'zlib', 'zlib',
'../build/Release/cpufeatures.node', '../build/Release/cpufeatures.node',
'./crypto/build/Release/sshcrypto.node', './crypto/build/Release/sshcrypto.node',

View File

@ -776,6 +776,16 @@ public-encrypt@^4.0.0:
randombytes "^2.0.1" randombytes "^2.0.1"
safe-buffer "^5.1.2" safe-buffer "^5.1.2"
punycode@1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"
integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=
querystring@0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=
randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5:
version "2.1.0" version "2.1.0"
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
@ -927,6 +937,14 @@ universalify@^0.1.0:
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
url@^0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=
dependencies:
punycode "1.3.2"
querystring "0.2.0"
util-deprecate@^1.0.1: util-deprecate@^1.0.1:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"