1
1
mirror of https://github.com/Eugeny/tabby.git synced 2025-01-03 08:04:02 +03:00
This commit is contained in:
Eugene Pankov 2017-06-10 00:29:16 +02:00
parent 2edcd5b57a
commit 65e9cbe759
26 changed files with 10830 additions and 301 deletions

207
app/package-lock.json generated Normal file
View File

@ -0,0 +1,207 @@
{
"name": "terminus",
"version": "0.0.2",
"lockfileVersion": 1,
"dependencies": {
"@angular/animations": {
"version": "https://registry.npmjs.org/@angular/animations/-/animations-4.0.1.tgz",
"integrity": "sha1-FUQgyO5cIvuvFDS20VYVDPUhjaY="
},
"@angular/common": {
"version": "https://registry.npmjs.org/@angular/common/-/common-4.0.1.tgz",
"integrity": "sha1-30iOrahCsthB3tdQcSKSsYOHtbA="
},
"@angular/compiler": {
"version": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.0.1.tgz",
"integrity": "sha1-FXIe2xSBZ6LYO2+TJIF+ZY6sgoA="
},
"@angular/core": {
"version": "https://registry.npmjs.org/@angular/core/-/core-4.0.1.tgz",
"integrity": "sha1-CxEKABASB26mlkYMzZInB7zfUbo="
},
"@angular/forms": {
"version": "https://registry.npmjs.org/@angular/forms/-/forms-4.0.1.tgz",
"integrity": "sha1-uevbu4rOD5o7+eU8KZ6v36sdUEE="
},
"@angular/platform-browser": {
"version": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-4.0.1.tgz",
"integrity": "sha1-S5776y+7kA3hiHQ7mIgC06orM/8="
},
"@angular/platform-browser-dynamic": {
"version": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-4.0.1.tgz",
"integrity": "sha1-/V3rstP2R0NQll5xwmdOIXDXz8s="
},
"@ng-bootstrap/ng-bootstrap": {
"version": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-alpha.22.tgz",
"integrity": "sha1-qq0FjMOSk+phhOS5uEnymMCxGoY="
},
"accessibility-developer-tools": {
"version": "https://registry.npmjs.org/accessibility-developer-tools/-/accessibility-developer-tools-2.12.0.tgz",
"integrity": "sha1-PaDM6dbsY3OWS4TzXbfPw996tRQ="
},
"any-promise": {
"version": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
"integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8="
},
"argparse": {
"version": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz",
"integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY="
},
"conf": {
"version": "https://registry.npmjs.org/conf/-/conf-0.11.2.tgz",
"integrity": "sha1-h59HkmdgBIPlAlg0YspAY/yXebI="
},
"debug": {
"version": "https://registry.npmjs.org/debug/-/debug-2.6.6.tgz",
"integrity": "sha1-qfpvvpykPPHnn3O3XAGJy7fW21o="
},
"devtron": {
"version": "https://registry.npmjs.org/devtron/-/devtron-1.4.0.tgz",
"integrity": "sha1-tedIvW6Vu+cL/MaKrm/mlhGUQeE="
},
"dot-prop": {
"version": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz",
"integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc="
},
"electron-config": {
"version": "https://registry.npmjs.org/electron-config/-/electron-config-0.2.1.tgz",
"integrity": "sha1-fhLCZBLQa/PtOJbQR53xYphrlbo="
},
"electron-debug": {
"version": "https://registry.npmjs.org/electron-debug/-/electron-debug-1.0.1.tgz",
"integrity": "sha1-HzBQ1hn8VSIY8Hc2VyQFREefIAg="
},
"electron-is-dev": {
"version": "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-0.1.2.tgz",
"integrity": "sha1-ihBD4ys6HaHD9VPc4oznZCRhZ+M="
},
"electron-localshortcut": {
"version": "https://registry.npmjs.org/electron-localshortcut/-/electron-localshortcut-0.6.1.tgz",
"integrity": "sha1-xOJow4puQvQN5WGPyQbR7WCPEao="
},
"electron-squirrel-startup": {
"version": "https://registry.npmjs.org/electron-squirrel-startup/-/electron-squirrel-startup-1.0.0.tgz",
"integrity": "sha1-GbTlWTP6Dvj1VnhLnGYPdyVGoLg="
},
"env-paths": {
"version": "https://registry.npmjs.org/env-paths/-/env-paths-0.3.1.tgz",
"integrity": "sha1-wwzPy8MMiQlD3AioVYJRfvANpGM="
},
"esprima": {
"version": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
"integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM="
},
"find-up": {
"version": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
"integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8="
},
"fs-extra": {
"version": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz",
"integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU="
},
"fs-promise": {
"version": "https://registry.npmjs.org/fs-promise/-/fs-promise-2.0.2.tgz",
"integrity": "sha1-z+pFyA9GSAo/0XYhP6IqvIwVlSE="
},
"graceful-fs": {
"version": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
},
"highlight.js": {
"version": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.10.0.tgz",
"integrity": "sha1-+fCxTAvgDw5PseV3t0n+2eb1L1U="
},
"humanize-plus": {
"version": "https://registry.npmjs.org/humanize-plus/-/humanize-plus-1.8.2.tgz",
"integrity": "sha1-pls0RZrWNnrbs3B6gqPJ+RYWcDA="
},
"inherits": {
"version": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
"integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE="
},
"is-obj": {
"version": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
"integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8="
},
"js-yaml": {
"version": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.8.2.tgz",
"integrity": "sha1-AtPiwPa+qyAkjUEsNSIDgn14ZyE="
},
"jsonfile": {
"version": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz",
"integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug="
},
"minimist": {
"version": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
},
"mkdirp": {
"version": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM="
},
"ms": {
"version": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz",
"integrity": "sha1-cIFVpeROM/X9D8U+gdDUCpG+H/8="
},
"mz": {
"version": "https://registry.npmjs.org/mz/-/mz-2.6.0.tgz",
"integrity": "sha1-yLhSHZWN8KTydoAl22nHGe5O8c4="
},
"object-assign": {
"version": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"path": {
"version": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
"integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8="
},
"path-exists": {
"version": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
"integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s="
},
"pinkie": {
"version": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
"integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA="
},
"pinkie-promise": {
"version": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
"integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o="
},
"pkg-up": {
"version": "https://registry.npmjs.org/pkg-up/-/pkg-up-1.0.0.tgz",
"integrity": "sha1-Pgj7RhUlxEIWJKM7n35tCvWwWiY="
},
"process": {
"version": "https://registry.npmjs.org/process/-/process-0.11.9.tgz",
"integrity": "sha1-e9WtIapiU+fahoImTx4R0RwDGME="
},
"rxjs": {
"version": "https://registry.npmjs.org/rxjs/-/rxjs-5.3.0.tgz",
"integrity": "sha1-2IzL3UavKQy9uX1dgFXlJFP6vi0="
},
"sprintf-js": {
"version": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
},
"symbol-observable": {
"version": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz",
"integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0="
},
"thenify": {
"version": "https://registry.npmjs.org/thenify/-/thenify-3.2.1.tgz",
"integrity": "sha1-JR/RyAr/blz1fLF5qx/LckJpvRE="
},
"thenify-all": {
"version": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
"integrity": "sha1-GhkY1ALY/D+Y+/I02wvMjMEOlyY="
},
"util": {
"version": "https://registry.npmjs.org/util/-/util-0.10.3.tgz",
"integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk="
},
"zone.js": {
"version": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.4.tgz",
"integrity": "sha1-zECuWhyHlgHF67oglrXIDwxMNgI="
}
}
}

View File

@ -1,7 +1,10 @@
{
"name": "terminus",
"description": "A terminal for a modern age",
"author": "Eugene Pankov",
"author": {
"name": "Eugene Pankov",
"email": "e@ajenti.org"
},
"main": "main.js",
"version": "0.0.2",
"scripts": {

View File

@ -21,7 +21,7 @@ if (process.env.DEV) {
const builtinPluginsPath = path.join(
path.dirname(require('electron').remote.app.getPath('exe')),
(process.platform === 'darwin') ? '../Resources' : 'resources',
'builtin-plugins/node_modules',
'builtin-plugins',
)
const userPluginsPath = path.join(

3741
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,20 +8,23 @@
"@types/webpack-env": "^1.13.0",
"apply-loader": "^0.1.0",
"awesome-typescript-loader": "3.1.2",
"core-js": "^2.4.1",
"cross-env": "^4.0.0",
"css-loader": "0.26.1",
"electron": "1.6.7",
"electron": "1.7.2",
"electron-builder": "^17.1.1",
"electron-builder-squirrel-windows": "^17.0.1",
"electron-osx-sign": "electron-userland/electron-osx-sign#f092181a1bffa2b3248a23ee28447a47e14a8f04",
"electron-rebuild": "1.5.7",
"electron-rebuild": "^1.5.11",
"file-loader": "^0.9.0",
"font-awesome": "4.7.0",
"html-loader": "^0.4.4",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"node-abi": "^2.0.3",
"node-gyp": "^3.4.0",
"node-sass": "^4.5.0",
"npmlog": "^4.1.0",
"pug-html-loader": "^1.0.9",
"pug-loader": "^2.3.0",
"pug-static-loader": "0.0.1",
@ -69,5 +72,6 @@
"start": "cross-env DEV=1 electron --js-flags='--ignition' app --debug",
"lint": "tslint -c tslint.json -t stylish terminus-*/src/**/*.ts terminus-*/src/*.ts app/src/*.ts",
"postinstall": "install-app-deps"
}
},
"false": {}
}

View File

@ -4,7 +4,7 @@ const vars = require('./vars')
builder({
dir: true,
linux: ['appimage'],
linux: ['deb'],
extraMetadata: {
version: vars.version,
},

View File

@ -2,11 +2,14 @@
const sh = require('shelljs')
const path = require('path')
const vars = require('./vars')
const log = require('npmlog')
log.info('deps', 'app')
sh.exec('npm prune')
sh.exec('npm install')
vars.builtinPlugins.forEach(plugin => {
log.info('deps', plugin)
sh.cd(plugin)
sh.exec('npm prune')
sh.exec('npm install')

View File

@ -1,19 +1,24 @@
#!/usr/bin/env node
const rebuild = require('electron-rebuild').default
const builder = require('electron-builder').default
const sh = require('shelljs')
const path = require('path')
const fs = require('fs')
const vars = require('./vars')
const log = require('npmlog')
let target = path.resolve(__dirname, '../builtin-plugins')
sh.mkdir('-p', target)
fs.writeFileSync(path.join(target, 'package.json'), '{}')
sh.cd(target)
vars.builtinPlugins.forEach(plugin => {
sh.exec(`npm install ${path.join('..', plugin)}`)
log.info('install', plugin)
sh.cp('-r', path.join('..', plugin), '.')
sh.rm('-rf', path.join(plugin, 'node_modules'))
sh.cd(plugin)
sh.exec(`npm install --only=prod`)
log.info('rebuild', 'native')
if (fs.existsSync('node_modules')) {
rebuild(path.resolve('.'), vars.electronVersion, process.arch, vars.nativeModules, true)
}
sh.cd('..')
})
sh.exec('npm dedupe')
sh.cd('..')
rebuild(target, vars.electronVersion, process.arch, ['node-pty', 'font-manager'], true)

View File

@ -11,5 +11,6 @@ exports.builtinPlugins = [
'terminus-community-color-schemes',
'terminus-plugin-manager',
]
exports.nativeModules = ['node-pty', 'font-manager']
exports.version = appInfo.version
exports.electronVersion = pkgInfo.devDependencies.electron

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,9 @@
"build": "webpack --progress --color",
"watch": "webpack --progress --color --watch"
},
"files": ["dist"],
"files": [
"dist"
],
"author": "Eugene Pankov",
"license": "MIT",
"peerDependencies": {
@ -22,5 +24,6 @@
"awesome-typescript-loader": "3.1.2",
"raw-loader": "0.5.1",
"webpack": "2.3.3"
}
},
"false": {}
}

View File

@ -1,26 +1,8 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"module": "commonjs",
"target": "es2016",
"declaration": false,
"noImplicitAny": false,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"declaration": true,
"declarationDir": "dist",
"lib": [
"dom",
"es2015",
"es7"
]
},
"exclude": ["node_modules", "dist"]
"declarationDir": "dist"
}
}

1129
terminus-core/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,9 @@
"build": "rm -rf dist && webpack --progress --color --display-modules",
"watch": "rm -rf dist && webpack --progress --color --watch"
},
"files": ["dist"],
"files": [
"dist"
],
"author": "Eugene Pankov",
"license": "MIT",
"devDependencies": {
@ -41,5 +43,6 @@
"dependencies": {
"deepmerge": "^1.3.2",
"js-yaml": "^3.8.3"
}
},
"false": {}
}

View File

@ -7,5 +7,5 @@ import { HostAppService } from '../services/hostApp.service'
styles: [require('./windowControls.component.scss')],
})
export class WindowControlsComponent {
constructor (private hostApp: HostAppService) { }
constructor (public hostApp: HostAppService) { }
}

View File

@ -1,26 +1,8 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"module": "commonjs",
"target": "es2016",
"declaration": false,
"noImplicitAny": false,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"declaration": true,
"declarationDir": "dist",
"lib": [
"dom",
"es2015",
"es7"
]
},
"exclude": ["node_modules", "dist"]
"declarationDir": "dist"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -43,5 +43,6 @@
},
"dependencies": {
"axios": "^0.16.1"
}
},
"false": {}
}

View File

@ -1,26 +1,8 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"module": "commonjs",
"target": "es2016",
"declaration": false,
"noImplicitAny": false,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"declaration": true,
"declarationDir": "dist",
"lib": [
"dom",
"es2015",
"es7"
]
},
"exclude": ["node_modules", "dist"]
"declarationDir": "dist"
}
}

2434
terminus-settings/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -36,5 +36,6 @@
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.22",
"terminus-core": "*",
"rxjs": "5.3.0"
}
},
"false": {}
}

View File

@ -1,26 +1,8 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "./src",
"module": "commonjs",
"target": "es2016",
"declaration": false,
"noImplicitAny": false,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"declaration": true,
"declarationDir": "dist",
"lib": [
"dom",
"es2015",
"es7"
]
},
"exclude": ["node_modules", "dist"]
"baseUrl": "src",
"declarationDir": "dist"
}
}

1942
terminus-terminal/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,9 @@
"build": "webpack --progress --color --display-modules",
"watch": "webpack --progress --color --watch"
},
"files": ["dist"],
"files": [
"dist"
],
"author": "Eugene Pankov",
"license": "MIT",
"devDependencies": {
@ -46,5 +48,6 @@
"mz": "^2.6.0",
"node-pty": "0.6.2",
"winreg": "^1.2.3"
}
},
"false": {}
}

View File

@ -1,26 +1,8 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"module": "commonjs",
"target": "es2016",
"declaration": false,
"noImplicitAny": false,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"declaration": true,
"declarationDir": "dist",
"lib": [
"dom",
"es2015",
"es7"
]
},
"exclude": ["node_modules", "dist"]
"declarationDir": "dist"
}
}

22
tsconfig.json Normal file
View File

@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2016",
"declaration": false,
"noImplicitAny": false,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"declaration": true,
"skipLibCheck": true,
"lib": [
"dom",
"es2015",
"es7"
]
}
}