Compare commits

..

300 Commits

Author SHA1 Message Date
Eugene Pankov
6e845eff7d ci fixes 2019-07-04 14:08:47 +02:00
Eugene Pankov
5596dce8ef Update azure-pipelines.yml 2019-07-04 13:06:40 +02:00
Eugene Pankov
48b2547759 Update azure-pipelines.yml 2019-07-04 13:04:43 +02:00
Eugene Pankov
f616cb9b8f disabled travis linux job 2019-07-04 13:01:09 +02:00
Eugene Pankov
4441bc7e05 enabled notarization on travis 2019-07-04 12:25:39 +02:00
Eugene Pankov
7b249a82d7 fixed crash when no window position is saved (fixes #1175) 2019-07-04 12:04:24 +02:00
Eugene Pankov
d8f4c29073 Merge branch 'master' of github.com:Eugeny/terminus 2019-07-04 11:34:35 +02:00
Eugene Pankov
f5485fae2f webpack config formatting 2019-07-04 11:34:31 +02:00
Eugene Pankov
0bd1700872 moved typings to the top level package.json 2019-07-04 11:32:24 +02:00
Eugene
e7ac91a322 Bump node-gyp from 5.0.0 to 5.0.2 (#1165)
Bump node-gyp from 5.0.0 to 5.0.2
2019-07-04 11:29:12 +02:00
Eugene
dc42a2a992 Bump xterm from 3.15.0-beta65 to 3.15.0-beta67 in /terminus-ter… (#1174)
Bump xterm from 3.15.0-beta65 to 3.15.0-beta67 in /terminus-terminal
2019-07-04 11:28:32 +02:00
Eugene
846f1cca16 Bump xterm-addon-search from 0.2.0-beta1 to 0.2.0-beta2 in /ter… (#1169)
Bump xterm-addon-search from 0.2.0-beta1 to 0.2.0-beta2 in /terminus-terminal
2019-07-04 11:27:41 +02:00
dependabot-preview[bot]
c11f43b637 Bump xterm from 3.15.0-beta65 to 3.15.0-beta67 in /terminus-terminal
Bumps [xterm](https://github.com/xtermjs/xterm.js) from 3.15.0-beta65 to 3.15.0-beta67.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-04 04:45:28 +00:00
dependabot-preview[bot]
6a02bb7f51 Bump xterm-addon-search in /terminus-terminal
Bumps xterm-addon-search from 0.2.0-beta1 to 0.2.0-beta2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-04 04:43:45 +00:00
dependabot-preview[bot]
c5c4168afe Bump node-gyp from 5.0.0 to 5.0.2
Bumps [node-gyp](https://github.com/nodejs/node-gyp) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/nodejs/node-gyp/releases)
- [Changelog](https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodejs/node-gyp/compare/v5.0.0...v5.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-04 04:41:58 +00:00
Eugene Pankov
f49f37992d pkg build 2019-07-03 23:14:47 +02:00
Eugene Pankov
6fe08475ff windows build fix 2019-07-03 19:58:41 +02:00
Eugene Pankov
99618d75ec use tslib and --importHelpers 2019-07-03 12:24:26 +02:00
Eugene
f8f2d007a2 Bump xterm-addon-search from 0.1.0-beta6 to 0.2.0-beta1 in /ter… (#1158)
Bump xterm-addon-search from 0.1.0-beta6 to 0.2.0-beta1 in /terminus-terminal
2019-07-03 12:09:37 +02:00
Eugene
4db27f4623 Bump app-builder-lib from 21.0.5 to 21.0.6 (#1159)
Bump app-builder-lib from 21.0.5 to 21.0.6
2019-07-03 11:23:37 +02:00
Eugene Pankov
5cd4209ec5 Update .travis.yml 2019-07-03 11:23:00 +02:00
dependabot-preview[bot]
1bd5204d24 Bump app-builder-lib from 21.0.5 to 21.0.6
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 21.0.5 to 21.0.6.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v21.0.5...v21.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-03 04:27:47 +00:00
dependabot-preview[bot]
c6bd1358e3 Bump xterm-addon-search in /terminus-terminal
Bumps xterm-addon-search from 0.1.0-beta6 to 0.2.0-beta1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-03 04:24:48 +00:00
Eugene Pankov
d6c9ce84ea delay frontend init if not focused (fixes #1147, fixes #1137) 2019-07-02 21:28:40 +02:00
Eugene Pankov
1fdf5367b6 bumped webpack 2019-07-02 21:09:07 +02:00
Eugene Pankov
e5234b0945 removed debug logging 2019-07-02 21:08:58 +02:00
Eugene Pankov
a146505c5a fixed search panel background 2019-07-02 20:40:07 +02:00
Eugene
20a1ae3374 Bump app-builder-lib from 21.0.3 to 21.0.5 (#1156)
Bump app-builder-lib from 21.0.3 to 21.0.5
2019-07-02 07:50:23 +02:00
dependabot-preview[bot]
8a19a93b4d Bump app-builder-lib from 21.0.3 to 21.0.5
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 21.0.3 to 21.0.5.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v21.0.3...v21.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-02 04:31:16 +00:00
Eugene Pankov
f9c51e04e1 Merge branch 'master' of github.com:Eugeny/terminus 2019-07-01 11:28:17 +02:00
Eugene Pankov
1afc212e71 restored cmd-v to paste on macOS (#1013) 2019-07-01 11:28:14 +02:00
Eugene
d44224d23e Bump node-pty from 0.9.0-beta9 to 0.9.0-beta18 in /app (#1152)
Bump node-pty from 0.9.0-beta9 to 0.9.0-beta18 in /app
2019-07-01 08:19:54 +02:00
Eugene
e1cca33379 Bump electron-debug from 3.0.0 to 3.0.1 in /app (#1153)
Bump electron-debug from 3.0.0 to 3.0.1 in /app
2019-07-01 08:19:35 +02:00
Eugene
e48936484d Bump xterm from 3.15.0-beta61 to 3.15.0-beta65 in /terminus-ter… (#1150)
Bump xterm from 3.15.0-beta61 to 3.15.0-beta65 in /terminus-terminal
2019-07-01 08:19:08 +02:00
dependabot-preview[bot]
911b72508b Bump electron-debug from 3.0.0 to 3.0.1 in /app
Bumps [electron-debug](https://github.com/sindresorhus/electron-debug) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sindresorhus/electron-debug/releases)
- [Commits](https://github.com/sindresorhus/electron-debug/compare/v3.0.0...v3.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 04:39:01 +00:00
dependabot-preview[bot]
8575555204 Bump node-pty from 0.9.0-beta9 to 0.9.0-beta18 in /app
Bumps [node-pty](https://github.com/Tyriar/node-pty) from 0.9.0-beta9 to 0.9.0-beta18.
- [Release notes](https://github.com/Tyriar/node-pty/releases)
- [Commits](https://github.com/Tyriar/node-pty/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 04:37:58 +00:00
dependabot-preview[bot]
4775632c51 Bump xterm from 3.15.0-beta61 to 3.15.0-beta65 in /terminus-terminal
Bumps [xterm](https://github.com/xtermjs/xterm.js) from 3.15.0-beta61 to 3.15.0-beta65.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 04:36:34 +00:00
Eugene Pankov
b198864063 removed the mostly misused mouse wheel zooming (fixes #1144) 2019-06-30 23:49:51 +02:00
Eugene
0896844e96 Bugfix - Terminal Docking Issues (#1145)
Bugfix - Terminal Docking Issues
2019-06-30 23:42:29 +02:00
Eugene Pankov
3c27e8105e fixed start page icons 2019-06-30 23:35:48 +02:00
Eugene Pankov
269971ab60 docs fix 2019-06-30 23:08:59 +02:00
Eugene Pankov
b98bde71df remove all external deps from generated typings files 2019-06-30 23:08:30 +02:00
Austin Warren
0238515b42 Ensure that users with old default config don't end up with an out of bounds window 2019-06-28 13:48:06 -07:00
Austin Warren
be2f2f4575 Ensure our list of screens is up to date when we add/remove/modify screen settings 2019-06-28 13:27:41 -07:00
Austin Warren
38494c9704 Properly identify primary display and ensure all screens are sorted by their X/Y bounds 2019-06-28 13:26:17 -07:00
Austin Warren
fa6fa3f1ea Fix default value to fit within dockFill boundaries 2019-06-28 12:35:08 -07:00
Austin Warren
8632f1eedf Merge pull request #2 from Eugeny/master
Back up to date
2019-06-28 12:17:26 -07:00
Eugene Pankov
944c7b072b restored travis config 2019-06-28 17:07:58 +02:00
Eugene Pankov
a08df2fd12 Revert "Update azure-pipelines.yml"
This reverts commit c0804b6940.
2019-06-28 16:35:20 +02:00
Eugene Pankov
c0804b6940 Update azure-pipelines.yml 2019-06-28 13:02:52 +02:00
Eugene Pankov
ebdc2e4105 Update azure-pipelines.yml 2019-06-28 12:38:57 +02:00
Eugene Pankov
a0a4346cc4 Revert "Update azure-pipelines.yml"
This reverts commit 336cac78c7.
2019-06-28 12:30:55 +02:00
Eugene Pankov
336cac78c7 Update azure-pipelines.yml 2019-06-28 11:03:08 +02:00
Eugene Pankov
fc9389ab30 Update appveyor.yml 2019-06-28 10:55:34 +02:00
Eugene Pankov
eb52a37f77 strip data-volume prefix from CWD on Catalina 2019-06-28 10:29:56 +02:00
Eugene Pankov
cc68ad492a removed build:typings as separate ci step 2019-06-28 10:26:55 +02:00
Eugene Pankov
a1c3829572 enable electron-builder debug output 2019-06-28 10:23:47 +02:00
Eugene
32890f17c0 Bump xterm from 3.15.0-beta58 to 3.15.0-beta61 in /terminus-ter… (#1140)
Bump xterm from 3.15.0-beta58 to 3.15.0-beta61 in /terminus-terminal
2019-06-28 10:21:58 +02:00
dependabot-preview[bot]
3f8ee9b4fc Bump xterm from 3.15.0-beta58 to 3.15.0-beta61 in /terminus-terminal
Bumps [xterm](https://github.com/xtermjs/xterm.js) from 3.15.0-beta58 to 3.15.0-beta61.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-28 08:21:50 +00:00
Eugene
3eb15a6e66 Bump xterm-addon-webgl from 0.1.0 to 0.2.0-beta1 in /terminus-t… (#1139)
Bump xterm-addon-webgl from 0.1.0 to 0.2.0-beta1 in /terminus-terminal
2019-06-28 10:20:28 +02:00
Eugene
b62f54ef05 Bump keytar from 4.10.0 to 4.11.0 in /terminus-ssh (#1141)
Bump keytar from 4.10.0 to 4.11.0 in /terminus-ssh
2019-06-28 10:19:53 +02:00
Eugene
95abe8bb4d Bugfix - Window starts outside of display bounds (#1138)
Bugfix - Window starts outside of display bounds
2019-06-28 10:17:33 +02:00
Eugene Pankov
8f3ab68705 auto-build typings 2019-06-28 10:14:40 +02:00
Eugene Pankov
dce6df7783 disable docs builds for PRs 2019-06-28 10:14:32 +02:00
dependabot-preview[bot]
7b3426d2f9 Bump keytar from 4.10.0 to 4.11.0 in /terminus-ssh
Bumps [keytar](https://github.com/atom/node-keytar) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/atom/node-keytar/releases)
- [Commits](https://github.com/atom/node-keytar/compare/v4.10.0...v4.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-28 04:28:10 +00:00
dependabot-preview[bot]
0cfbdf368f Bump xterm-addon-webgl from 0.1.0 to 0.2.0-beta1 in /terminus-terminal
Bumps xterm-addon-webgl from 0.1.0 to 0.2.0-beta1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-28 04:27:28 +00:00
Austin Warren
e7bc93a5e2 Added check to see if configured window bounds are within one of the current displays on launch 2019-06-27 19:46:47 -07:00
Austin Warren
d9559f2a8f Merge pull request #1 from Eugeny/master
Updating to newest
2019-06-27 16:51:37 -07:00
Eugene Pankov
6531c7eaa7 Revert "Bump electron from 5.0.5 to 5.0.6"
This reverts commit c6565d0246.
2019-06-27 13:45:23 +02:00
Eugene Pankov
986bdf8e24 handle build errors 2019-06-27 11:47:57 +02:00
Eugene Pankov
2188eef202 . 2019-06-27 11:23:03 +02:00
Eugene Pankov
87850edc0e branch name 2019-06-27 11:14:45 +02:00
Eugene Pankov
3a9c69d828 Merge branch 'master' of github.com:Eugeny/terminus 2019-06-27 10:54:24 +02:00
Eugene Pankov
ff64d949ec notarization 2019-06-27 10:54:18 +02:00
Eugene
596ef10ba4 Bump electron from 5.0.5 to 5.0.6 (#1134)
Bump electron from 5.0.5 to 5.0.6
2019-06-27 07:45:35 +02:00
Eugene
ba1008cc95 Bump app-builder-lib from 21.0.2 to 21.0.3 (#1135)
Bump app-builder-lib from 21.0.2 to 21.0.3
2019-06-27 07:44:01 +02:00
Eugene Pankov
89173d0f58 Update azure-pipelines.yml 2019-06-27 06:53:57 +02:00
Eugene Pankov
736f3728f6 Update azure-pipelines.yml 2019-06-27 06:44:58 +02:00
Eugene Pankov
d5d2341e69 Update azure-pipelines.yml 2019-06-27 06:42:54 +02:00
dependabot-preview[bot]
b9cdae6832 Bump app-builder-lib from 21.0.2 to 21.0.3
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 21.0.2 to 21.0.3.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v21.0.2...v21.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-27 04:30:15 +00:00
dependabot-preview[bot]
c6565d0246 Bump electron from 5.0.5 to 5.0.6
Bumps [electron](https://github.com/electron/electron) from 5.0.5 to 5.0.6.
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](https://github.com/electron/electron/compare/v5.0.5...v5.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-27 04:29:40 +00:00
Eugene Pankov
84503a87c2 Update azure-pipelines.yml 2019-06-26 23:05:11 +02:00
Eugene Pankov
d454a16ff6 azure signing 2019-06-26 22:19:49 +02:00
Eugene Pankov
fb90ae7b93 Merge branch 'master' of github.com:Eugeny/terminus 2019-06-26 21:48:27 +02:00
Eugene Pankov
8241bb2679 azure artifacts 2019-06-26 21:47:34 +02:00
Eugene
fac506e0b3 Bump app-builder-lib from 21.0.1 to 21.0.2 (#1132)
Bump app-builder-lib from 21.0.1 to 21.0.2
2019-06-26 08:39:32 +02:00
dependabot-preview[bot]
34e9c47508 Bump app-builder-lib from 21.0.1 to 21.0.2
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 21.0.1 to 21.0.2.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v21.0.1...v21.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-26 04:28:00 +00:00
Eugene
b1512df789 Bump xterm from 3.15.0-beta56 to 3.15.0-beta58 in /terminus-ter… (#1129)
Bump xterm from 3.15.0-beta56 to 3.15.0-beta58 in /terminus-terminal
2019-06-25 08:54:20 +02:00
Eugene
902d63d302 Bump app-builder-lib from 20.44.4 to 21.0.1 (#1128)
Bump app-builder-lib from 20.44.4 to 21.0.1
2019-06-25 08:51:53 +02:00
Eugene
0d83541ebb Bump eslint-plugin-import from 2.17.3 to 2.18.0 (#1127)
Bump eslint-plugin-import from 2.17.3 to 2.18.0
2019-06-25 08:50:26 +02:00
Eugene
69d51ec091 Bump pug-lint from 2.5.0 to 2.6.0 (#1126)
Bump pug-lint from 2.5.0 to 2.6.0
2019-06-25 08:49:26 +02:00
dependabot-preview[bot]
5bf0ffeae9 Bump xterm from 3.15.0-beta56 to 3.15.0-beta58 in /terminus-terminal
Bumps [xterm](https://github.com/xtermjs/xterm.js) from 3.15.0-beta56 to 3.15.0-beta58.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 04:35:29 +00:00
dependabot-preview[bot]
e1e21554e8 Bump app-builder-lib from 20.44.4 to 21.0.1
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 20.44.4 to 21.0.1.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.44.4...v21.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 04:32:58 +00:00
dependabot-preview[bot]
6331cd1fab Bump eslint-plugin-import from 2.17.3 to 2.18.0
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.17.3 to 2.18.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.17.3...v2.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 04:32:22 +00:00
dependabot-preview[bot]
44d335fb7f Bump pug-lint from 2.5.0 to 2.6.0
Bumps [pug-lint](https://github.com/pugjs/pug-lint) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/pugjs/pug-lint/releases)
- [Changelog](https://github.com/pugjs/pug-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pugjs/pug-lint/compare/v2.5.0...v2.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 04:31:49 +00:00
Eugene Pankov
7f729bb839 Update azure-pipelines.yml 2019-06-24 15:59:05 +02:00
Eugene Pankov
515e46ea08 Update azure-pipelines.yml 2019-06-24 15:45:27 +02:00
Eugene
b837a23fbe Update azure-pipelines.yml for Azure Pipelines 2019-06-24 14:46:45 +02:00
Eugene
8ace6dc92e Update azure-pipelines.yml for Azure Pipelines 2019-06-24 14:33:59 +02:00
Eugene
2cffcbefa4 Set up CI with Azure Pipelines
[skip ci]
2019-06-24 14:23:23 +02:00
Eugene Pankov
97d9173821 Merge branch 'master' of github.com:Eugeny/terminus 2019-06-24 13:40:40 +02:00
Eugene Pankov
8a2a0d8013 ts es2015 modules, path resolution fixes 2019-06-24 13:40:37 +02:00
Eugene
f3096a0a08 Bump semver from 6.1.1 to 6.1.2 in /terminus-plugin-manager (#1114)
Bump semver from 6.1.1 to 6.1.2 in /terminus-plugin-manager
2019-06-24 08:31:01 +02:00
Eugene
378f020f01 Bump @types/node from 12.0.8 to 12.0.10 in /terminus-terminal (#1116)
Bump @types/node from 12.0.8 to 12.0.10 in /terminus-terminal
2019-06-24 08:30:51 +02:00
Eugene
0776ae0090 Bump @types/node from 12.0.8 to 12.0.10 (#1121)
Bump @types/node from 12.0.8 to 12.0.10
2019-06-24 08:30:43 +02:00
Eugene
12165e480b Bump @types/node from 12.0.8 to 12.0.10 in /terminus-core (#1109)
Bump @types/node from 12.0.8 to 12.0.10 in /terminus-core
2019-06-24 08:30:31 +02:00
Eugene
9cb93d7971 Bump @types/node from 12.0.8 to 12.0.10 in /terminus-plugin-man… (#1112)
Bump @types/node from 12.0.8 to 12.0.10 in /terminus-plugin-manager
2019-06-24 08:30:22 +02:00
Eugene
a20756aec4 Bump @types/node from 12.0.8 to 12.0.10 in /terminus-community-… (#1117)
Bump @types/node from 12.0.8 to 12.0.10 in /terminus-community-color-schemes
2019-06-24 08:30:13 +02:00
Eugene
40df352872 Bump @typescript-eslint/eslint-plugin from 1.10.2 to 1.11.0 (#1118)
Bump @typescript-eslint/eslint-plugin from 1.10.2 to 1.11.0
2019-06-24 08:30:03 +02:00
Eugene
94c5353328 Bump electron from 5.0.3 to 5.0.5 (#1115)
Bump electron from 5.0.3 to 5.0.5
2019-06-24 08:29:34 +02:00
Eugene Pankov
c411394149 bumped xterm 2019-06-24 08:28:33 +02:00
dependabot-preview[bot]
8fce065c18 Bump electron from 5.0.3 to 5.0.5
Bumps [electron](https://github.com/electron/electron) from 5.0.3 to 5.0.5.
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](https://github.com/electron/electron/compare/v5.0.3...v5.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:27:54 +00:00
dependabot-preview[bot]
a628df7591 Bump semver from 6.1.1 to 6.1.2 in /terminus-plugin-manager
Bumps [semver](https://github.com/npm/node-semver) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.1.1...v6.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:27:45 +00:00
Eugene
0c84032726 Bump xterm-addon-webgl from 0.1.0-beta2 to 0.1.0 in /terminus-t… (#1119)
Bump xterm-addon-webgl from 0.1.0-beta2 to 0.1.0 in /terminus-terminal
2019-06-24 08:27:05 +02:00
dependabot-preview[bot]
4e0854d5ea Bump @typescript-eslint/eslint-plugin from 1.10.2 to 1.11.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 1.10.2 to 1.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v1.11.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:26:26 +00:00
dependabot-preview[bot]
f210c82af3 Bump @types/node from 12.0.8 to 12.0.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:26:20 +00:00
Eugene
938d9bfcdc Bump webpack-cli from 3.3.4 to 3.3.5 (#1113)
Bump webpack-cli from 3.3.4 to 3.3.5
2019-06-24 08:26:18 +02:00
dependabot-preview[bot]
bb97b55af2 Bump @types/node in /terminus-community-color-schemes
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:26:08 +00:00
dependabot-preview[bot]
6e3aa05f4e Bump @types/node from 12.0.8 to 12.0.10 in /terminus-terminal
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:25:49 +00:00
dependabot-preview[bot]
aae0f9a3cb Bump @types/node from 12.0.8 to 12.0.10 in /terminus-plugin-manager
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:25:49 +00:00
Eugene
ef0d517982 Bump electron-builder from 20.44.3 to 20.44.4 (#1111)
Bump electron-builder from 20.44.3 to 20.44.4
2019-06-24 08:25:41 +02:00
dependabot-preview[bot]
b8aeadf4d6 Bump @types/node from 12.0.8 to 12.0.10 in /terminus-core
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 06:25:38 +00:00
Eugene
27ebf58ff9 Bump @types/node from 12.0.8 to 12.0.10 in /terminus-settings (#1110)
Bump @types/node from 12.0.8 to 12.0.10 in /terminus-settings
2019-06-24 08:24:48 +02:00
Eugene
cbbd9aa742 Bump @typescript-eslint/parser from 1.10.2 to 1.11.0 (#1122)
Bump @typescript-eslint/parser from 1.10.2 to 1.11.0
2019-06-24 08:24:20 +02:00
dependabot-preview[bot]
20c397695f Bump @typescript-eslint/parser from 1.10.2 to 1.11.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 1.10.2 to 1.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v1.11.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 04:39:12 +00:00
dependabot-preview[bot]
87dd6d343d Bump xterm-addon-webgl from 0.1.0-beta2 to 0.1.0 in /terminus-terminal
Bumps xterm-addon-webgl from 0.1.0-beta2 to 0.1.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 04:37:19 +00:00
dependabot-preview[bot]
9766184c59 Bump webpack-cli from 3.3.4 to 3.3.5
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.4 to 3.3.5.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.4...v3.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 04:35:30 +00:00
dependabot-preview[bot]
926fce143e Bump electron-builder from 20.44.3 to 20.44.4
Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 20.44.3 to 20.44.4.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.44.3...v20.44.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 04:34:46 +00:00
dependabot-preview[bot]
c466dcb594 Bump @types/node from 12.0.8 to 12.0.10 in /terminus-settings
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 04:34:38 +00:00
Eugene
966941b646 Bump electron-builder from 20.44.2 to 20.44.3 (#1103)
Bump electron-builder from 20.44.2 to 20.44.3
2019-06-21 08:41:20 +02:00
Eugene
0468035b46 Merge branch 'master' into dependabot/npm_and_yarn/electron-builder-20.44.3 2019-06-21 08:41:10 +02:00
dependabot-preview[bot]
686d444f0d Bump electron-builder from 20.44.2 to 20.44.3
Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 20.44.2 to 20.44.3.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.44.2...v20.44.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 06:28:09 +00:00
Eugene
59f61f97b3 Bump electron-installer-snap from 3.2.0 to 4.0.0 (#1104)
Bump electron-installer-snap from 3.2.0 to 4.0.0
2019-06-21 08:26:57 +02:00
Eugene
a89849a129 Bump webpack from 4.34.0 to 4.35.0 (#1102)
Bump webpack from 4.34.0 to 4.35.0
2019-06-21 08:26:41 +02:00
Eugene
70622551ff Bump app-builder-lib from 20.44.2 to 20.44.3 (#1101)
Bump app-builder-lib from 20.44.2 to 20.44.3
2019-06-21 08:26:14 +02:00
Eugene
bca3f78c0b Bump @types/semver from 6.0.0 to 6.0.1 in /terminus-plugin-manager (#1099)
Bump @types/semver from 6.0.0 to 6.0.1 in /terminus-plugin-manager
2019-06-21 08:25:40 +02:00
dependabot-preview[bot]
e11c0548e0 Bump electron-installer-snap from 3.2.0 to 4.0.0
Bumps [electron-installer-snap](https://github.com/electron-userland/electron-installer-snap) from 3.2.0 to 4.0.0.
- [Release notes](https://github.com/electron-userland/electron-installer-snap/releases)
- [Changelog](https://github.com/electron-userland/electron-installer-snap/blob/master/NEWS.md)
- [Commits](https://github.com/electron-userland/electron-installer-snap/compare/v3.2.0...v4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 04:39:38 +00:00
dependabot-preview[bot]
33ebe81793 Bump webpack from 4.34.0 to 4.35.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.34.0 to 4.35.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.34.0...v4.35.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 04:37:19 +00:00
dependabot-preview[bot]
dcf071bdf2 Bump app-builder-lib from 20.44.2 to 20.44.3
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 20.44.2 to 20.44.3.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.44.2...v20.44.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 04:36:14 +00:00
dependabot-preview[bot]
650d2ac24e Bump @types/semver from 6.0.0 to 6.0.1 in /terminus-plugin-manager
Bumps [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 04:35:14 +00:00
Eugene Pankov
e18105632b set proper version number on nightly builds (fixes #1071) 2019-06-20 12:32:57 +02:00
Eugene Pankov
6d34826036 Update .travis.yml 2019-06-20 12:11:24 +02:00
Eugene Pankov
36bd5f9ed7 fixed #1053 2019-06-20 11:57:32 +02:00
Eugene Pankov
c180f3faff fixed cli option parsing (fixes #1076, fixes #1031) 2019-06-20 11:56:59 +02:00
Eugene
76b81f8605 Bump keytar from 4.9.0 to 4.10.0 in /terminus-ssh (#1091)
Bump keytar from 4.9.0 to 4.10.0 in /terminus-ssh
2019-06-20 09:53:20 +02:00
Eugene
e08227cf4c Bump electron-builder from 20.43.0 to 20.44.2 (#1093)
Bump electron-builder from 20.43.0 to 20.44.2
2019-06-20 09:53:06 +02:00
Eugene
7321fd3d4f Bump node-abi from 2.8.0 to 2.9.0 (#1092)
Bump node-abi from 2.8.0 to 2.9.0
2019-06-20 09:53:00 +02:00
Eugene Pankov
d680c345e1 Update .travis.yml 2019-06-20 09:52:47 +02:00
dependabot-preview[bot]
16fdacdafb Bump electron-builder from 20.43.0 to 20.44.2
Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 20.43.0 to 20.44.2.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.43.0...v20.44.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 04:47:25 +00:00
dependabot-preview[bot]
487400f00d Bump node-abi from 2.8.0 to 2.9.0
Bumps [node-abi](https://github.com/lgeiger/node-abi) from 2.8.0 to 2.9.0.
- [Release notes](https://github.com/lgeiger/node-abi/releases)
- [Commits](https://github.com/lgeiger/node-abi/compare/v2.8.0...v2.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 04:45:23 +00:00
dependabot-preview[bot]
0df75cdd48 Bump keytar from 4.9.0 to 4.10.0 in /terminus-ssh
Bumps [keytar](https://github.com/atom/node-keytar) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/atom/node-keytar/releases)
- [Commits](https://github.com/atom/node-keytar/compare/v4.9.0...v4.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 04:43:57 +00:00
Eugene Pankov
8bcd849b83 Merge branch 'master' of github.com:Eugeny/terminus 2019-06-19 17:27:11 +02:00
Eugene Pankov
6610563241 possible fix for #729 2019-06-19 17:27:08 +02:00
Eugene
0e732a548b Bump pug from 2.0.3 to 2.0.4 (#1090)
Bump pug from 2.0.3 to 2.0.4
2019-06-19 07:48:41 +02:00
dependabot-preview[bot]
dced067821 Bump pug from 2.0.3 to 2.0.4
Bumps [pug](https://github.com/pugjs/pug) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/pugjs/pug/releases)
- [Commits](https://github.com/pugjs/pug/compare/pug@2.0.3...pug@2.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-19 04:25:06 +00:00
Eugene Pankov
f279f1a1e5 login scripts ui cleanup 2019-06-18 23:53:19 +02:00
Eugene Pankov
db3b8cc718 added an option to add password from the connection properties (fixes #637) 2019-06-18 23:48:20 +02:00
Eugene Pankov
77058c0472 make password saving optional (fixes #644) 2019-06-18 23:23:51 +02:00
Eugene Pankov
c35c8791f9 don't forget password on connection errors (fixes #783) 2019-06-18 23:13:19 +02:00
Eugene Pankov
b94c97017c show ssh hotkey in settings (fixes #1067) 2019-06-18 22:11:43 +02:00
Eugene Pankov
37fc878f37 fixed xterm imports 2019-06-18 17:33:08 +02:00
Eugene Pankov
fac5b7bb3f fixed shellEscape import 2019-06-18 17:20:37 +02:00
Eugene Pankov
ff860fbb0c bumped xterm 2019-06-18 17:20:31 +02:00
Eugene
7624405bb4 Merge pull request #1077 from Eugeny/dependabot/npm_and_yarn/terminus-core/deepmerge-3.2.1
Bump deepmerge from 3.2.0 to 3.2.1 in /terminus-core
2019-06-17 08:15:40 +02:00
Eugene
24bc15c4ea Merge pull request #1081 from Eugeny/dependabot/npm_and_yarn/app-builder-lib-20.44.1
Bump app-builder-lib from 20.43.0 to 20.44.1
2019-06-17 08:15:09 +02:00
Eugene
3fd69a1c29 Merge pull request #1082 from Eugeny/dependabot/npm_and_yarn/core-js-3.1.4
Bump core-js from 3.1.3 to 3.1.4
2019-06-17 08:14:02 +02:00
Eugene
6cdcd96902 Merge pull request #1078 from Eugeny/dependabot/npm_and_yarn/terminus-core/core-js-3.1.4
Bump core-js from 3.1.3 to 3.1.4 in /terminus-core
2019-06-17 08:13:26 +02:00
dependabot-preview[bot]
9257824f45 Bump core-js from 3.1.3 to 3.1.4
Bumps [core-js](https://github.com/zloirock/core-js) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.1.3...3.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 05:41:29 +00:00
dependabot-preview[bot]
fb474d96fd Bump app-builder-lib from 20.43.0 to 20.44.1
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 20.43.0 to 20.44.1.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.43.0...v20.44.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 05:41:00 +00:00
dependabot-preview[bot]
ba67449f03 Bump core-js from 3.1.3 to 3.1.4 in /terminus-core
Bumps [core-js](https://github.com/zloirock/core-js) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.1.3...3.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 05:26:33 +00:00
dependabot-preview[bot]
2bdb85a420 Bump deepmerge from 3.2.0 to 3.2.1 in /terminus-core
Bumps [deepmerge](https://github.com/TehShrike/deepmerge) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/TehShrike/deepmerge/releases)
- [Changelog](https://github.com/TehShrike/deepmerge/blob/master/changelog.md)
- [Commits](https://github.com/TehShrike/deepmerge/compare/v3.2.0...v3.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 05:26:08 +00:00
Eugene Pankov
c008a3478e @typescript-eslint linter 2019-06-14 23:47:48 +02:00
Eugene Pankov
a5ecdeb5ea lint 2019-06-14 17:49:42 +02:00
Eugene Pankov
82e3348122 catch decorator attach/detach errors 2019-06-14 17:32:35 +02:00
Eugene Pankov
4c659b80fd reenabled ctrl-v in xterm (#706) 2019-06-14 17:26:31 +02:00
Eugene Pankov
ba10b89006 clear selection on copy 2019-06-14 17:19:00 +02:00
Eugene Pankov
496f0288dc default flags fix 2019-06-14 17:18:39 +02:00
Eugene Pankov
a90496dc1b custom Electron flags support (fixes #754) 2019-06-14 17:15:52 +02:00
Eugene Pankov
f7eeb8df14 fixed custom shell input (fixes #1054) 2019-06-14 16:32:56 +02:00
Eugene Pankov
99c6c5220a Merge branch 'master' of github.com:Eugeny/terminus 2019-06-14 14:18:33 +02:00
Eugene Pankov
19f0ea4310 travis caching 2019-06-14 12:22:36 +02:00
Eugene
e88fc8a2b4 Bump typescript from 3.5.1 to 3.5.2 (#1070)
Bump typescript from 3.5.1 to 3.5.2
2019-06-14 12:01:09 +02:00
Eugene
3ed5ccd2ee Bump node-gyp from 4.0.0 to 5.0.0 (#1069)
Bump node-gyp from 4.0.0 to 5.0.0
2019-06-14 12:00:40 +02:00
dependabot-preview[bot]
f9a493a53e Bump typescript from 3.5.1 to 3.5.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-14 05:33:44 +00:00
dependabot-preview[bot]
75b7811541 Bump node-gyp from 4.0.0 to 5.0.0
Bumps [node-gyp](https://github.com/nodejs/node-gyp) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/nodejs/node-gyp/releases)
- [Changelog](https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodejs/node-gyp/compare/v4.0.0...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-14 05:33:16 +00:00
Eugene Pankov
589b7ea46c bumped xterm 2019-06-13 14:26:02 +02:00
Eugene
2505ee89d0 Bump webpack from 4.33.0 to 4.34.0 (#1068)
Bump webpack from 4.33.0 to 4.34.0
2019-06-13 09:26:34 +02:00
dependabot-preview[bot]
ab9d436057 Bump webpack from 4.33.0 to 4.34.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.33.0 to 4.34.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.33.0...v4.34.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 05:23:32 +00:00
Eugene
7c75089b71 Bump webpack-cli from 3.3.3 to 3.3.4 (#1059)
Bump webpack-cli from 3.3.3 to 3.3.4
2019-06-13 00:40:50 +02:00
Eugene
548257ba8b Bump @types/node from 12.0.7 to 12.0.8 in /terminus-plugin-manager (#1056)
Bump @types/node from 12.0.7 to 12.0.8 in /terminus-plugin-manager
2019-06-13 00:38:21 +02:00
Eugene
02ff97990c Bump css-loader from 2.1.1 to 3.0.0 (#1057)
Bump css-loader from 2.1.1 to 3.0.0
2019-06-13 00:38:14 +02:00
Eugene
dfbe19b4d0 Bump @types/node from 12.0.7 to 12.0.8 in /terminus-settings (#1060)
Bump @types/node from 12.0.7 to 12.0.8 in /terminus-settings
2019-06-13 00:37:56 +02:00
dependabot-preview[bot]
4ded6f6528 Bump @types/node from 12.0.7 to 12.0.8 in /terminus-plugin-manager
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.7 to 12.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 22:37:30 +00:00
dependabot-preview[bot]
f21e6efad3 Bump @types/node from 12.0.7 to 12.0.8 in /terminus-settings
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.7 to 12.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 22:37:19 +00:00
Eugene
5089b444b1 Bump @types/node from 12.0.7 to 12.0.8 (#1058)
Bump @types/node from 12.0.7 to 12.0.8
2019-06-13 00:36:33 +02:00
Eugene
9ad5d10bda Bump @types/node from 12.0.7 to 12.0.8 in /terminus-community-color-schemes (#1061)
Bump @types/node from 12.0.7 to 12.0.8 in /terminus-community-color-schemes
2019-06-13 00:36:23 +02:00
Eugene
9719017bf6 Bump @types/node from 12.0.7 to 12.0.8 in /terminus-core (#1062)
Bump @types/node from 12.0.7 to 12.0.8 in /terminus-core
2019-06-13 00:36:15 +02:00
Eugene
08d476a9cf Bump @types/node from 12.0.7 to 12.0.8 in /terminus-terminal (#1063)
Bump @types/node from 12.0.7 to 12.0.8 in /terminus-terminal
2019-06-13 00:36:07 +02:00
Eugene Pankov
a2b633d3a5 hotkey fixes (#1013) 2019-06-13 00:34:52 +02:00
Eugene
f7f7bccbe3 Merge pull request #1066 from IgnusG/master
Fix scrolling in settings not working due to css style placement
2019-06-12 21:53:10 +02:00
IgnusG
14723732f2 Fix scrolling in settings not working due to css style placement 2019-06-12 21:51:07 +02:00
dependabot-preview[bot]
19b23f61bb Bump @types/node from 12.0.7 to 12.0.8 in /terminus-terminal
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.7 to 12.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 05:35:17 +00:00
dependabot-preview[bot]
45de0d3936 Bump @types/node from 12.0.7 to 12.0.8 in /terminus-core
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.7 to 12.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 05:34:12 +00:00
dependabot-preview[bot]
b96e200d4a Bump @types/node in /terminus-community-color-schemes
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.7 to 12.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 05:32:38 +00:00
dependabot-preview[bot]
bdea4109c8 Bump webpack-cli from 3.3.3 to 3.3.4
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.3 to 3.3.4.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/3.3.3...v3.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 05:20:04 +00:00
dependabot-preview[bot]
be7fabd4ce Bump @types/node from 12.0.7 to 12.0.8
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.7 to 12.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 05:19:30 +00:00
dependabot-preview[bot]
68aab556d6 Bump css-loader from 2.1.1 to 3.0.0
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v2.1.1...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 05:19:06 +00:00
Eugene Pankov
2fad5b741e Merge branch 'master' of github.com:Eugeny/terminus 2019-06-10 21:56:46 +02:00
Eugene
1bf95721dd Bump url-loader from 1.1.2 to 2.0.0 (#1021)
Bump url-loader from 1.1.2 to 2.0.0
2019-06-10 09:34:49 +02:00
Eugene
0e4f141075 Bump webpack-cli from 3.3.2 to 3.3.3 (#1050)
Bump webpack-cli from 3.3.2 to 3.3.3
2019-06-10 09:34:16 +02:00
Eugene
7cd74373be Bump electron from 5.0.2 to 5.0.3 (#1051)
Bump electron from 5.0.2 to 5.0.3
2019-06-10 09:33:02 +02:00
dependabot-preview[bot]
15d959e871 Bump electron from 5.0.2 to 5.0.3
Bumps [electron](https://github.com/electron/electron) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](https://github.com/electron/electron/compare/v5.0.2...v5.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 05:36:42 +00:00
dependabot-preview[bot]
aac6d024ae Bump webpack-cli from 3.3.2 to 3.3.3
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.2...3.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 05:36:07 +00:00
Eugene Pankov
80e67fed22 fixed toasts 2019-06-09 19:49:54 +02:00
Eugene
05a19b188b docs: add IgnusG as a contributor (#1049)
docs: add IgnusG as a contributor
2019-06-09 19:38:31 +02:00
allcontributors[bot]
f706034efb docs: update .all-contributorsrc 2019-06-09 17:35:35 +00:00
allcontributors[bot]
e8538a970b docs: update README.md 2019-06-09 17:35:34 +00:00
Eugene
f5013096d2 Set overflow on content instead of screen in settings (#1047)
Set overflow on content instead of screen in settings
2019-06-09 19:34:58 +02:00
Eugene Pankov
639b8e561c skip docs build for PRs 2019-06-09 19:34:41 +02:00
Eugene Pankov
fe03ca12ed Merge branch 'master' of github.com:Eugeny/terminus 2019-06-09 19:32:32 +02:00
Eugene Pankov
375a98b013 fixed invisible ssh tabs (fixes #1044) 2019-06-09 19:32:30 +02:00
Jonathan
522ce2d8a6 Set overflow on content instead of screen in settings 2019-06-09 11:02:51 +02:00
Eugene
6a981ae30b docs: add PMExtra as a contributor (#1046)
docs: add PMExtra as a contributor
2019-06-08 22:38:51 +02:00
allcontributors[bot]
3851206185 docs: update .all-contributorsrc 2019-06-08 20:38:36 +00:00
allcontributors[bot]
beed2d44ca docs: update README.md 2019-06-08 20:38:35 +00:00
Eugene Pankov
860f1e39fb Merge branch 'master' of github.com:Eugeny/terminus 2019-06-08 22:38:09 +02:00
Eugene Pankov
956d3dc6b1 proper font fallback support (fixes #1041) 2019-06-08 22:37:05 +02:00
Eugene
3582addb62 docs: add NieLeben as a contributor (#1045)
docs: add NieLeben as a contributor
2019-06-08 22:36:43 +02:00
allcontributors[bot]
e392ede4c1 docs: update .all-contributorsrc 2019-06-08 20:36:04 +00:00
allcontributors[bot]
61ee0c4d02 docs: update README.md 2019-06-08 20:36:03 +00:00
Eugene
e451190e3c Merge pull request #1043 from NieLeben/nie-name-fix
Remove name in package.json
2019-06-08 22:35:36 +02:00
Eugene Pankov
cf83bd3798 fixed global shortcut behaviour (fixes #823) 2019-06-08 22:10:39 +02:00
Tilmann Meyer
4165056c12 Remove name in package.json
Removed name because it's a monorepo and it conflicts with https://www.npmjs.com/package/term
2019-06-08 21:44:47 +02:00
Eugene Pankov
596d75adc1 reduced bundle size 2019-06-07 22:52:41 +02:00
Eugene Pankov
45f6e59583 symantec timeserver 2019-06-07 22:13:32 +02:00
Eugene Pankov
ff3f606aea electron-builder debug output 2019-06-07 21:27:18 +02:00
Eugene Pankov
e7311a21e9 Update .travis.yml 2019-06-07 20:18:45 +02:00
Eugene Pankov
c4a4255a7a Update appveyor.yml 2019-06-07 20:05:48 +02:00
Eugene Pankov
247053665c ci fixes 2019-06-07 20:05:11 +02:00
Eugene Pankov
141c890b9c Update .travis.yml 2019-06-07 20:04:03 +02:00
Eugene Pankov
ccb5d90634 ci caching 2019-06-07 20:00:32 +02:00
Eugene Pankov
8c61b8a778 avoid 10 min travis timeout 2019-06-07 17:43:53 +02:00
Eugene Pankov
093aa66797 Merge branch 'master' of github.com:Eugeny/terminus 2019-06-07 17:19:35 +02:00
Eugene Pankov
669c339f87 fixed docs build 2019-06-07 17:17:54 +02:00
Eugene
e6ab403e3e Merge pull request #1035 from Eugeny/dependabot/npm_and_yarn/terminus-terminal/@types/node-12.0.7
Bump @types/node from 12.0.4 to 12.0.7 in /terminus-terminal
2019-06-07 10:47:29 +02:00
Eugene
fcbcdfe660 Bump @types/node from 12.0.4 to 12.0.7 in /terminus-settings (#1033)
Bump @types/node from 12.0.4 to 12.0.7 in /terminus-settings
2019-06-07 10:47:24 +02:00
Eugene
450073d418 Bump @types/node from 12.0.4 to 12.0.7 in /terminus-community-color-schemes (#1036)
Bump @types/node from 12.0.4 to 12.0.7 in /terminus-community-color-schemes
2019-06-07 10:47:16 +02:00
Eugene
8b0ba30b9f Bump @types/node from 12.0.4 to 12.0.7 in /terminus-plugin-manager (#1032)
Bump @types/node from 12.0.4 to 12.0.7 in /terminus-plugin-manager
2019-06-07 10:47:08 +02:00
Eugene
34abc9813b Bump @types/node from 12.0.4 to 12.0.7 (#1034)
Bump @types/node from 12.0.4 to 12.0.7
2019-06-07 10:47:03 +02:00
Eugene
3df0c71a5a Bump @types/node from 12.0.4 to 12.0.7 in /terminus-core (#1037)
Bump @types/node from 12.0.4 to 12.0.7 in /terminus-core
2019-06-07 10:46:55 +02:00
Eugene Pankov
1d9206886a moved npm package to app (fixes #714) 2019-06-07 10:45:06 +02:00
Eugene Pankov
4b346b5428 fail travis builds faster 2019-06-07 07:59:13 +02:00
dependabot-preview[bot]
5f51049c1a Bump @types/node from 12.0.4 to 12.0.7 in /terminus-core
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.4 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:40:25 +00:00
dependabot-preview[bot]
5e1f652225 Bump @types/node in /terminus-community-color-schemes
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.4 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:35:18 +00:00
dependabot-preview[bot]
1622977991 Bump @types/node from 12.0.4 to 12.0.7 in /terminus-terminal
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.4 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:34:06 +00:00
dependabot-preview[bot]
9a5021110d Bump @types/node from 12.0.4 to 12.0.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.4 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:33:44 +00:00
dependabot-preview[bot]
05d842b69b Bump @types/node from 12.0.4 to 12.0.7 in /terminus-settings
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.4 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:33:38 +00:00
dependabot-preview[bot]
4a24bd5d90 Bump @types/node from 12.0.4 to 12.0.7 in /terminus-plugin-manager
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.4 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:29:54 +00:00
Eugene Pankov
0fdc780eca contributors 2019-06-06 22:44:49 +02:00
Eugene Pankov
6f8bf46c01 contributors 2019-06-06 22:43:35 +02:00
Eugene Pankov
7de78365b0 added initial contributors 2019-06-06 22:41:20 +02:00
Eugene
5f87123fb2 docs: add ehwarren as a contributor (#1029)
docs: add ehwarren as a contributor
2019-06-06 22:21:08 +02:00
allcontributors[bot]
fa1cb5fb4b docs: update .all-contributorsrc 2019-06-06 20:20:33 +00:00
allcontributors[bot]
d973d6c60f docs: update README.md 2019-06-06 20:20:32 +00:00
Eugene
b002c59578 Merge pull request #1026 from Eugeny/all-contributors/add-mezner
docs: add mezner as a contributor
2019-06-06 22:19:04 +02:00
allcontributors[bot]
ec981dc24d docs: create .all-contributorsrc 2019-06-06 20:18:02 +00:00
allcontributors[bot]
12d625f561 docs: update README.md 2019-06-06 20:18:01 +00:00
Eugene Pankov
37a7d32bc8 copy as html if possible (fixes #503) 2019-06-06 20:53:14 +02:00
Eugene Pankov
044a39abc9 restore pty bufferization 2019-06-06 19:51:38 +02:00
Eugene Pankov
7bedfc5122 build fix 2019-06-06 19:39:52 +02:00
Eugene Pankov
1031b2912c Revert "bumped @types/node"
This reverts commit 025927577e.
2019-06-06 14:32:50 +02:00
Eugene Pankov
732e494400 Merge branch 'master' of github.com:Eugeny/terminus 2019-06-06 13:56:15 +02:00
Eugene Pankov
0a700fc6c3 added missing export 2019-06-06 13:55:53 +02:00
Eugene
af069f25e2 Bump file-loader from 3.0.1 to 4.0.0 (#1017)
Bump file-loader from 3.0.1 to 4.0.0
2019-06-06 13:48:16 +02:00
Eugene
c50257fec4 Bump raw-loader from 2.0.0 to 3.0.0 (#1020)
Bump raw-loader from 2.0.0 to 3.0.0
2019-06-06 13:47:56 +02:00
Eugene Pankov
025927577e bumped @types/node 2019-06-06 13:46:54 +02:00
Eugene Pankov
39bbe54992 refactoring, build fix 2019-06-06 13:45:15 +02:00
dependabot-preview[bot]
f94c7fd607 Bump url-loader from 1.1.2 to 2.0.0
Bumps [url-loader](https://github.com/webpack-contrib/url-loader) from 1.1.2 to 2.0.0.
- [Release notes](https://github.com/webpack-contrib/url-loader/releases)
- [Changelog](https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/url-loader/compare/v1.1.2...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-06 05:21:12 +00:00
dependabot-preview[bot]
e3a0a4bc5e Bump raw-loader from 2.0.0 to 3.0.0
Bumps [raw-loader](https://github.com/webpack-contrib/raw-loader) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/raw-loader/releases)
- [Changelog](https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/raw-loader/compare/v2.0.0...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-06 05:20:46 +00:00
dependabot-preview[bot]
44ab6cf9b7 Bump file-loader from 3.0.1 to 4.0.0
Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 3.0.1 to 4.0.0.
- [Release notes](https://github.com/webpack-contrib/file-loader/releases)
- [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/file-loader/compare/v3.0.1...v4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-06 05:19:51 +00:00
Eugene Pankov
1c23db3b55 include xterm webgl renderer as a separate frontend 2019-06-05 22:16:24 +02:00
Eugene Pankov
ac727885c4 Merge branch 'webgl' 2019-06-05 22:06:22 +02:00
Eugene Pankov
0e8482e28d Search (fixes #85) 2019-06-05 22:04:40 +02:00
Eugene Pankov
46720e3236 webgl test 2019-06-05 20:18:39 +02:00
Eugene
c3693f5d44 Bump xterm from 3.14.1 to 3.14.2 in /terminus-terminal (#1005)
Bump xterm from 3.14.1 to 3.14.2 in /terminus-terminal
2019-06-05 18:31:17 +02:00
Eugene
d4f3c6ebf4 Bump electron-builder from 20.41.0 to 20.43.0 (#1009)
Bump electron-builder from 20.41.0 to 20.43.0
2019-06-05 18:31:00 +02:00
Eugene
3cc4c5d1b4 Bump handlebars from 4.1.0 to 4.1.2 (#1015)
Bump handlebars from 4.1.0 to 4.1.2
2019-06-05 18:30:43 +02:00
dependabot[bot]
5cea920270 Bump handlebars from 4.1.0 to 4.1.2
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.0 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.0...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-05 16:17:39 +00:00
Eugene
0dcba9861a Merge pull request #1008 from Eugeny/dependabot/npm_and_yarn/raven-js-3.27.2
Bump raven-js from 3.27.1 to 3.27.2
2019-06-05 08:20:45 +02:00
dependabot-preview[bot]
03e299ecc6 Bump electron-builder from 20.41.0 to 20.43.0
Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 20.41.0 to 20.43.0.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.41.0...v20.43.0)
2019-06-05 06:20:15 +00:00
Eugene
5e1e63c37b Merge pull request #1010 from Eugeny/dependabot/npm_and_yarn/@fortawesome/fontawesome-free-5.9.0
Bump @fortawesome/fontawesome-free from 5.8.2 to 5.9.0
2019-06-05 08:19:45 +02:00
Eugene
59e73616cd Merge pull request #1011 from Eugeny/dependabot/npm_and_yarn/webpack-4.33.0
Bump webpack from 4.32.2 to 4.33.0
2019-06-05 08:18:43 +02:00
Eugene
e03e96f61b Merge pull request #1012 from Eugeny/dependabot/npm_and_yarn/app-builder-lib-20.43.0
Bump app-builder-lib from 20.42.0 to 20.43.0
2019-06-05 08:18:09 +02:00
dependabot-preview[bot]
01cd2cc4b1 Bump app-builder-lib from 20.42.0 to 20.43.0
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 20.42.0 to 20.43.0.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/compare/v20.42.0...v20.43.0)
2019-06-05 05:41:57 +00:00
dependabot-preview[bot]
f00a4cf38f Bump webpack from 4.32.2 to 4.33.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.32.2 to 4.33.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.32.2...v4.33.0)
2019-06-05 05:41:30 +00:00
dependabot-preview[bot]
9d5860a452 Bump @fortawesome/fontawesome-free from 5.8.2 to 5.9.0
Bumps [@fortawesome/fontawesome-free](https://github.com/FortAwesome/Font-Awesome) from 5.8.2 to 5.9.0.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/5.8.2...5.9.0)
2019-06-05 05:41:01 +00:00
dependabot-preview[bot]
24bbbd3e96 Bump raven-js from 3.27.1 to 3.27.2
Bumps [raven-js](https://github.com/getsentry/raven-js) from 3.27.1 to 3.27.2.
- [Release notes](https://github.com/getsentry/raven-js/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/raven-js/compare/v3.27.1...v3.27.2)
2019-06-05 05:40:06 +00:00
Eugene Pankov
673cc2f9f9 removed duplicate logging 2019-06-04 17:10:50 +02:00
dependabot-preview[bot]
db12702baa Bump xterm from 3.14.1 to 3.14.2 in /terminus-terminal
Bumps [xterm](https://github.com/xtermjs/xterm.js) from 3.14.1 to 3.14.2.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/compare/3.14.1...3.14.2)
2019-06-04 05:21:43 +00:00
Eugene Pankov
807cb0aac4 disable updater in dev mode 2019-06-03 17:51:25 +02:00
180 changed files with 7043 additions and 6746 deletions

173
.all-contributorsrc Normal file
View File

@@ -0,0 +1,173 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "mezner",
"name": "Russell Myers",
"avatar_url": "https://avatars2.githubusercontent.com/u/184085?v=4",
"profile": "http://www.russellmyers.com",
"contributions": [
"code"
]
},
{
"login": "ehwarren",
"name": "Austin Warren",
"avatar_url": "https://avatars1.githubusercontent.com/u/3991658?v=4",
"profile": "http://www.morwire.com",
"contributions": [
"code"
]
},
{
"login": "Drachenkaetzchen",
"name": "Felicia Hummel",
"avatar_url": "https://avatars1.githubusercontent.com/u/162974?v=4",
"profile": "https://github.com/Drachenkaetzchen",
"contributions": [
"code"
]
},
{
"login": "mikemaccana",
"name": "Mike MacCana",
"avatar_url": "https://avatars2.githubusercontent.com/u/172594?v=4",
"profile": "https://github.com/mikemaccana",
"contributions": [
"test",
"design"
]
},
{
"login": "yxuko",
"name": "Yacine Kanzari",
"avatar_url": "https://avatars1.githubusercontent.com/u/1786317?v=4",
"profile": "https://github.com/yxuko",
"contributions": [
"code"
]
},
{
"login": "BBJip",
"name": "BBJip",
"avatar_url": "https://avatars2.githubusercontent.com/u/32908927?v=4",
"profile": "https://github.com/BBJip",
"contributions": [
"code"
]
},
{
"login": "Futagirl",
"name": "Futagirl",
"avatar_url": "https://avatars2.githubusercontent.com/u/33533958?v=4",
"profile": "https://github.com/Futagirl",
"contributions": [
"design"
]
},
{
"login": "levrik",
"name": "Levin Rickert",
"avatar_url": "https://avatars3.githubusercontent.com/u/9491603?v=4",
"profile": "https://www.levrik.io",
"contributions": [
"code"
]
},
{
"login": "kwonoj",
"name": "OJ Kwon",
"avatar_url": "https://avatars2.githubusercontent.com/u/1210596?v=4",
"profile": "https://kwonoj.github.io",
"contributions": [
"code"
]
},
{
"login": "Domain",
"name": "domain",
"avatar_url": "https://avatars2.githubusercontent.com/u/903197?v=4",
"profile": "https://github.com/Domain",
"contributions": [
"plugin",
"code"
]
},
{
"login": "kbjr",
"name": "James Brumond",
"avatar_url": "https://avatars1.githubusercontent.com/u/195127?v=4",
"profile": "http://www.jbrumond.me",
"contributions": [
"plugin"
]
},
{
"login": "Tyriar",
"name": "Daniel Imms",
"avatar_url": "https://avatars0.githubusercontent.com/u/2193314?v=4",
"profile": "http://www.growingwiththeweb.com",
"contributions": [
"code",
"plugin",
"test"
]
},
{
"login": "baflo",
"name": "Florian Bachmann",
"avatar_url": "https://avatars2.githubusercontent.com/u/834350?v=4",
"profile": "https://github.com/baflo",
"contributions": [
"code"
]
},
{
"login": "mischah",
"name": "Michael Kühnel",
"avatar_url": "https://avatars2.githubusercontent.com/u/441011?v=4",
"profile": "http://michael-kuehnel.de",
"contributions": [
"code",
"design"
]
},
{
"login": "NieLeben",
"name": "Tilmann Meyer",
"avatar_url": "https://avatars3.githubusercontent.com/u/47182955?v=4",
"profile": "https://github.com/NieLeben",
"contributions": [
"code"
]
},
{
"login": "PMExtra",
"name": "PM Extra",
"avatar_url": "https://avatars3.githubusercontent.com/u/11289158?v=4",
"profile": "http://www.jubeat.net",
"contributions": [
"bug"
]
},
{
"login": "IgnusG",
"name": "Jonathan",
"avatar_url": "https://avatars1.githubusercontent.com/u/6438760?v=4",
"profile": "https://jjuhas.keybase.pub//",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
"projectName": "terminus",
"projectOwner": "Eugeny",
"repoType": "github",
"repoHost": "https://github.com",
"commitConvention": "none"
}

82
.eslintrc.yml Normal file
View File

@@ -0,0 +1,82 @@
parser: '@typescript-eslint/parser'
parserOptions:
project: tsconfig.json
extends:
- 'plugin:@typescript-eslint/all'
plugins:
- '@typescript-eslint'
env:
browser: true
es6: true
node: true
commonjs: true
rules:
'@typescript-eslint/semi':
- error
- never
'@typescript-eslint/indent':
- error
- 4
'@typescript-eslint/explicit-member-accessibility':
- error
- accessibility: no-public
overrides:
parameterProperties: explicit
'@typescript-eslint/no-require-imports': off
'@typescript-eslint/no-parameter-properties': off
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-magic-numbers': off
'@typescript-eslint/member-delimiter-style': off
'@typescript-eslint/promise-function-async': off
'@typescript-eslint/no-unnecessary-type-assertion': off
'@typescript-eslint/require-array-sort-compare': off
'@typescript-eslint/no-use-before-define':
- error
- classes: false
no-duplicate-imports: error
array-bracket-spacing:
- error
- never
block-scoped-var: error
brace-style:
- error
- 1tbs
- allowSingleLine: true
computed-property-spacing:
- error
- never
comma-dangle:
- error
- always-multiline
curly: error
eol-last: error
eqeqeq:
- error
- smart
linebreak-style:
- error
- unix
max-depth:
- 1
- 5
max-statements:
- 1
- 80
no-multiple-empty-lines: error
no-mixed-spaces-and-tabs: error
no-trailing-spaces: error
'@typescript-eslint/no-unused-vars':
- error
- vars: all
args: after-used
argsIgnorePattern: ^_
no-undef: error
object-curly-spacing:
- error
- always
quote-props:
- warn
- as-needed
- keywords: true
numbers: true

3
.gitignore vendored
View File

@@ -6,6 +6,8 @@ node_modules
build/files.wxs
dist
*/dist
*/typings
*.tsbuildinfo
*.xcworkspacedata
*.xcuserstate
@@ -21,3 +23,4 @@ yarn-error.log
docs/api
.travis.ssh.key
*.code-workspace

View File

@@ -9,31 +9,40 @@ stages:
jobs:
include:
- stage: 'Build'
if: branch = xxx
os: linux
before_install:
- yarn
- set -e
- rm app/node_modules/.yarn-integrity || true
- scripts/install-deps.js
- yarn
script:
- set -e
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # https://github.com/travis-ci/travis-ci/issues/8920
- scripts/build-native.js
- yarn run build:typings
- yarn run build
- scripts/prepackage-plugins.js
- scripts/build-linux.js
- travis_wait scripts/build-linux.js
- stage: 'Build'
os: osx
before_install:
- set -e
- rm app/node_modules/.yarn-integrity || true
- yarn
script:
- set -e
- scripts/build-native.js
- yarn run build:typings
- yarn run build
- scripts/prepackage-plugins.js
- scripts/build-macos.js
- travis_wait scripts/build-macos.js
- stage: 'Docs'
os: linux
if: branch = master
script:
- set -e
- openssl aes-256-cbc -K $encrypted_4e2fb4889ef8_key -iv $encrypted_4e2fb4889ef8_iv -in .travis.ssh.key.enc -out .travis.ssh.key -d
- eval "$(ssh-agent -s)"
- chmod 600 .travis.ssh.key
@@ -54,3 +63,11 @@ addons:
sources:
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
cache:
directories:
- 'terminus-*/node_modules'
- $HOME/.cache/yarn
- $HOME/.cache/electron
- $HOME/.cache/electron-builder

View File

@@ -92,11 +92,11 @@ Plugins provide functionality by exporting singular or multi providers:
```javascript
import { NgModule, Injectable } from '@angular/core'
import { ToolbarButtonProvider, IToolbarButton } from 'terminus-core'
import { ToolbarButtonProvider, ToolbarButton } from 'terminus-core'
@Injectable()
export class MyButtonProvider extends ToolbarButtonProvider {
provide (): IToolbarButton[] {
provide (): ToolbarButton[] {
return [{
icon: 'star',
title: 'Foobar',

File diff suppressed because one or more lines are too long

View File

@@ -19,12 +19,16 @@ export class Application {
}
app.commandLine.appendSwitch('disable-http-cache')
app.commandLine.appendSwitch('force_discrete_gpu', '0')
app.commandLine.appendSwitch('lang', 'EN')
for (const flag of configData.flags || [['force_discrete_gpu', '0']]) {
console.log('Setting Electron flag:', flag.join('='))
app.commandLine.appendSwitch(flag[0], flag[1])
}
}
init () {
electron.screen.on('display-metrics-changed', () => this.broadcast('host:display-metrics-changed'))
electron.screen.on('display-metrics-changed', () => this.broadcast('host:display-metrics-changed'))
}
async newWindow (options?: WindowOptions): Promise<Window> {

View File

@@ -41,6 +41,5 @@ export function parseArgs (argv, cwd) {
type: 'boolean'
})
.help('help')
.strict()
.parse(argv.slice(1))
}

View File

@@ -1,6 +1,6 @@
import { Subject, Observable } from 'rxjs'
import { debounceTime } from 'rxjs/operators'
import { BrowserWindow, app, ipcMain, Rectangle } from 'electron'
import { BrowserWindow, app, ipcMain, Rectangle, screen } from 'electron'
import ElectronConfig = require('electron-config')
import * as os from 'os'
@@ -51,7 +51,19 @@ export class Window {
show: false,
backgroundColor: '#00000000'
}
Object.assign(bwOptions, this.windowBounds)
if (this.windowBounds) {
Object.assign(bwOptions, this.windowBounds)
const closestDisplay = screen.getDisplayNearestPoint( {x: this.windowBounds.x, y: this.windowBounds.y} )
const [left1, top1, right1, bottom1] = [this.windowBounds.x, this.windowBounds.y, this.windowBounds.x + this.windowBounds.width, this.windowBounds.y + this.windowBounds.height];
const [left2, top2, right2, bottom2] = [closestDisplay.bounds.x, closestDisplay.bounds.y, closestDisplay.bounds.x + closestDisplay.bounds.width, closestDisplay.bounds.y + closestDisplay.bounds.height];
if ((left2 > right1 || right2 < left1 || top2 > bottom1 || bottom2 < top1) && !maximized) {
bwOptions.x = closestDisplay.bounds.width / 2 - bwOptions.width / 2;
bwOptions.y = closestDisplay.bounds.height / 2 - bwOptions.height / 2;
}
}
if ((configData.appearance || {}).frame === 'native') {
bwOptions.frame = true
@@ -82,6 +94,7 @@ export class Window {
this.window.focus()
}
})
this.window.loadURL(`file://${app.getAppPath()}/dist/index.html?${this.window.id}`, { extraHeaders: 'pragma: no-cache\n' })
if (process.platform !== 'darwin') {

View File

@@ -22,13 +22,17 @@
"@angular/platform-browser-dynamic": "7.2.8",
"@ng-bootstrap/ng-bootstrap": "^4.2.0",
"devtron": "1.4.0",
"fontmanager-redux": "0.3.2",
"electron-config": "2.0.0",
"electron-debug": "^3.0.0",
"electron-debug": "^3.0.1",
"electron-is-dev": "1.1.0",
"electron-updater": "^4.0.6",
"js-yaml": "3.13.1",
"keytar": "^4.7.0",
"mz": "^2.7.0",
"ngx-toastr": "^9.1.1",
"ngx-toastr": "^10.0.4",
"node-pty": "^0.9.0-beta18",
"npm": "~6.9.0",
"path": "0.12.7",
"rxjs": "^6.5.2",
"rxjs-compat": "^6.5.2",
@@ -36,7 +40,10 @@
"zone.js": "^0.8.29"
},
"optionalDependencies": {
"@terminus-term/windows-process-tree": "^0.2.4",
"macos-native-processlist": "^1.0.1",
"windows-blurbehind": "^1.0.1",
"windows-native-registry": "^1.0.14",
"windows-swca": "^2.0.2"
},
"devDependencies": {

View File

@@ -4,18 +4,19 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'
import { ToastrModule } from 'ngx-toastr'
export function getRootModule (plugins: any[]) {
let imports = [
const imports = [
BrowserModule,
...plugins,
NgbModule.forRoot(),
ToastrModule.forRoot({
positionClass: 'toast-bottom-center',
toastClass: 'toast',
preventDuplicates: true,
extendedTimeOut: 5000,
}),
]
let bootstrap = [
...(plugins.filter(x => x.bootstrap).map(x => x.bootstrap)),
const bootstrap = [
...plugins.filter(x => x.bootstrap).map(x => x.bootstrap),
]
if (bootstrap.length === 0) {
@@ -25,7 +26,7 @@ export function getRootModule (plugins: any[]) {
@NgModule({
imports,
bootstrap,
}) class RootModule { }
}) class RootModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class
return RootModule
}

View File

@@ -16,20 +16,20 @@ Raven.config(
{
release: require('electron').remote.app.getVersion(),
dataCallback: (data: any) => {
const normalize = (filename) => {
let splitArray = filename.split('/')
const normalize = (filename: string) => {
const splitArray = filename.split('/')
return splitArray[splitArray.length - 1]
}
data.exception.values[0].stacktrace.frames.forEach(frame => {
data.exception.values[0].stacktrace.frames.forEach((frame: any) => {
frame.filename = normalize(frame.filename)
})
data.culprit = data.exception.values[0].stacktrace.frames[0].filename
return data
}
}
},
},
)
process.on('uncaughtException' as any, (err) => {

View File

@@ -2,19 +2,19 @@ import 'zone.js'
import 'core-js/proposals/reflect-metadata'
import 'rxjs'
import isDev = require('electron-is-dev')
import * as isDev from 'electron-is-dev'
import './global.scss'
import './toastr.scss'
// Always land on the start view
location.hash = ''
import { enableProdMode, NgModuleRef } from '@angular/core'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { getRootModule } from './app.module'
import { findPlugins, loadPlugins, IPluginInfo } from './plugins'
import { findPlugins, loadPlugins, PluginInfo } from './plugins'
// Always land on the start view
location.hash = ''
;(process as any).enablePromiseAPI = true
@@ -28,14 +28,14 @@ if (isDev) {
enableProdMode()
}
async function bootstrap (plugins: IPluginInfo[], safeMode = false): Promise<NgModuleRef<any>> {
async function bootstrap (plugins: PluginInfo[], safeMode = false): Promise<NgModuleRef<any>> {
if (safeMode) {
plugins = plugins.filter(x => x.isBuiltin)
}
let pluginsModules = await loadPlugins(plugins, (current, total) => {
(document.querySelector('.progress .bar') as HTMLElement).style.width = 100 * current / total + '%'
const pluginsModules = await loadPlugins(plugins, (current, total) => {
(document.querySelector('.progress .bar') as HTMLElement).style.width = `${100 * current / total}%` // eslint-disable-line
})
let module = getRootModule(pluginsModules)
const module = getRootModule(pluginsModules)
window['rootModule'] = module
return platformBrowserDynamic().bootstrapModule(module)
}

View File

@@ -1,6 +1,6 @@
import * as fs from 'mz/fs'
import * as path from 'path'
const nodeModule = require('module')
const nodeModule = require('module') // eslint-disable-line @typescript-eslint/no-var-requires
const nodeRequire = (global as any).require
function normalizePath (path: string): string {
@@ -12,7 +12,7 @@ function normalizePath (path: string): string {
return path
}
nodeRequire.main.paths.map(x => nodeModule.globalPaths.push(normalizePath(x)))
nodeRequire.main.paths.map((x: string) => nodeModule.globalPaths.push(normalizePath(x)))
if (process.env.TERMINUS_DEV) {
nodeModule.globalPaths.unshift(path.dirname(require('electron').remote.app.getAppPath()))
@@ -38,9 +38,9 @@ if (process.env.TERMINUS_PLUGINS) {
process.env.TERMINUS_PLUGINS.split(':').map(x => nodeModule.globalPaths.push(normalizePath(x)))
}
export declare type ProgressCallback = (current, total) => void
export type ProgressCallback = (current: number, total: number) => void // eslint-disable-line @typescript-eslint/no-type-alias
export interface IPluginInfo {
export interface PluginInfo {
name: string
description: string
packageName: string
@@ -80,17 +80,25 @@ builtinModules.forEach(m => {
})
const originalRequire = (global as any).require
;(global as any).require = function (query) {
;(global as any).require = function (query: string) {
if (cachedBuiltinModules[query]) {
return cachedBuiltinModules[query]
}
return originalRequire.apply(this, arguments)
}
export async function findPlugins (): Promise<IPluginInfo[]> {
let paths = nodeModule.globalPaths
let foundPlugins: IPluginInfo[] = []
let candidateLocations: { pluginDir: string, packageName: string }[] = []
const originalModuleRequire = nodeModule.prototype.require
nodeModule.prototype.require = function (query: string) {
if (cachedBuiltinModules[query]) {
return cachedBuiltinModules[query]
}
return originalModuleRequire.call(this, query)
}
export async function findPlugins (): Promise<PluginInfo[]> {
const paths = nodeModule.globalPaths
let foundPlugins: PluginInfo[] = []
const candidateLocations: { pluginDir: string, packageName: string }[] = []
const PREFIX = 'terminus-'
for (let pluginDir of paths) {
@@ -98,28 +106,28 @@ export async function findPlugins (): Promise<IPluginInfo[]> {
if (!await fs.exists(pluginDir)) {
continue
}
let pluginNames = await fs.readdir(pluginDir)
const pluginNames = await fs.readdir(pluginDir)
if (await fs.exists(path.join(pluginDir, 'package.json'))) {
candidateLocations.push({
pluginDir: path.dirname(pluginDir),
packageName: path.basename(pluginDir)
packageName: path.basename(pluginDir),
})
}
for (let packageName of pluginNames) {
for (const packageName of pluginNames) {
if (packageName.startsWith(PREFIX)) {
candidateLocations.push({ pluginDir, packageName })
}
}
}
for (let { pluginDir, packageName } of candidateLocations) {
let pluginPath = path.join(pluginDir, packageName)
let infoPath = path.join(pluginPath, 'package.json')
for (const { pluginDir, packageName } of candidateLocations) {
const pluginPath = path.join(pluginDir, packageName)
const infoPath = path.join(pluginPath, 'package.json')
if (!await fs.exists(infoPath)) {
continue
}
let name = packageName.substring(PREFIX.length)
const name = packageName.substring(PREFIX.length)
if (foundPlugins.some(x => x.name === name)) {
console.info(`Plugin ${packageName} already exists, overriding`)
@@ -127,7 +135,7 @@ export async function findPlugins (): Promise<IPluginInfo[]> {
}
try {
let info = JSON.parse(await fs.readFile(infoPath, { encoding: 'utf-8' }))
const info = JSON.parse(await fs.readFile(infoPath, { encoding: 'utf-8' }))
if (!info.keywords || !(info.keywords.includes('terminus-plugin') || info.keywords.includes('terminus-builtin-plugin'))) {
continue
}
@@ -152,22 +160,23 @@ export async function findPlugins (): Promise<IPluginInfo[]> {
return foundPlugins
}
export async function loadPlugins (foundPlugins: IPluginInfo[], progress: ProgressCallback): Promise<any[]> {
let plugins: any[] = []
export async function loadPlugins (foundPlugins: PluginInfo[], progress: ProgressCallback): Promise<any[]> {
const plugins: any[] = []
progress(0, 1)
let index = 0
for (let foundPlugin of foundPlugins) {
for (const foundPlugin of foundPlugins) {
console.info(`Loading ${foundPlugin.name}: ${nodeRequire.resolve(foundPlugin.path)}`)
progress(index, foundPlugins.length)
try {
const label = 'Loading ' + foundPlugin.name
console.time(label)
let packageModule = nodeRequire(foundPlugin.path)
let pluginModule = packageModule.default.forRoot ? packageModule.default.forRoot() : packageModule.default
const packageModule = nodeRequire(foundPlugin.path)
const pluginModule = packageModule.default.forRoot ? packageModule.default.forRoot() : packageModule.default
pluginModule['pluginName'] = foundPlugin.name
pluginModule['bootstrap'] = packageModule.bootstrap
plugins.push(pluginModule)
console.timeEnd(label)
await (new Promise(x => setTimeout(x, 50)))
} catch (error) {
console.error(`Could not load ${foundPlugin.name}:`, error)
}

View File

@@ -1,6 +1,6 @@
import { Component } from '@angular/core'
@Component({
template: '<app-root></app-root>'
template: '<app-root></app-root>',
})
export class RootComponent { }
export class RootComponent { } // eslint-disable-line @typescript-eslint/no-extraneous-class

View File

@@ -2,6 +2,7 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
.toast {
box-shadow: 0 1px 0 rgba(0,0,0,.25);

View File

@@ -14,7 +14,7 @@ module.exports = {
minimize: false,
},
context: __dirname,
devtool: 'eval-source-map',
devtool: 'source-map',
output: {
path: path.join(__dirname, 'dist'),
pathinfo: true,

View File

@@ -9,7 +9,7 @@ module.exports = {
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
context: __dirname,
devtool: 'eval-source-map',
devtool: 'source-map',
output: {
path: path.join(__dirname, 'dist'),
pathinfo: true,

File diff suppressed because it is too large Load Diff

View File

@@ -6,10 +6,6 @@ platform:
environment:
nodejs_version: "10"
cache:
- "%USERPROFILE%\\.electron"
- "%LOCALAPPDATA%\\Yarn"
version: "{build}"
install:
@@ -24,3 +20,9 @@ build_script:
artifacts:
- path: 'dist\*.exe'
cache:
- node_modules
- "*\\node_modules"
- "%USERPROFILE%\\.electron"
- "%LOCALAPPDATA%\\Yarn"

207
azure-pipelines.yml Normal file
View File

@@ -0,0 +1,207 @@
trigger:
tags:
include:
- v*
branches:
include:
- master
variables:
- group: Vars
jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: yarn --network-timeout 100000
displayName: 'Install dependencies'
- script: node scripts/build-native.js
displayName: 'Rebuild native dependencies'
- script: yarn run build
displayName: 'Build'
- script: node scripts/prepackage-plugins.js
displayName: 'Prepackage plugins'
- script: node scripts/build-windows.js
displayName: 'Package'
env:
WIN_CSC_LINK: $(WIN_CSC_LINK)
WIN_CSC_KEY_PASSWORD: $(WIN_CSC_KEY_PASSWORD)
BT_TOKEN: $(BT_TOKEN)
GH_TOKEN: $(GH_TOKEN)
DEBUG: electron-builder
- task: CopyFiles@2
inputs:
contents: 'dist\\*-setup.exe'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: Windows - Installer
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: CopyFiles@2
inputs:
contents: 'dist\\*-portable.exe'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: Windows - Portable build
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: yarn
displayName: 'Install dependencies'
- script: node scripts/build-native.js
displayName: 'Rebuild native dependencies'
- script: yarn run build
displayName: 'Build'
- script: node scripts/prepackage-plugins.js
displayName: 'Prepackage plugins'
- script: node scripts/build-linux.js
displayName: 'Package'
env:
BT_TOKEN: $(BT_TOKEN)
GH_TOKEN: $(GH_TOKEN)
- task: CopyFiles@2
inputs:
contents: 'dist/*.deb'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: Linux - DEB
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: CopyFiles@2
inputs:
contents: 'dist/*.rpm'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: Linux - RPM
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: CopyFiles@2
inputs:
contents: 'dist/*.snap'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: Linux - Snap
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: CopyFiles@2
inputs:
contents: 'dist/*.tar.gz'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: Linux - tar.gz
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- job: macOS
pool:
vmImage: 'macOS-10.14'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: yarn
displayName: 'Install dependencies'
- script: node scripts/build-native.js
displayName: 'Rebuild native dependencies'
- script: yarn run build
displayName: 'Build'
- script: node scripts/prepackage-plugins.js
displayName: 'Prepackage plugins'
- script: node scripts/build-macos.js
displayName: 'Package'
env:
CSC_LINK: $(CSC_LINK)
CSC_KEY_PASSWORD: $(CSC_KEY_PASSWORD)
BT_TOKEN: $(BT_TOKEN)
GH_TOKEN: $(GH_TOKEN)
APPSTORE_USERNAME: $(APPSTORE_USERNAME)
APPSTORE_PASSWORD: $(APPSTORE_PASSWORD)
DEBUG: electron-builder
- task: CopyFiles@2
inputs:
contents: 'dist/*.dmg'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: macOS - DMG
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: CopyFiles@2
inputs:
contents: 'dist/*.zip'
targetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: macOS - app.zip
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')

View File

@@ -0,0 +1,36 @@
// See: https://medium.com/@TwitterArchiveEraser/notarize-electron-apps-7a5f988406db
const fs = require('fs')
const path = require('path')
const notarizer = require('electron-notarize')
module.exports = async function (params) {
console.log('env: ', process.env)
// notarize the app on Mac OS only.
if (process.platform !== 'darwin' || process.env.BUILD_SOURCEBRANCH !== 'refs/heads/master' || process.env.TRAVIS_BRANCH && !process.env.TRAVIS_PULL_REQUEST_BRANCH) {
return
}
console.log('afterSign hook triggered', params)
let appId = 'org.terminus'
let appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`)
if (!fs.existsSync(appPath)) {
throw new Error(`Cannot find application at: ${appPath}`)
}
console.log(`Notarizing ${appId} found at ${appPath}`)
try {
await notarizer.notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.APPSTORE_USERNAME,
appleIdPassword: process.env.APPSTORE_PASSWORD,
})
} catch (error) {
console.error(error)
}
console.log(`Done notarizing ${appId}`)
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>

View File

@@ -1,39 +1,42 @@
{
"name": "term",
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.8.2",
"@fortawesome/fontawesome-free": "^5.9.0",
"@types/electron-config": "^3.2.2",
"@types/electron-debug": "^2.1.0",
"@types/fs-promise": "1.0.3",
"@types/js-yaml": "^3.12.1",
"@types/node": "^12.0.4",
"@types/node": "^12.0.10",
"@types/webpack-env": "1.13.9",
"app-builder-lib": "^20.42.0",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"app-builder-lib": "^21.0.6",
"apply-loader": "2.0.0",
"awesome-typescript-loader": "^5.0.0",
"core-js": "^3.1.3",
"core-js": "^3.1.4",
"cross-env": "5.2.0",
"css-loader": "2.1.1",
"electron": "^5.0.2",
"electron-builder": "^20.41.0",
"electron-installer-snap": "^3.2.0",
"css-loader": "3.0.0",
"electron": "^5.0.5",
"electron-builder": "^21.0.7",
"electron-installer-snap": "^4.0.0",
"electron-notarize": "^0.1.1",
"electron-rebuild": "^1.8.5",
"file-loader": "^3.0.1",
"eslint": "^5.16.0",
"file-loader": "^4.0.0",
"graceful-fs": "^4.1.15",
"html-loader": "0.5.5",
"json-loader": "0.5.7",
"node-abi": "^2.8.0",
"node-gyp": "^4.0.0",
"node-abi": "^2.9.0",
"node-gyp": "^5.0.2",
"node-sass": "^4.12.0",
"npmlog": "4.1.2",
"npx": "^10.2.0",
"pug": "^2.0.3",
"pug": "^2.0.4",
"pug-html-loader": "1.1.5",
"pug-lint": "^2.5.0",
"pug-lint": "^2.6.0",
"pug-loader": "^2.4.0",
"pug-static-loader": "2.0.0",
"raven-js": "3.27.1",
"raw-loader": "2.0.0",
"raven-js": "3.27.2",
"raw-loader": "3.0.0",
"sass-loader": "^7.0.1",
"shelljs": "0.8.3",
"source-code-pro": "^2.30.1",
@@ -41,15 +44,13 @@
"style-loader": "^0.23.1",
"svg-inline-loader": "^0.8.0",
"to-string-loader": "1.1.5",
"tslint": "^5.17.0",
"tslint-config-standard": "^8.0.1",
"tslint-eslint-rules": "^5.4.0",
"tslib": "^1.10.0",
"typedoc": "^0.14.2",
"typescript": "^3.5.1",
"url-loader": "^1.1.1",
"typescript": "^3.5.2",
"url-loader": "^2.0.0",
"val-loader": "1.1.1",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2",
"webpack": "^4.35.2",
"webpack-cli": "^3.3.5",
"yaml-loader": "0.5.0"
},
"resolutions": {
@@ -59,6 +60,7 @@
"appId": "org.terminus",
"productName": "Terminus",
"compression": "normal",
"afterSign": "./build/mac/afterSignHook.js",
"files": [
"**/*",
"dist"
@@ -69,7 +71,8 @@
],
"win": {
"icon": "./build/windows/icon.ico",
"artifactName": "terminus-${version}-setup.exe"
"artifactName": "terminus-${version}-setup.exe",
"rfc3161TimeStampServer": "http://sha256timestamp.ws.symantec.com/sha256/timestamp"
},
"nsis": {
"oneClick": false,
@@ -93,12 +96,14 @@
"category": "public.app-category.video",
"icon": "./build/mac/icon.icns",
"artifactName": "terminus-${version}-macos.${ext}",
"hardenedRuntime": true,
"entitlements": "./build/mac/entitlements.plist",
"extendInfo": {
"NSRequiresAquaSystemAppearance": false
}
},
"dmg": {
"artifactName": "terminus-${version}-macos.dmg"
"pkg": {
"artifactName": "terminus-${version}-macos.pkg"
},
"linux": {
"category": "Utilities",
@@ -125,13 +130,17 @@
}
},
"scripts": {
"build": "webpack --color --config app/webpack.main.config.js && webpack --color --config app/webpack.config.js && webpack --color --config terminus-core/webpack.config.js && webpack --color --config terminus-settings/webpack.config.js && webpack --color --config terminus-terminal/webpack.config.js && webpack --color --config terminus-settings/webpack.config.js && webpack --color --config terminus-plugin-manager/webpack.config.js && webpack --color --config terminus-community-color-schemes/webpack.config.js && webpack --color --config terminus-ssh/webpack.config.js",
"build": "npm run build:typings && webpack --color --config app/webpack.main.config.js && webpack --color --config app/webpack.config.js && webpack --color --config terminus-core/webpack.config.js && webpack --color --config terminus-settings/webpack.config.js && webpack --color --config terminus-terminal/webpack.config.js && webpack --color --config terminus-plugin-manager/webpack.config.js && webpack --color --config terminus-community-color-schemes/webpack.config.js && webpack --color --config terminus-ssh/webpack.config.js",
"build:typings": "tsc --project terminus-core/tsconfig.typings.json && tsc --project terminus-settings/tsconfig.typings.json && tsc --project terminus-terminal/tsconfig.typings.json && tsc --project terminus-plugin-manager/tsconfig.typings.json && tsc --project terminus-ssh/tsconfig.typings.json",
"watch": "cross-env TERMINUS_DEV=1 webpack --progress --color --watch",
"start": "cross-env TERMINUS_DEV=1 electron app --debug",
"prod": "cross-env TERMINUS_DEV=1 electron app",
"docs": "typedoc --out docs/api terminus-core/src && typedoc --out docs/api/terminal terminus-terminal/src && typedoc --out docs/api/settings terminus-settings/src",
"lint": "tslint -c tslint.json -t stylish terminus-*/src/**/*.ts terminus-*/src/*.ts app/src/*.ts",
"docs": "typedoc --out docs/api terminus-core/src && typedoc --out docs/api/terminal --tsconfig terminus-terminal/tsconfig.typings.json terminus-terminal/src && typedoc --out docs/api/settings --tsconfig terminus-settings/tsconfig.typings.json terminus-settings/src",
"lint": "eslint --ext ts */src",
"postinstall": "node ./scripts/install-deps.js"
},
"repository": "eugeny/terminus"
"repository": "eugeny/terminus",
"dependencies": {
"eslint-plugin-import": "^2.18.0"
}
}

View File

@@ -2,13 +2,15 @@
const builder = require('electron-builder').build
const vars = require('./vars')
const isTag = (process.env.BUILD_SOURCEBRANCH || '').startsWith('refs/tags/')
builder({
dir: true,
linux: ['snap', 'deb', 'rpm', 'tar.gz'],
config: {
extraMetadata: {
version: vars.version,
dir: true,
linux: ['snap', 'deb', 'rpm', 'tar.gz'],
config: {
extraMetadata: {
version: vars.version,
},
},
},
publish: 'onTag',
})
publish: isTag ? 'always' : 'onTag',
}).catch(() => process.exit(1))

View File

@@ -2,13 +2,15 @@
const builder = require('electron-builder').build
const vars = require('./vars')
const isTag = (process.env.BUILD_SOURCEBRANCH || '').startsWith('refs/tags/')
builder({
dir: true,
mac: ['dmg', 'zip'],
config: {
extraMetadata: {
version: vars.version,
dir: true,
mac: ['pkg', 'zip'],
config: {
extraMetadata: {
version: vars.version,
},
},
},
publish: 'onTag',
})
publish: isTag ? 'always' : 'onTag',
}).catch(() => process.exit(1))

View File

@@ -5,11 +5,13 @@ const vars = require('./vars')
lifecycles = []
for (let dir of ['app', 'terminus-core', 'terminus-ssh', 'terminus-terminal']) {
lifecycles.push([rebuild({
build = rebuild({
buildPath: path.resolve(__dirname, '../' + dir),
electronVersion: vars.electronVersion,
force: true,
}).lifecycle, dir])
})
build.catch(() => process.exit(1))
lifecycles.push([build.lifecycle, dir])
}
console.info('Building against Electron', vars.electronVersion)

View File

@@ -2,13 +2,15 @@
const builder = require('electron-builder').build
const vars = require('./vars')
const isTag = (process.env.BUILD_SOURCEBRANCH || '').startsWith('refs/tags/')
builder({
dir: true,
win: ['nsis', 'portable'],
config: {
extraMetadata: {
version: vars.version,
dir: true,
win: ['nsis', 'portable'],
config: {
extraMetadata: {
version: vars.version,
},
},
},
publish: 'onTag',
})
publish: isTag ? 'always' : 'onTag',
}).catch(() => process.exit(1))

View File

@@ -1,5 +1,6 @@
const path = require('path')
const fs = require('fs')
const semver = require('semver')
const childProcess = require('child_process')
const appInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../app/package.json')))
@@ -9,6 +10,10 @@ exports.version = childProcess.execSync('git describe --tags', {encoding:'utf-8'
exports.version = exports.version.substring(1).trim()
exports.version = exports.version.replace('-', '-c')
if (exports.version.includes('-c')) {
exports.version = semver.inc(exports.version, 'prepatch').replace('-0', '-nightly.0')
}
exports.builtinPlugins = [
'terminus-core',
'terminus-settings',

View File

@@ -1,12 +1,12 @@
{
"name": "terminus-community-color-schemes",
"version": "1.0.73-c4-ga7d62b0",
"version": "1.0.83-nightly.0",
"description": "Community color schemes for Terminus",
"keywords": [
"terminus-builtin-plugin"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"typings": "typings/index.d.ts",
"scripts": {
"build": "webpack --progress --color",
"watch": "webpack --progress --color --watch"
@@ -17,13 +17,8 @@
"author": "Eugene Pankov",
"license": "MIT",
"peerDependencies": {
"@angular/core": "4.0.1",
"@angular/core": "^7",
"terminus-core": "*",
"terminus-terminal": "*"
},
"devDependencies": {
"@types/node": "12.0.4",
"@types/webpack-env": "^1.13.0"
},
"false": {}
}
}

View File

@@ -1,26 +1,26 @@
import { Injectable } from '@angular/core'
import { TerminalColorSchemeProvider, ITerminalColorScheme } from 'terminus-terminal'
import { TerminalColorSchemeProvider, TerminalColorScheme } from 'terminus-terminal'
const schemeContents = require.context('../schemes/', true, /.*/)
@Injectable()
export class ColorSchemes extends TerminalColorSchemeProvider {
async getSchemes (): Promise<ITerminalColorScheme[]> {
let schemes: ITerminalColorScheme[] = []
async getSchemes (): Promise<TerminalColorScheme[]> {
const schemes: TerminalColorScheme[] = []
schemeContents.keys().forEach(schemeFile => {
let lines = (schemeContents(schemeFile).default as string).split('\n')
const lines = (schemeContents(schemeFile).default as string).split('\n')
// process #define variables
let variables: any = {}
const variables: any = {}
lines
.filter(x => x.startsWith('#define'))
.map(x => x.split(' ').map(v => v.trim()))
.forEach(([ignore, variableName, variableValue]) => {
.forEach(([_, variableName, variableValue]) => {
variables[variableName] = variableValue
})
let values: any = {}
const values: any = {}
lines
.filter(x => x.startsWith('*.'))
.map(x => x.substring(2))
@@ -29,7 +29,7 @@ export class ColorSchemes extends TerminalColorSchemeProvider {
values[key] = variables[value] ? variables[value] : value
})
let colors: string[] = []
const colors: string[] = []
let colorIndex = 0
while (values[`color${colorIndex}`]) {
colors.push(values[`color${colorIndex}`])

View File

@@ -8,4 +8,4 @@ import { ColorSchemes } from './colorSchemes'
{ provide: TerminalColorSchemeProvider, useClass: ColorSchemes, multi: true },
],
})
export default class PopularThemesModule { }
export default class PopularThemesModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class

View File

@@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"declarationDir": "dist"
"baseUrl": "src"
}
}

View File

@@ -2,51 +2,54 @@ const path = require('path')
const webpack = require('webpack')
module.exports = {
target: 'node',
entry: 'src/index.ts',
devtool: 'eval-source-map',
context: __dirname,
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-community-color-schemes:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [path.resolve(__dirname, 'node_modules/@types')],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
}
}
}
},
{ test: /[\\\/]schemes[\\\/]/, use: "raw-loader" },
]
},
externals: [
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
target: 'node',
entry: 'src/index.ts',
devtool: 'source-map',
context: __dirname,
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-community-color-schemes:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [
path.resolve(__dirname, 'node_modules/@types'),
path.resolve(__dirname, '../node_modules/@types'),
],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
},
},
},
},
{ test: /[\\\/]schemes[\\\/]/, use: "raw-loader" },
],
},
externals: [
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
}

View File

@@ -2,12 +2,3 @@
# yarn lockfile v1
"@types/node@12.0.4":
version "12.0.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.0.4.tgz#46832183115c904410c275e34cf9403992999c32"
integrity sha512-j8YL2C0fXq7IONwl/Ud5Kt0PeXw22zGERt+HSSnwbKOJVsAGkEz3sFCYwaF9IOuoG1HOtE0vKCj6sXF7Q0+Vaw==
"@types/webpack-env@^1.13.0":
version "1.13.9"
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.13.9.tgz#a67287861c928ebf4159a908d1fb1a2a34d4097a"
integrity sha512-p8zp5xqkly3g4cCmo2mKOHI9+Z/kObmDj0BmjbDDJQlgDTiEGTbm17MEwTAusV6XceCy+bNw9q/ZHXHyKo3zkg==

View File

@@ -1,7 +1,7 @@
Terminus Core Plugin
--------------------
See also: [Settings plugin API](./settings/), [Terminal plugin API](./settings/)
See also: [Settings plugin API](./settings/), [Terminal plugin API](./terminal/)
* tabbed interface services
* toolbar UI

View File

@@ -1,52 +1,45 @@
{
"name": "terminus-core",
"version": "1.0.73-c4-ga7d62b0",
"version": "1.0.83-nightly.4",
"description": "Terminus core",
"keywords": [
"terminus-builtin-plugin"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"typings": "typings/index.d.ts",
"scripts": {
"build": "webpack --progress --color --display-modules",
"watch": "webpack --progress --color --watch"
},
"files": [
"dist"
"typings"
],
"author": "Eugene Pankov",
"license": "MIT",
"devDependencies": {
"@types/js-yaml": "^3.9.0",
"@types/node": "^12.0.2",
"@types/webpack-env": "^1.13.0",
"@types/shell-escape": "^0.2.0",
"@types/winston": "^2.3.6",
"axios": "^0.19.0",
"bootstrap": "^4.1.3",
"core-js": "^3.1.2",
"deepmerge": "^3.2.0",
"electron-updater": "^4.0.6",
"js-yaml": "^3.9.0",
"mixpanel": "^0.10.2",
"ng2-dnd": "^5.0.2",
"ngx-perfect-scrollbar": "^6.0.0",
"shell-escape": "^0.2.0",
"uuid": "^3.3.2"
},
"optionalDependencies": {
"windows-native-registry": "^1.0.14"
"uuid": "^3.3.2",
"winston": "^3.2.1"
},
"peerDependencies": {
"@angular/animations": "4.0.1",
"@angular/common": "4.0.1",
"@angular/core": "4.0.1",
"@angular/forms": "4.0.1",
"@angular/platform-browser": "4.0.1",
"@angular/platform-browser-dynamic": "4.0.1",
"rxjs": "5.3.0",
"zone.js": "0.8.4"
},
"dependencies": {
"deepmerge": "^3.2.0",
"js-yaml": "^3.9.0",
"winston": "^3.2.1"
"@angular/animations": "^7",
"@angular/common": "^7",
"@angular/core": "^7",
"@angular/forms": "^7",
"@angular/platform-browser": "^7",
"@angular/platform-browser-dynamic": "^7",
"rxjs": "^5"
}
}

View File

@@ -1,4 +1,4 @@
export interface IHotkeyDescription {
export interface HotkeyDescription {
id: string
name: string
}
@@ -8,7 +8,7 @@ export interface IHotkeyDescription {
* must also provide the `hotkeys.foo` config options with the default values
*/
export abstract class HotkeyProvider {
hotkeys: IHotkeyDescription[] = []
hotkeys: HotkeyDescription[] = []
abstract provide (): Promise<IHotkeyDescription[]>
abstract provide (): Promise<HotkeyDescription[]>
}

View File

@@ -1,9 +1,9 @@
export { BaseTabComponent, BaseTabProcess } from '../components/baseTab.component'
export { SplitTabComponent, SplitContainer } from '../components/splitTab.component'
export { TabRecoveryProvider, RecoveredTab } from './tabRecovery'
export { ToolbarButtonProvider, IToolbarButton } from './toolbarButtonProvider'
export { ToolbarButtonProvider, ToolbarButton } from './toolbarButtonProvider'
export { ConfigProvider } from './configProvider'
export { HotkeyProvider, IHotkeyDescription } from './hotkeyProvider'
export { HotkeyProvider, HotkeyDescription } from './hotkeyProvider'
export { Theme } from './theme'
export { TabContextMenuItemProvider } from './tabContextMenuProvider'

View File

@@ -1,13 +1,11 @@
import { SafeHtml } from '@angular/platform-browser'
/**
* See [[ToolbarButtonProvider]]
*/
export interface IToolbarButton {
export interface ToolbarButton {
/**
* Raw SVG icon code
*/
icon: SafeHtml
icon: string
title: string
@@ -25,15 +23,15 @@ export interface IToolbarButton {
click?: () => void
submenu?: () => Promise<IToolbarButton[]>
submenu?: () => Promise<ToolbarButton[]>
/** @hidden */
submenuItems?: IToolbarButton[]
submenuItems?: ToolbarButton[]
}
/**
* Extend to add buttons to the toolbar
*/
export abstract class ToolbarButtonProvider {
abstract provide (): IToolbarButton[]
abstract provide (): ToolbarButton[]
}

View File

@@ -33,53 +33,53 @@ title-bar(
.btn-group.background
.d-flex(
*ngFor='let button of leftToolbarButtons',
*ngFor='let button of leftToolbarButtons',
ngbDropdown,
(openChange)='generateButtonSubmenu(button)',
)
button.btn.btn-secondary.btn-tab-bar(
[title]='button.title',
(click)='button.click && button.click()',
[innerHTML]='button.icon',
[innerHTML]='sanitizeIcon(button.icon)',
ngbDropdownToggle,
)
div(*ngIf='button.submenu', ngbDropdownMenu)
button.dropdown-item.d-flex.align-items-center(
*ngFor='let item of button.submenuItems',
*ngFor='let item of button.submenuItems',
(click)='item.click()',
ngbDropdownItem,
)
.icon-wrapper([innerHTML]='item.icon')
)
.icon-wrapper([innerHTML]='sanitizeIcon(item.icon)')
.ml-3 {{item.title}}
.drag-space.background([class.persistent]='config.store.appearance.frame == "thin" && hostApp.platform != Platform.macOS')
.btn-group.background
.d-flex(
*ngFor='let button of rightToolbarButtons',
*ngFor='let button of rightToolbarButtons',
ngbDropdown,
(openChange)='generateButtonSubmenu(button)',
)
button.btn.btn-secondary.btn-tab-bar(
[title]='button.title',
(click)='button.click && button.click()',
[innerHTML]='button.icon',
[innerHTML]='sanitizeIcon(button.icon)',
ngbDropdownToggle,
)
div(*ngIf='button.submenu', ngbDropdownMenu)
button.dropdown-item.d-flex.align-items-center(
*ngFor='let item of button.submenuItems',
*ngFor='let item of button.submenuItems',
(click)='item.click()',
ngbDropdownItem,
)
.icon-wrapper([innerHTML]='item.icon')
)
.icon-wrapper([innerHTML]='sanitizeIcon(item.icon)')
.ml-3 {{item.title}}
button.btn.btn-secondary.btn-tab-bar.btn-update(
*ngIf='updatesAvailable',
title='Update available',
(click)='updateApp()',
[innerHTML]='updateIcon'
[innerHTML]='sanitizeIcon(updateIcon)'
)
window-controls.background(

View File

@@ -1,6 +1,6 @@
import { Component, Inject, Input, HostListener, HostBinding } from '@angular/core'
import { trigger, style, animate, transition, state } from '@angular/animations'
import { DomSanitizer, SafeHtml } from '@angular/platform-browser'
import { DomSanitizer } from '@angular/platform-browser'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { ElectronService } from '../services/electron.service'
@@ -15,7 +15,7 @@ import { TouchbarService } from '../services/touchbar.service'
import { BaseTabComponent } from './baseTab.component'
import { SafeModeModalComponent } from './safeModeModal.component'
import { AppService, IToolbarButton, ToolbarButtonProvider } from '../api'
import { AppService, ToolbarButton, ToolbarButtonProvider } from '../api'
/** @hidden */
@Component({
@@ -26,47 +26,47 @@ import { AppService, IToolbarButton, ToolbarButtonProvider } from '../api'
trigger('animateTab', [
state('in', style({
'flex-basis': '200px',
'width': '200px',
width: '200px',
})),
transition(':enter', [
style({
'flex-basis': '1px',
'width': '1px',
width: '1px',
}),
animate('250ms ease-in-out', style({
'flex-basis': '200px',
'width': '200px',
}))
width: '200px',
})),
]),
transition(':leave', [
style({
'flex-basis': '200px',
'width': '200px',
width: '200px',
}),
animate('250ms ease-in-out', style({
'flex-basis': '1px',
'width': '1px',
}))
])
])
]
width: '1px',
})),
]),
]),
],
})
export class AppRootComponent {
Platform = Platform
@Input() ready = false
@Input() leftToolbarButtons: IToolbarButton[]
@Input() rightToolbarButtons: IToolbarButton[]
@Input() leftToolbarButtons: ToolbarButton[]
@Input() rightToolbarButtons: ToolbarButton[]
@HostBinding('class.platform-win32') platformClassWindows = process.platform === 'win32'
@HostBinding('class.platform-darwin') platformClassMacOS = process.platform === 'darwin'
@HostBinding('class.platform-linux') platformClassLinux = process.platform === 'linux'
@HostBinding('class.no-tabs') noTabs = true
tabsDragging = false
unsortedTabs: BaseTabComponent[] = []
updateIcon: SafeHtml
updateIcon: string
updatesAvailable = false
private logger: Logger
constructor (
private constructor (
private docking: DockingService,
private electron: ElectronService,
private hotkeys: HotkeysService,
@@ -75,10 +75,10 @@ export class AppRootComponent {
public hostApp: HostAppService,
public config: ConfigService,
public app: AppService,
private domSanitizer: DomSanitizer,
@Inject(ToolbarButtonProvider) private toolbarButtonProviders: ToolbarButtonProvider[],
log: LogService,
ngbModal: NgbModal,
domSanitizer: DomSanitizer,
_themes: ThemesService,
) {
this.logger = log.create('main')
@@ -87,11 +87,11 @@ export class AppRootComponent {
this.leftToolbarButtons = this.getToolbarButtons(false)
this.rightToolbarButtons = this.getToolbarButtons(true)
this.updateIcon = domSanitizer.bypassSecurityTrustHtml(require('../icons/gift.svg')),
this.updateIcon = require('../icons/gift.svg')
this.hotkeys.matchedHotkey.subscribe((hotkey) => {
this.hotkeys.matchedHotkey.subscribe((hotkey: string) => {
if (hotkey.startsWith('tab-')) {
let index = parseInt(hotkey.split('-')[1])
const index = parseInt(hotkey.split('-')[1])
if (index <= this.app.tabs.length) {
this.app.selectTab(this.app.tabs[index - 1])
}
@@ -233,20 +233,24 @@ export class AppRootComponent {
})
}
async generateButtonSubmenu (button: IToolbarButton) {
async generateButtonSubmenu (button: ToolbarButton) {
if (button.submenu) {
button.submenuItems = await button.submenu()
}
}
private getToolbarButtons (aboveZero: boolean): IToolbarButton[] {
let buttons: IToolbarButton[] = []
sanitizeIcon (icon: string): any {
return this.domSanitizer.bypassSecurityTrustHtml(icon || '')
}
private getToolbarButtons (aboveZero: boolean): ToolbarButton[] {
let buttons: ToolbarButton[] = []
this.config.enabledServices(this.toolbarButtonProviders).forEach(provider => {
buttons = buttons.concat(provider.provide())
})
return buttons
.filter((button) => (button.weight > 0) === aboveZero)
.sort((a: IToolbarButton, b: IToolbarButton) => (a.weight || 0) - (b.weight || 0))
.filter(button => button.weight > 0 === aboveZero)
.sort((a: ToolbarButton, b: ToolbarButton) => (a.weight || 0) - (b.weight || 0))
}
private updateVibrancy () {

View File

@@ -91,7 +91,7 @@ export abstract class BaseTabComponent {
}
this.progressClearTimeout = setTimeout(() => {
this.setProgress(null)
}, 5000)
}, 5000) as any
}
}

View File

@@ -8,7 +8,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
styles: [require('./checkbox.component.scss')],
providers: [
{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true },
]
],
})
export class CheckboxComponent implements ControlValueAccessor {
@HostBinding('class.active') @Input() model: boolean
@@ -23,7 +23,7 @@ export class CheckboxComponent implements ControlValueAccessor {
}
this.model = !this.model
for (let fx of this.changed) {
for (const fx of this.changed) {
fx(this.model)
}
}

View File

@@ -6,8 +6,8 @@ import { TabsService } from '../services/tabs.service'
import { HotkeysService } from '../services/hotkeys.service'
import { TabRecoveryService } from '../services/tabRecovery.service'
export declare type SplitOrientation = 'v' | 'h'
export declare type SplitDirection = 'r' | 't' | 'b' | 'l'
export type SplitOrientation = 'v' | 'h' // eslint-disable-line @typescript-eslint/no-type-alias
export type SplitDirection = 'r' | 't' | 'b' | 'l' // eslint-disable-line @typescript-eslint/no-type-alias
/**
* Describes a horizontal or vertical split row or column
@@ -35,7 +35,7 @@ export class SplitContainer {
*/
getAllTabs () {
let r = []
for (let child of this.children) {
for (const child of this.children) {
if (child instanceof SplitContainer) {
r = r.concat(child.getAllTabs())
} else {
@@ -50,7 +50,7 @@ export class SplitContainer {
*/
normalize () {
for (let i = 0; i < this.children.length; i++) {
let child = this.children[i]
const child = this.children[i]
if (child instanceof SplitContainer) {
child.normalize()
@@ -63,7 +63,7 @@ export class SplitContainer {
} else if (child.children.length === 1) {
this.children[i] = child.children[0]
} else if (child.orientation === this.orientation) {
let ratio = this.ratios[i]
const ratio = this.ratios[i]
this.children.splice(i, 1)
this.ratios.splice(i, 1)
for (let j = 0; j < child.children.length; j++) {
@@ -76,7 +76,7 @@ export class SplitContainer {
}
let s = 0
for (let x of this.ratios) {
for (const x of this.ratios) {
s += x
}
this.ratios = this.ratios.map(x => x / s)
@@ -94,8 +94,8 @@ export class SplitContainer {
}
async serialize () {
let children = []
for (let child of this.children) {
const children = []
for (const child of this.children) {
if (child instanceof SplitContainer) {
children.push(await child.serialize())
} else {
@@ -189,7 +189,11 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
this.focused$.subscribe(() => {
this.getAllTabs().forEach(x => x.emitFocused())
this.focus(this.focusedTab)
if (this.focusedTab) {
this.focus(this.focusedTab)
} else {
this.focusAnyIn(this.root)
}
})
this.blurred$.subscribe(() => this.getAllTabs().forEach(x => x.emitBlurred()))
@@ -198,33 +202,33 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
return
}
switch (hotkey) {
case 'split-right':
this.splitTab(this.focusedTab, 'r')
break
case 'split-bottom':
this.splitTab(this.focusedTab, 'b')
break
case 'split-top':
this.splitTab(this.focusedTab, 't')
break
case 'split-left':
this.splitTab(this.focusedTab, 'l')
break
case 'pane-nav-left':
this.navigate('l')
break
case 'pane-nav-right':
this.navigate('r')
break
case 'pane-nav-up':
this.navigate('t')
break
case 'pane-nav-down':
this.navigate('b')
break
case 'close-pane':
this.removeTab(this.focusedTab)
break
case 'split-right':
this.splitTab(this.focusedTab, 'r')
break
case 'split-bottom':
this.splitTab(this.focusedTab, 'b')
break
case 'split-top':
this.splitTab(this.focusedTab, 't')
break
case 'split-left':
this.splitTab(this.focusedTab, 'l')
break
case 'pane-nav-left':
this.navigate('l')
break
case 'pane-nav-right':
this.navigate('r')
break
case 'pane-nav-up':
this.navigate('t')
break
case 'pane-nav-down':
this.navigate('b')
break
case 'close-pane':
this.removeTab(this.focusedTab)
break
}
})
}
@@ -235,8 +239,10 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
await this.recoverContainer(this.root, this._recoveredState)
this.layout()
setImmediate(() => {
this.getAllTabs().forEach(x => x.emitFocused())
this.focusAnyIn(this.root)
if (this.hasFocus) {
this.getAllTabs().forEach(x => x.emitFocused())
this.focusAnyIn(this.root)
}
})
}
}
@@ -257,7 +263,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
focus (tab: BaseTabComponent) {
this.focusedTab = tab
for (let x of this.getAllTabs()) {
for (const x of this.getAllTabs()) {
if (x !== tab) {
x.emitBlurred()
}
@@ -291,11 +297,11 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
let insertIndex = target.children.indexOf(relative)
if (
(target.orientation === 'v' && ['l', 'r'].includes(side)) ||
(target.orientation === 'h' && ['t', 'b'].includes(side))
target.orientation === 'v' && ['l', 'r'].includes(side) ||
target.orientation === 'h' && ['t', 'b'].includes(side)
) {
let newContainer = new SplitContainer()
newContainer.orientation = (target.orientation === 'v') ? 'h' : 'v'
const newContainer = new SplitContainer()
newContainer.orientation = target.orientation === 'v' ? 'h' : 'v'
newContainer.children = [relative]
newContainer.ratios = [1]
target.children[insertIndex] = newContainer
@@ -306,7 +312,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
if (insertIndex === -1) {
insertIndex = 0
} else {
insertIndex += (side === 'l' || side === 't') ? 0 : 1
insertIndex += side === 'l' || side === 't' ? 0 : 1
}
for (let i = 0; i < target.children.length; i++) {
@@ -326,8 +332,8 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
}
removeTab (tab: BaseTabComponent) {
let parent = this.getParentOf(tab)
let index = parent.children.indexOf(tab)
const parent = this.getParentOf(tab)
const index = parent.children.indexOf(tab)
parent.ratios.splice(index, 1)
parent.children.splice(index, 1)
@@ -350,7 +356,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
navigate (dir: SplitDirection) {
let rel: BaseTabComponent | SplitContainer = this.focusedTab
let parent = this.getParentOf(rel)
let orientation = ['l', 'r'].includes(dir) ? 'h' : 'v'
const orientation = ['l', 'r'].includes(dir) ? 'h' : 'v'
while (parent !== this.root && parent.orientation !== orientation) {
rel = parent
@@ -361,7 +367,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
return
}
let index = parent.children.indexOf(rel)
const index = parent.children.indexOf(rel)
if (['l', 't'].includes(dir)) {
if (index > 0) {
this.focusAnyIn(parent.children[index - 1])
@@ -374,7 +380,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
}
async splitTab (tab: BaseTabComponent, dir: SplitDirection) {
let newTab = await this.tabsService.duplicate(tab)
const newTab = await this.tabsService.duplicate(tab)
this.addTab(newTab, tab, dir)
}
@@ -383,9 +389,9 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
*/
getParentOf (tab: BaseTabComponent | SplitContainer, root?: SplitContainer): SplitContainer {
root = root || this.root
for (let child of root.children) {
for (const child of root.children) {
if (child instanceof SplitContainer) {
let r = this.getParentOf(tab, child)
const r = this.getParentOf(tab, child)
if (r) {
return r
}
@@ -419,7 +425,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
}
private attachTabView (tab: BaseTabComponent) {
let ref = this.viewContainer.insert(tab.hostView) as EmbeddedViewRef<any>
const ref = this.viewContainer.insert(tab.hostView) as EmbeddedViewRef<any> // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
this.viewRefs.set(tab, ref)
ref.rootNodes[0].addEventListener('click', () => this.focus(tab))
@@ -436,7 +442,7 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
}
private detachTabView (tab: BaseTabComponent) {
let ref = this.viewRefs.get(tab)
const ref = this.viewRefs.get(tab)
this.viewRefs.delete(tab)
this.viewContainer.remove(this.viewContainer.indexOf(ref))
}
@@ -448,8 +454,8 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
}
private layoutInternal (root: SplitContainer, x: number, y: number, w: number, h: number) {
let size = (root.orientation === 'v') ? h : w
let sizes = root.ratios.map(x => x * size)
const size = root.orientation === 'v' ? h : w
const sizes = root.ratios.map(x => x * size)
root.x = x
root.y = y
@@ -458,21 +464,21 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
let offset = 0
root.children.forEach((child, i) => {
let childX = (root.orientation === 'v') ? x : (x + offset)
let childY = (root.orientation === 'v') ? (y + offset) : y
let childW = (root.orientation === 'v') ? w : sizes[i]
let childH = (root.orientation === 'v') ? sizes[i] : h
const childX = root.orientation === 'v' ? x : x + offset
const childY = root.orientation === 'v' ? y + offset : y
const childW = root.orientation === 'v' ? w : sizes[i]
const childH = root.orientation === 'v' ? sizes[i] : h
if (child instanceof SplitContainer) {
this.layoutInternal(child, childX, childY, childW, childH)
} else {
let element = this.viewRefs.get(child).rootNodes[0]
const element = this.viewRefs.get(child).rootNodes[0]
element.style.position = 'absolute'
element.style.left = `${childX}%`
element.style.top = `${childY}%`
element.style.width = `${childW}%`
element.style.height = `${childH}%`
element.style.opacity = (child === this.focusedTab) ? 1 : 0.75
element.style.opacity = child === this.focusedTab ? 1 : 0.75
}
offset += sizes[i]
@@ -486,19 +492,19 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
}
private async recoverContainer (root: SplitContainer, state: any) {
let children: (SplitContainer | BaseTabComponent)[] = []
const children: (SplitContainer | BaseTabComponent)[] = []
root.orientation = state.orientation
root.ratios = state.ratios
root.children = children
for (let childState of state.children) {
for (const childState of state.children) {
if (childState.type === 'app:split-tab') {
let child = new SplitContainer()
const child = new SplitContainer()
await this.recoverContainer(child, childState)
children.push(child)
} else {
let recovered = await this.tabRecovery.recoverTab(childState)
const recovered = await this.tabRecovery.recoverTab(childState)
if (recovered) {
let tab = this.tabsService.create(recovered.type, recovered.options)
const tab = this.tabsService.create(recovered.type, recovered.options)
children.push(tab)
this.attachTabView(tab)
} else {

View File

@@ -23,15 +23,15 @@ export class SplitTabSpannerComponent {
constructor (private element: ElementRef) { }
ngAfterViewInit () {
this.element.nativeElement.addEventListener('mousedown', e => {
this.element.nativeElement.addEventListener('mousedown', (e: MouseEvent) => {
this.isActive = true
let start = this.isVertical ? e.pageY : e.pageX
const start = this.isVertical ? e.pageY : e.pageX
let current = start
let oldPosition = this.isVertical ? this.element.nativeElement.offsetTop : this.element.nativeElement.offsetLeft
const oldPosition: number = this.isVertical ? this.element.nativeElement.offsetTop : this.element.nativeElement.offsetLeft
const dragHandler = e => {
const dragHandler = (e: MouseEvent) => {
current = this.isVertical ? e.pageY : e.pageX
let newPosition = oldPosition + (current - start)
const newPosition = oldPosition + (current - start)
if (this.isVertical) {
this.element.nativeElement.style.top = `${newPosition - this.marginOffset}px`
} else {

View File

@@ -1,14 +1,14 @@
div
.terminus-logo
h1.terminus-title Terminus
sup α
sup α
.list-group
a.list-group-item.list-group-item-action.d-flex(
*ngFor='let button of getButtons()',
(click)='button.click()',
)
.d-flex.align-self-center([innerHTML]='button.icon')
.d-flex.align-self-center([innerHTML]='sanitizeIcon(button.icon)')
span {{button.title}}
footer.d-flex.align-items-center

View File

@@ -2,7 +2,6 @@
display: flex;
flex-direction: column;
flex: auto;
-webkit-app-region: drag;
overflow-y: auto;
}
@@ -25,10 +24,6 @@ footer {
background: rgba(0,0,0,.5);
}
a, button {
-webkit-app-region: no-drag;
}
.list-group-item ::ng-deep svg {
width: 16px;
height: 16px;

View File

@@ -1,7 +1,8 @@
import { Component, Inject } from '@angular/core'
import { DomSanitizer } from '@angular/platform-browser'
import { ConfigService } from '../services/config.service'
import { HomeBaseService } from '../services/homeBase.service'
import { IToolbarButton, ToolbarButtonProvider } from '../api'
import { ToolbarButton, ToolbarButtonProvider } from '../api'
/** @hidden */
@Component({
@@ -14,16 +15,21 @@ export class StartPageComponent {
constructor (
private config: ConfigService,
private domSanitizer: DomSanitizer,
public homeBase: HomeBaseService,
@Inject(ToolbarButtonProvider) private toolbarButtonProviders: ToolbarButtonProvider[],
) {
}
getButtons (): IToolbarButton[] {
getButtons (): ToolbarButton[] {
return this.config.enabledServices(this.toolbarButtonProviders)
.map(provider => provider.provide())
.reduce((a, b) => a.concat(b))
.filter(x => !!x.click)
.sort((a: IToolbarButton, b: IToolbarButton) => (a.weight || 0) - (b.weight || 0))
.sort((a: ToolbarButton, b: ToolbarButton) => (a.weight || 0) - (b.weight || 0))
}
sanitizeIcon (icon: string): any {
return this.domSanitizer.bypassSecurityTrustHtml(icon || '')
}
}

View File

@@ -9,6 +9,11 @@ import { ElectronService } from '../services/electron.service'
import { AppService } from '../services/app.service'
import { HostAppService, Platform } from '../services/hostApp.service'
/** @hidden */
export interface ISortableComponent {
setDragHandle (_: HTMLElement)
}
/** @hidden */
@Component({
selector: 'tab-header',
@@ -23,13 +28,13 @@ export class TabHeaderComponent {
@Input() progress: number
@ViewChild('handle') handle: ElementRef
constructor (
private constructor (
public app: AppService,
private electron: ElectronService,
private hostApp: HostAppService,
private ngbModal: NgbModal,
private hotkeys: HotkeysService,
private parentDraggable: SortableComponent,
@Inject(SortableComponent) private parentDraggable: ISortableComponent,
@Optional() @Inject(TabContextMenuItemProvider) protected contextMenuProviders: TabContextMenuItemProvider[],
) {
this.hotkeys.matchedHotkey.subscribe((hotkey) => {
@@ -52,7 +57,7 @@ export class TabHeaderComponent {
}
showRenameTabModal (): void {
let modal = this.ngbModal.open(RenameTabModalComponent)
const modal = this.ngbModal.open(RenameTabModalComponent)
modal.componentInstance.value = this.tab.customTitle || this.tab.title
modal.result.then(result => {
this.tab.setTitle(result)
@@ -62,7 +67,7 @@ export class TabHeaderComponent {
async buildContextMenu (): Promise<Electron.MenuItemConstructorOptions[]> {
let items: Electron.MenuItemConstructorOptions[] = []
for (let section of await Promise.all(this.contextMenuProviders.map(x => x.getItems(this.tab, this)))) {
for (const section of await Promise.all(this.contextMenuProviders.map(x => x.getItems(this.tab, this)))) {
items.push({ type: 'separator' })
items = items.concat(section)
}
@@ -85,7 +90,6 @@ export class TabHeaderComponent {
contextMenu.popup({
x: $event.pageX,
y: $event.pageY,
async: true,
})
}
}

View File

@@ -6,4 +6,4 @@ import { Component } from '@angular/core'
template: require('./titleBar.component.pug'),
styles: [require('./titleBar.component.scss')],
})
export class TitleBarComponent { }
export class TitleBarComponent { } // eslint-disable-line @typescript-eslint/no-extraneous-class

View File

@@ -17,7 +17,7 @@ import { CheckboxComponent } from './checkbox.component'
styles: [require('./toggle.component.scss')],
providers: [
{ provide: NG_VALUE_ACCESSOR, useExisting: ToggleComponent, multi: true },
]
],
})
export class ToggleComponent extends CheckboxComponent {
}

View File

@@ -11,10 +11,10 @@ hotkeys:
rename-tab:
- 'Ctrl-Shift-R'
next-tab:
- 'Ctrl-Shift-ArrowRight'
- 'Ctrl-Shift-Right'
- 'Ctrl-Tab'
previous-tab:
- 'Ctrl-Shift-ArrowLeft'
- 'Ctrl-Shift-Left'
- 'Ctrl-Shift-Tab'
tab-1:
- 'Alt-1'
@@ -43,12 +43,12 @@ hotkeys:
split-left: []
split-top: []
pane-nav-right:
- 'Ctrl-Alt-ArrowRight'
- 'Ctrl-Alt-Right'
pane-nav-down:
- 'Ctrl-Alt-ArrowDown'
- 'Ctrl-Alt-Down'
pane-nav-up:
- 'Ctrl-Alt-ArrowUp'
- 'Ctrl-Alt-Up'
pane-nav-left:
- 'Ctrl-Alt-ArrowLeft'
- 'Ctrl-Alt-Left'
close-pane: []
pluginBlacklist: ['ssh']

View File

@@ -41,13 +41,13 @@ hotkeys:
split-left: []
split-top: []
pane-nav-right:
- '⌘-⌥-ArrowRight'
- '⌘-⌥-Right'
pane-nav-down:
- '⌘-⌥-ArrowDown'
- '⌘-⌥-Down'
pane-nav-up:
- '⌘-⌥-ArrowUp'
- '⌘-⌥-Up'
pane-nav-left:
- '⌘-⌥-ArrowLeft'
- '⌘-⌥-Left'
close-pane:
- '⌘-Shift-W'
pluginBlacklist: ['ssh']

View File

@@ -11,10 +11,10 @@ hotkeys:
rename-tab:
- 'Ctrl-Shift-R'
next-tab:
- 'Ctrl-Shift-ArrowRight'
- 'Ctrl-Shift-Right'
- 'Ctrl-Tab'
previous-tab:
- 'Ctrl-Shift-ArrowLeft'
- 'Ctrl-Shift-Left'
- 'Ctrl-Shift-Tab'
tab-1:
- 'Alt-1'
@@ -43,12 +43,12 @@ hotkeys:
split-left: []
split-top: []
pane-nav-right:
- 'Ctrl-Alt-ArrowRight'
- 'Ctrl-Alt-Right'
pane-nav-down:
- 'Ctrl-Alt-ArrowDown'
- 'Ctrl-Alt-Down'
pane-nav-up:
- 'Ctrl-Alt-ArrowUp'
- 'Ctrl-Alt-Up'
pane-nav-left:
- 'Ctrl-Alt-ArrowLeft'
- 'Ctrl-Alt-Left'
close-pane: []
pluginBlacklist: []

View File

@@ -1,7 +1,7 @@
appearance:
dock: off
dockScreen: current
dockFill: 50
dockFill: 0.5
tabsLocation: top
cycleTabs: true
theme: Standard
@@ -12,3 +12,5 @@ appearance:
vibrancyType: 'blur'
enableAnalytics: true
enableWelcomeTab: true
electronFlags:
- ['force_discrete_gpu', '0']

View File

@@ -2,7 +2,7 @@ import { Directive, AfterViewInit, ElementRef } from '@angular/core'
/** @hidden */
@Directive({
selector: '[autofocus]'
selector: '[autofocus]',
})
export class AutofocusDirective implements AfterViewInit {
constructor (private el: ElementRef) { }

View File

@@ -1,10 +1,10 @@
import { Injectable } from '@angular/core'
import { IHotkeyDescription, HotkeyProvider } from './api/hotkeyProvider'
import { HotkeyDescription, HotkeyProvider } from './api/hotkeyProvider'
/** @hidden */
@Injectable()
export class AppHotkeyProvider extends HotkeyProvider {
hotkeys: IHotkeyDescription[] = [
hotkeys: HotkeyDescription[] = [
{
id: 'new-window',
name: 'New window',
@@ -115,7 +115,7 @@ export class AppHotkeyProvider extends HotkeyProvider {
},
]
async provide (): Promise<IHotkeyDescription[]> {
async provide (): Promise<HotkeyDescription[]> {
return this.hotkeys
}
}

View File

@@ -39,6 +39,12 @@ import { TaskCompletionContextMenu, CommonOptionsContextMenu, CloseContextMenu }
import 'perfect-scrollbar/css/perfect-scrollbar.css'
import 'ng2-dnd/bundles/style.css'
// PerfectScrollbar fix
import { fromEvent } from 'rxjs/internal/observable/fromEvent'
import { merge } from 'rxjs/internal/observable/merge'
require('rxjs').fromEvent = fromEvent
require('rxjs').merge = merge
const PROVIDERS = [
{ provide: HotkeyProvider, useClass: AppHotkeyProvider, multi: true },
{ provide: Theme, useClass: StandardTheme, multi: true },
@@ -49,7 +55,7 @@ const PROVIDERS = [
{ provide: TabContextMenuItemProvider, useClass: CloseContextMenu, multi: true },
{ provide: TabContextMenuItemProvider, useClass: TaskCompletionContextMenu, multi: true },
{ provide: TabRecoveryProvider, useClass: SplitTabRecoveryProvider, multi: true },
{ provide: PERFECT_SCROLLBAR_CONFIG, useValue: { suppressScrollX: true } }
{ provide: PERFECT_SCROLLBAR_CONFIG, useValue: { suppressScrollX: true } },
]
/** @hidden */
@@ -63,7 +69,7 @@ const PROVIDERS = [
DndModule.forRoot(),
],
declarations: [
AppRootComponent,
AppRootComponent as any,
CheckboxComponent,
StartPageComponent,
TabBodyComponent,
@@ -88,9 +94,9 @@ const PROVIDERS = [
CheckboxComponent,
ToggleComponent,
AutofocusDirective,
]
],
})
export default class AppModule {
export default class AppModule { // eslint-disable-line @typescript-eslint/no-extraneous-class
constructor (app: AppService, config: ConfigService) {
app.ready$.subscribe(() => {
if (config.store.enableWelcomeTab) {
@@ -107,11 +113,9 @@ export default class AppModule {
}
}
// PerfectScrollbar fix
import { fromEvent } from 'rxjs/internal/observable/fromEvent'
import { merge } from 'rxjs/internal/observable/merge'
require('rxjs').fromEvent = fromEvent
require('rxjs').merge = merge
export { AppRootComponent as bootstrap }
export * from './api'
// Deprecations
export { ToolbarButton as IToolbarButton } from './api'
export { HotkeyDescription as IHotkeyDescription } from './api'

View File

@@ -16,12 +16,12 @@ class CompletionObserver {
private interval: number
constructor (private tab: BaseTabComponent) {
this.interval = setInterval(() => this.tick(), 1000)
this.interval = setInterval(() => this.tick(), 1000) as any
this.tab.destroyed$.pipe(takeUntil(this.destroyed$)).subscribe(() => this.stop())
}
async tick () {
if (!(await this.tab.getCurrentProcess())) {
if (!await this.tab.getCurrentProcess()) {
this.done.next(null)
this.stop()
}
@@ -68,7 +68,7 @@ export class AppService {
private tabsService: TabsService,
) {
this.tabRecovery.recoverTabs().then(tabs => {
for (let tab of tabs) {
for (const tab of tabs) {
this.openNewTabRaw(tab.type, tab.options)
}
@@ -81,7 +81,7 @@ export class AppService {
})
}
private addTabRaw (tab: BaseTabComponent) {
addTabRaw (tab: BaseTabComponent) {
this.tabs.push(tab)
this.selectTab(tab)
this.tabsChanged.next()
@@ -98,7 +98,7 @@ export class AppService {
})
tab.destroyed$.subscribe(() => {
let newIndex = Math.max(0, this.tabs.indexOf(tab) - 1)
const newIndex = Math.max(0, this.tabs.indexOf(tab) - 1)
this.tabs = this.tabs.filter((x) => x !== tab)
if (tab === this._activeTab) {
this.selectTab(this.tabs[newIndex])
@@ -113,7 +113,7 @@ export class AppService {
* @param inputs Properties to be assigned on the new tab component instance
*/
openNewTabRaw (type: TabComponentType, inputs?: any): BaseTabComponent {
let tab = this.tabsService.create(type, inputs)
const tab = this.tabsService.create(type, inputs)
this.addTabRaw(tab)
return tab
}
@@ -123,8 +123,8 @@ export class AppService {
* @param inputs Properties to be assigned on the new tab component instance
*/
openNewTab (type: TabComponentType, inputs?: any): BaseTabComponent {
let splitTab = this.tabsService.create(SplitTabComponent) as SplitTabComponent
let tab = this.tabsService.create(type, inputs)
const splitTab = this.tabsService.create(SplitTabComponent) as SplitTabComponent
const tab = this.tabsService.create(type, inputs)
splitTab.addTab(tab, null, 'r')
this.addTabRaw(splitTab)
return tab
@@ -164,7 +164,7 @@ export class AppService {
nextTab () {
if (this.tabs.length > 1) {
let tabIndex = this.tabs.indexOf(this._activeTab)
const tabIndex = this.tabs.indexOf(this._activeTab)
if (tabIndex < this.tabs.length - 1) {
this.selectTab(this.tabs[tabIndex + 1])
} else if (this.config.store.appearance.cycleTabs) {
@@ -175,7 +175,7 @@ export class AppService {
previousTab () {
if (this.tabs.length > 1) {
let tabIndex = this.tabs.indexOf(this._activeTab)
const tabIndex = this.tabs.indexOf(this._activeTab)
if (tabIndex > 0) {
this.selectTab(this.tabs[tabIndex - 1])
} else if (this.config.store.appearance.cycleTabs) {
@@ -200,19 +200,19 @@ export class AppService {
}
async duplicateTab (tab: BaseTabComponent) {
let dup = await this.tabsService.duplicate(tab)
const dup = await this.tabsService.duplicate(tab)
if (dup) {
this.addTabRaw(dup)
}
}
async closeAllTabs () {
for (let tab of this.tabs) {
for (const tab of this.tabs) {
if (!await tab.canClose()) {
return
}
}
for (let tab of this.tabs) {
for (const tab of this.tabs) {
tab.destroy()
}
}
@@ -230,7 +230,7 @@ export class AppService {
*/
observeTabCompletion (tab: BaseTabComponent): Observable<void> {
if (!this.completionObservers.has(tab)) {
let observer = new CompletionObserver(tab)
const observer = new CompletionObserver(tab)
observer.destroyed$.subscribe(() => {
this.stopObservingTabCompletion(tab)
})

View File

@@ -14,19 +14,19 @@ function isStructuralMember (v) {
Object.keys(v).length > 0 && !v.__nonStructural
}
function isNonStructuralObjectMember (v) {
function isNonStructuralObjectMember (v): boolean {
return v instanceof Object && !(v instanceof Array) && v.__nonStructural
}
/** @hidden */
export class ConfigProxy {
constructor (real: any, defaults: any) {
for (let key in defaults) {
for (const key in defaults) {
if (isStructuralMember(defaults[key])) {
if (!real[key]) {
real[key] = {}
}
let proxy = new ConfigProxy(real[key], defaults[key])
const proxy = new ConfigProxy(real[key], defaults[key])
Object.defineProperty(
this,
key,
@@ -46,13 +46,13 @@ export class ConfigProxy {
get: () => this.getValue(key),
set: (value) => {
this.setValue(key, value)
}
},
}
)
}
}
this.getValue = (key: string) => {
this.getValue = (key: string) => { // eslint-disable-line @typescript-eslint/unbound-method
if (real[key] !== undefined) {
return real[key]
} else {
@@ -66,13 +66,13 @@ export class ConfigProxy {
}
}
this.setValue = (key: string, value: any) => {
this.setValue = (key: string, value: any) => { // eslint-disable-line @typescript-eslint/unbound-method
real[key] = value
}
}
getValue (key: string): any { } // tslint:disable-line
setValue (key: string, value: any) { } // tslint:disable-line
getValue (_key: string): any { }
setValue (_key: string, _value: any) { }
}
@Injectable({ providedIn: 'root' })
@@ -160,10 +160,6 @@ export class ConfigService {
this.emitChange()
}
private emitChange (): void {
this.changed.next()
}
requestRestart (): void {
this.restartRequested = true
}
@@ -177,9 +173,9 @@ export class ConfigService {
enabledServices<T> (services: T[]): T[] {
if (!this.servicesCache) {
this.servicesCache = {}
let ngModule = window['rootModule'].ngInjectorDef
for (let imp of ngModule.imports) {
let module = (imp['ngModule'] || imp)
const ngModule = window['rootModule'].ngInjectorDef
for (const imp of ngModule.imports) {
const module = imp['ngModule'] || imp
if (module.ngInjectorDef && module.ngInjectorDef.providers) {
this.servicesCache[module['pluginName']] = module.ngInjectorDef.providers.map(provider => {
return provider['useClass'] || provider
@@ -188,7 +184,7 @@ export class ConfigService {
}
}
return services.filter(service => {
for (let pluginName in this.servicesCache) {
for (const pluginName in this.servicesCache) {
if (this.servicesCache[pluginName].includes(service.constructor)) {
return !this.store.pluginBlacklist.includes(pluginName)
}
@@ -196,4 +192,8 @@ export class ConfigService {
return true
})
}
private emitChange (): void {
this.changed.next()
}
}

View File

@@ -3,11 +3,6 @@ import { ConfigService } from '../services/config.service'
import { ElectronService } from '../services/electron.service'
import { HostAppService, Bounds } from '../services/hostApp.service'
export interface IScreen {
id: string
name: string
}
@Injectable({ providedIn: 'root' })
export class DockingService {
/** @hidden */
@@ -21,7 +16,7 @@ export class DockingService {
}
dock () {
let dockSide = this.config.store.appearance.dock
const dockSide = this.config.store.appearance.dock
if (dockSide === 'off') {
this.hostApp.setAlwaysOnTop(false)
@@ -29,14 +24,15 @@ export class DockingService {
}
let display = this.electron.screen.getAllDisplays()
.filter((x) => x.id === this.config.store.appearance.dockScreen)[0]
.filter(x => x.id === this.config.store.appearance.dockScreen)[0]
if (!display) {
display = this.getCurrentScreen()
}
let newBounds: Bounds = { x: 0, y: 0, width: 0, height: 0 }
let fill = this.config.store.appearance.dockFill
let [minWidth, minHeight] = this.hostApp.getWindow().getMinimumSize()
const newBounds: Bounds = { x: 0, y: 0, width: 0, height: 0 }
const fill = this.config.store.appearance.dockFill <= 1 ? this.config.store.appearance.dockFill : 1;
const [minWidth, minHeight] = this.hostApp.getWindow().getMinimumSize()
if (dockSide === 'left' || dockSide === 'right') {
newBounds.width = Math.max(minWidth, Math.round(fill * display.bounds.width))
@@ -68,26 +64,26 @@ export class DockingService {
}
getScreens () {
return this.electron.screen.getAllDisplays().map((display, index) => {
const primaryDisplayID = this.electron.screen.getPrimaryDisplay().id;
return this.electron.screen.getAllDisplays().sort((a,b) => (
a.bounds.x === b.bounds.x ? a.bounds.y - b.bounds.y : a.bounds.x - b.bounds.x
)).map((display,index) => {
return {
id: display.id,
name: {
0: 'Primary display',
1: 'Secondary display',
}[index] || `Display ${index + 1}`
name: display.id === primaryDisplayID ? 'Primary Display' : `Display ${index +1}`,
}
})
});
}
private repositionWindow () {
let [x, y] = this.hostApp.getWindow().getPosition()
for (let screen of this.electron.screen.getAllDisplays()) {
let bounds = screen.bounds
const [x, y] = this.hostApp.getWindow().getPosition()
for (const screen of this.electron.screen.getAllDisplays()) {
const bounds = screen.bounds
if (x >= bounds.x && x <= bounds.x + bounds.width && y >= bounds.y && y <= bounds.y + bounds.height) {
return
}
}
let screen = this.electron.screen.getPrimaryDisplay()
const screen = this.electron.screen.getPrimaryDisplay()
this.hostApp.getWindow().setPosition(screen.bounds.x, screen.bounds.y)
}
}

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core'
import { TouchBar, BrowserWindow, Menu, MenuItem } from 'electron'
import { TouchBar, BrowserWindow, Menu, MenuItem, NativeImage } from 'electron'
export interface MessageBoxResponse {
response: number
@@ -8,16 +8,16 @@ export interface MessageBoxResponse {
@Injectable({ providedIn: 'root' })
export class ElectronService {
app: any
ipcRenderer: any
shell: any
dialog: any
clipboard: any
globalShortcut: any
nativeImage: any
screen: any
remote: any
autoUpdater: any
app: Electron.App
ipcRenderer: Electron.IpcRenderer
shell: Electron.Shell
dialog: Electron.Dialog
clipboard: Electron.Clipboard
globalShortcut: Electron.GlobalShortcut
nativeImage: typeof NativeImage
screen: Electron.Screen
remote: Electron.Remote
autoUpdater: Electron.AutoUpdater
TouchBar: typeof TouchBar
BrowserWindow: typeof BrowserWindow
Menu: typeof Menu
@@ -52,7 +52,7 @@ export class ElectronService {
}
}
showMessageBox (
async showMessageBox (
browserWindow: Electron.BrowserWindow,
options: Electron.MessageBoxOptions
): Promise<MessageBoxResponse> {

View File

@@ -2,8 +2,8 @@ import * as os from 'os'
import { Injectable } from '@angular/core'
import { ElectronService } from './electron.service'
import { ConfigService } from './config.service'
import mixpanel = require('mixpanel')
import uuidv4 = require('uuid/v4')
import * as mixpanel from 'mixpanel'
import * as uuidv4 from 'uuid/v4'
@Injectable({ providedIn: 'root' })
export class HomeBaseService {
@@ -29,12 +29,12 @@ export class HomeBaseService {
reportBug () {
let body = `Version: ${this.appVersion}\n`
body += `Platform: ${os.platform()} ${os.release()}\n`
let label = {
const label = {
darwin: 'OS: macOS',
windows: 'OS: Windows',
linux: 'OS: Linux',
}[os.platform()]
let plugins = (window as any).installedPlugins.filter(x => !x.isBuiltin).map(x => x.name)
const plugins = (window as any).installedPlugins.filter(x => !x.isBuiltin).map(x => x.name)
body += `Plugins: ${plugins.join(', ') || 'none'}\n\n`
this.electron.shell.openExternal(`https://github.com/eugeny/terminus/issues/new?body=${encodeURIComponent(body)}&labels=${label}`)
}
@@ -53,7 +53,7 @@ export class HomeBaseService {
getAnalyticsProperties () {
return {
distinct_id: window.localStorage.analyticsUserID,
distinct_id: window.localStorage.analyticsUserID, // eslint-disable-line @typescript-eslint/camelcase
platform: process.platform,
os: os.release(),
version: this.appVersion,

View File

@@ -1,5 +1,5 @@
import * as path from 'path'
import shellEscape = require('shell-escape')
import shellEscape from 'shell-escape'
import { Observable, Subject } from 'rxjs'
import { Injectable, NgZone, EventEmitter } from '@angular/core'
import { ElectronService } from './electron.service'
@@ -87,8 +87,7 @@ export class HostAppService {
get displayMetricsChanged$ (): Observable<void> { return this.displayMetricsChanged }
/** @hidden */
constructor (
private constructor (
private zone: NgZone,
private electron: ElectronService,
log: LogService,
@@ -97,7 +96,7 @@ export class HostAppService {
this.platform = {
win32: Platform.Windows,
darwin: Platform.macOS,
linux: Platform.Linux
linux: Platform.Linux,
}[process.platform]
this.windowId = parseInt(location.search.substring(1))
@@ -170,7 +169,7 @@ export class HostAppService {
}
toggleFullscreen () {
let window = this.getWindow()
const window = this.getWindow()
window.setFullScreen(!this.isFullScreen)
}

View File

@@ -1,6 +1,6 @@
import { Injectable, Inject, NgZone, EventEmitter } from '@angular/core'
import { IHotkeyDescription, HotkeyProvider } from '../api/hotkeyProvider'
import { NativeKeyEvent, stringifyKeySequence } from './hotkeys.util'
import { HotkeyDescription, HotkeyProvider } from '../api/hotkeyProvider'
import { stringifyKeySequence } from './hotkeys.util'
import { ConfigService } from '../services/config.service'
import { ElectronService } from '../services/electron.service'
@@ -13,29 +13,28 @@ export interface PartialHotkeyMatch {
const KEY_TIMEOUT = 2000
interface EventBufferEntry {
event: NativeKeyEvent
event: KeyboardEvent
time: number
}
@Injectable({ providedIn: 'root' })
export class HotkeysService {
key = new EventEmitter<NativeKeyEvent>()
key = new EventEmitter<KeyboardEvent>()
matchedHotkey = new EventEmitter<string>()
globalHotkey = new EventEmitter()
globalHotkey = new EventEmitter<void>()
private currentKeystrokes: EventBufferEntry[] = []
private disabledLevel = 0
private hotkeyDescriptions: IHotkeyDescription[] = []
private hotkeyDescriptions: HotkeyDescription[] = []
/** @hidden */
constructor (
private constructor (
private zone: NgZone,
private electron: ElectronService,
private config: ConfigService,
@Inject(HotkeyProvider) private hotkeyProviders: HotkeyProvider[],
) {
let events = ['keydown', 'keyup']
events.forEach((event) => {
document.addEventListener(event, (nativeEvent) => {
const events = ['keydown', 'keyup']
events.forEach(event => {
document.addEventListener(event, (nativeEvent: KeyboardEvent) => {
if (document.querySelectorAll('input:focus').length === 0) {
this.pushKeystroke(event, nativeEvent)
this.processKeystrokes()
@@ -58,8 +57,8 @@ export class HotkeysService {
* @param name DOM event name
* @param nativeEvent event object
*/
pushKeystroke (name, nativeEvent) {
nativeEvent.event = name
pushKeystroke (name: string, nativeEvent: KeyboardEvent) {
(nativeEvent as any).event = name
this.currentKeystrokes.push({ event: nativeEvent, time: performance.now() })
}
@@ -69,7 +68,7 @@ export class HotkeysService {
processKeystrokes () {
if (this.isEnabled()) {
this.zone.run(() => {
let matched = this.getCurrentFullyMatchedHotkey()
const matched = this.getCurrentFullyMatchedHotkey()
if (matched) {
console.log('Matched hotkey', matched)
this.matchedHotkey.emit(matched)
@@ -79,7 +78,7 @@ export class HotkeysService {
}
}
emitKeyEvent (nativeEvent) {
emitKeyEvent (nativeEvent: KeyboardEvent) {
this.zone.run(() => {
this.key.emit(nativeEvent)
})
@@ -94,61 +93,16 @@ export class HotkeysService {
return stringifyKeySequence(this.currentKeystrokes.map(x => x.event))
}
private registerGlobalHotkey () {
this.electron.globalShortcut.unregisterAll()
let value = this.config.store.hotkeys['toggle-window'] || []
if (typeof value === 'string') {
value = [value]
}
value.forEach(item => {
item = (typeof item === 'string') ? [item] : item
try {
this.electron.globalShortcut.register(item[0].replace(/-/g, '+'), () => {
this.globalHotkey.emit()
})
} catch (err) {
console.error('Could not register the global hotkey:', err)
}
})
}
private getHotkeysConfig () {
return this.getHotkeysConfigRecursive(this.config.store.hotkeys)
}
private getHotkeysConfigRecursive (branch) {
let keys = {}
for (let key in branch) {
let value = branch[key]
if (value instanceof Object && !(value instanceof Array)) {
let subkeys = this.getHotkeysConfigRecursive(value)
for (let subkey in subkeys) {
keys[key + '.' + subkey] = subkeys[subkey]
}
} else {
if (typeof value === 'string') {
value = [value]
}
if (value) {
value = value.map((item) => (typeof item === 'string') ? [item] : item)
keys[key] = value
}
}
}
return keys
}
private getCurrentFullyMatchedHotkey (): string {
let currentStrokes = this.getCurrentKeystrokes()
let config = this.getHotkeysConfig()
for (let id in config) {
for (let sequence of config[id]) {
getCurrentFullyMatchedHotkey (): string {
const currentStrokes = this.getCurrentKeystrokes()
const config = this.getHotkeysConfig()
for (const id in config) {
for (const sequence of config[id]) {
if (currentStrokes.length < sequence.length) {
continue
}
if (sequence.every(
(x, index) =>
(x: string, index: number) =>
x.toLowerCase() ===
currentStrokes[currentStrokes.length - sequence.length + index].toLowerCase()
)) {
@@ -160,21 +114,21 @@ export class HotkeysService {
}
getCurrentPartiallyMatchedHotkeys (): PartialHotkeyMatch[] {
let currentStrokes = this.getCurrentKeystrokes()
let config = this.getHotkeysConfig()
let result = []
for (let id in config) {
for (let sequence of config[id]) {
const currentStrokes = this.getCurrentKeystrokes()
const config = this.getHotkeysConfig()
const result = []
for (const id in config) {
for (const sequence of config[id]) {
for (let matchLength = Math.min(currentStrokes.length, sequence.length); matchLength > 0; matchLength--) {
if (sequence.slice(0, matchLength).every(
(x, index) =>
(x: string, index: number) =>
x.toLowerCase() ===
currentStrokes[currentStrokes.length - matchLength + index].toLowerCase()
)) {
result.push({
matchedLength: matchLength,
id,
strokes: sequence
strokes: sequence,
})
break
}
@@ -184,7 +138,7 @@ export class HotkeysService {
return result
}
getHotkeyDescription (id: string): IHotkeyDescription {
getHotkeyDescription (id: string): HotkeyDescription {
return this.hotkeyDescriptions.filter((x) => x.id === id)[0]
}
@@ -200,7 +154,7 @@ export class HotkeysService {
return this.disabledLevel === 0
}
async getHotkeyDescriptions (): Promise<IHotkeyDescription[]> {
async getHotkeyDescriptions (): Promise<HotkeyDescription[]> {
return (
await Promise.all(
this.config.enabledServices(this.hotkeyProviders)
@@ -208,4 +162,53 @@ export class HotkeysService {
)
).reduce((a, b) => a.concat(b))
}
private registerGlobalHotkey () {
this.electron.globalShortcut.unregisterAll()
let value = this.config.store.hotkeys['toggle-window'] || []
if (typeof value === 'string') {
value = [value]
}
value.forEach((item: string | string[]) => {
item = typeof item === 'string' ? [item] : item
try {
let electronKeySpec = item[0]
electronKeySpec = electronKeySpec.replace('⌘', 'Command')
electronKeySpec = electronKeySpec.replace('⌥', 'Alt')
electronKeySpec = electronKeySpec.replace(/-/g, '+')
this.electron.globalShortcut.register(electronKeySpec, () => {
this.globalHotkey.emit()
})
} catch (err) {
console.error('Could not register the global hotkey:', err)
}
})
}
private getHotkeysConfig () {
return this.getHotkeysConfigRecursive(this.config.store.hotkeys)
}
private getHotkeysConfigRecursive (branch: any) {
const keys = {}
for (const key in branch) {
let value = branch[key]
if (value instanceof Object && !(value instanceof Array)) {
const subkeys = this.getHotkeysConfigRecursive(value)
for (const subkey in subkeys) {
keys[key + '.' + subkey] = subkeys[subkey]
}
} else {
if (typeof value === 'string') {
value = [value]
}
if (value) {
value = value.map((item: string | string[]) => typeof item === 'string' ? [item] : item)
keys[key] = value
}
}
}
return keys
}
}

View File

@@ -10,24 +10,14 @@ export const altKeyName = {
linux: 'Alt',
}[process.platform]
export interface NativeKeyEvent {
event?: string
altKey: boolean
ctrlKey: boolean
metaKey: boolean
shiftKey: boolean
key: string
keyCode: string
}
export function stringifyKeySequence (events: NativeKeyEvent[]): string[] {
let items: string[] = []
export function stringifyKeySequence (events: KeyboardEvent[]): string[] {
const items: string[] = []
events = events.slice()
while (events.length > 0) {
let event = events.shift()
if (event.event === 'keydown') {
let itemKeys: string[] = []
const event = events.shift()
if ((event as any).event === 'keydown') {
const itemKeys: string[] = []
if (event.ctrlKey) {
itemKeys.push('Ctrl')
}
@@ -45,13 +35,26 @@ export function stringifyKeySequence (events: NativeKeyEvent[]): string[] {
// TODO make this optional?
continue
}
if (event.key === ' ') {
itemKeys.push('Space')
} else if (event.key.length === 1) {
itemKeys.push(event.key.toUpperCase())
} else {
itemKeys.push(event.key)
}
let key = event.code
key = key.replace('Key', '')
key = key.replace('Arrow', '')
key = key.replace('Digit', '')
key = {
Comma: ',',
Period: '.',
Slash: '/',
Backslash: '\\',
IntlBackslash: '\\',
Backquote: '`',
Minus: '-',
Equal: '=',
Semicolon: ';',
Quote: '\'',
BracketLeft: '[',
BracketRight: ']',
}[key] || key
itemKeys.push(key)
items.push(itemKeys.join('-'))
}
}

View File

@@ -21,13 +21,8 @@ const initializeWinston = (electron: ElectronService) => {
maxsize: 5242880,
maxFiles: 5,
}),
new winston.transports.Console({
level: 'debug',
handleExceptions: false,
format: winston.format.colorize(),
})
],
exitOnError: false
exitOnError: false,
})
}
@@ -37,18 +32,32 @@ export class Logger {
private name: string,
) {}
debug (...args: any[]) {
this.doLog('debug', ...args)
}
info (...args: any[]) {
this.doLog('info', ...args)
}
warn (...args: any[]) {
this.doLog('warn', ...args)
}
error (...args: any[]) {
this.doLog('error', ...args)
}
log (...args: any[]) {
this.doLog('log', ...args)
}
private doLog (level: string, ...args: any[]) {
console[level](`%c[${this.name}]`, 'color: #aaa', ...args)
if (this.winstonLogger) {
this.winstonLogger[level](...args)
}
}
debug (...args: any[]) { this.doLog('debug', ...args) }
info (...args: any[]) { this.doLog('info', ...args) }
warn (...args: any[]) { this.doLog('warn', ...args) }
error (...args: any[]) { this.doLog('error', ...args) }
log (...args: any[]) { this.doLog('log', ...args) }
}
@Injectable({ providedIn: 'root' })

View File

@@ -5,9 +5,11 @@ import { Injectable } from '@angular/core'
import { ElectronService } from './electron.service'
import { HostAppService, Platform } from './hostApp.service'
/* eslint-disable block-scoped-var */
try {
var wnr = require('windows-native-registry') // tslint:disable-line
} catch (_) { } // tslint:disable-line
var wnr = require('windows-native-registry') // eslint-disable-line @typescript-eslint/no-var-requires
} catch (_) { }
@Injectable({ providedIn: 'root' })
export class ShellIntegrationService {
@@ -17,11 +19,11 @@ export class ShellIntegrationService {
private registryKeys = [
{
path: 'Software\\Classes\\Directory\\Background\\shell\\Open Terminus here',
command: 'open "%V"'
command: 'open "%V"',
},
{
path: 'Software\\Classes\\*\\shell\\Paste path into Terminus',
command: 'paste "%V"'
command: 'paste "%V"',
},
]
constructor (
@@ -40,15 +42,6 @@ export class ShellIntegrationService {
this.updatePaths()
}
private async updatePaths (): Promise<void> {
// Update paths in case of an update
if (this.hostApp.platform === Platform.Windows) {
if (await this.isInstalled()) {
await this.install()
}
}
}
async isInstalled (): Promise<boolean> {
if (this.hostApp.platform === Platform.macOS) {
return fs.exists(path.join(this.automatorWorkflowsDestination, this.automatorWorkflows[0]))
@@ -59,13 +52,13 @@ export class ShellIntegrationService {
}
async install () {
const exe = process.env.PORTABLE_EXECUTABLE_FILE || this.electron.app.getPath('exe')
const exe: string = process.env.PORTABLE_EXECUTABLE_FILE || this.electron.app.getPath('exe')
if (this.hostApp.platform === Platform.macOS) {
for (let wf of this.automatorWorkflows) {
for (const wf of this.automatorWorkflows) {
await exec(`cp -r "${this.automatorWorkflowsLocation}/${wf}" "${this.automatorWorkflowsDestination}"`)
}
} else if (this.hostApp.platform === Platform.Windows) {
for (let registryKey of this.registryKeys) {
for (const registryKey of this.registryKeys) {
wnr.createRegistryKey(wnr.HK.CU, registryKey.path)
wnr.createRegistryKey(wnr.HK.CU, registryKey.path + '\\command')
wnr.setRegistryValue(wnr.HK.CU, registryKey.path, 'Icon', wnr.REG.SZ, exe)
@@ -76,13 +69,22 @@ export class ShellIntegrationService {
async remove () {
if (this.hostApp.platform === Platform.macOS) {
for (let wf of this.automatorWorkflows) {
for (const wf of this.automatorWorkflows) {
await exec(`rm -rf "${this.automatorWorkflowsDestination}/${wf}"`)
}
} else if (this.hostApp.platform === Platform.Windows) {
for (let registryKey of this.registryKeys) {
for (const registryKey of this.registryKeys) {
wnr.deleteRegistryKey(wnr.HK.CU, registryKey.path)
}
}
}
private async updatePaths (): Promise<void> {
// Update paths in case of an update
if (this.hostApp.platform === Platform.Windows) {
if (await this.isInstalled()) {
await this.install()
}
}
}
}

View File

@@ -28,9 +28,9 @@ export class TabRecoveryService {
}
async recoverTab (token: any): Promise<RecoveredTab> {
for (let provider of this.config.enabledServices(this.tabRecoveryProviders)) {
for (const provider of this.config.enabledServices(this.tabRecoveryProviders)) {
try {
let tab = await provider.recover(token)
const tab = await provider.recover(token)
if (tab) {
return tab
}
@@ -43,9 +43,9 @@ export class TabRecoveryService {
async recoverTabs (): Promise<RecoveredTab[]> {
if (window.localStorage.tabsRecovery) {
let tabs: RecoveredTab[] = []
for (let token of JSON.parse(window.localStorage.tabsRecovery)) {
let tab = await this.recoverTab(token)
const tabs: RecoveredTab[] = []
for (const token of JSON.parse(window.localStorage.tabsRecovery)) {
const tab = await this.recoverTab(token)
if (tab) {
tabs.push(tab)
}
@@ -54,5 +54,4 @@ export class TabRecoveryService {
}
return []
}
}

View File

@@ -2,7 +2,8 @@ import { Injectable, ComponentFactoryResolver, Injector } from '@angular/core'
import { BaseTabComponent } from '../components/baseTab.component'
import { TabRecoveryService } from './tabRecovery.service'
export declare type TabComponentType = new (...args: any[]) => BaseTabComponent
// eslint-disable-next-line @typescript-eslint/no-type-alias
export type TabComponentType = new (...args: any[]) => BaseTabComponent
@Injectable({ providedIn: 'root' })
export class TabsService {
@@ -17,9 +18,9 @@ export class TabsService {
* Instantiates a tab component and assigns given inputs
*/
create (type: TabComponentType, inputs?: any): BaseTabComponent {
let componentFactory = this.componentFactoryResolver.resolveComponentFactory(type)
let componentRef = componentFactory.create(this.injector)
let tab = componentRef.instance
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(type)
const componentRef = componentFactory.create(this.injector)
const tab = componentRef.instance
tab.hostView = componentRef.hostView
Object.assign(tab, inputs || {})
return tab
@@ -29,11 +30,11 @@ export class TabsService {
* Duplicates an existing tab instance (using the tab recovery system)
*/
async duplicate (tab: BaseTabComponent): Promise<BaseTabComponent> {
let token = await tab.getRecoveryToken()
const token = await tab.getRecoveryToken()
if (!token) {
return null
}
let dup = await this.tabRecovery.recoverTab(token)
const dup = await this.tabRecovery.recoverTab(token)
if (dup) {
return this.create(dup.type, dup.options)
}

View File

@@ -4,7 +4,7 @@ import { AppService } from './app.service'
import { ConfigService } from './config.service'
import { ElectronService } from './electron.service'
import { HostAppService, Platform } from './hostApp.service'
import { IToolbarButton, ToolbarButtonProvider } from '../api'
import { ToolbarButton, ToolbarButtonProvider } from '../api'
/** @hidden */
@Injectable({ providedIn: 'root' })
@@ -28,19 +28,19 @@ export class TouchbarService {
app.tabsChanged$.subscribe(() => this.updateTabs())
app.activeTabChange$.subscribe(() => this.updateTabs())
let activityIconPath = `${electron.app.getAppPath()}/assets/activity.png`
let activityIcon = this.electron.nativeImage.createFromPath(activityIconPath)
const activityIconPath = `${electron.app.getAppPath()}/assets/activity.png`
const activityIcon = this.electron.nativeImage.createFromPath(activityIconPath)
app.tabOpened$.subscribe(tab => {
tab.titleChange$.subscribe(title => {
let segment = this.tabSegments[app.tabs.indexOf(tab)]
const segment = this.tabSegments[app.tabs.indexOf(tab)]
if (segment) {
segment.label = this.shortenTitle(title)
this.tabsSegmentedControl.segments = this.tabSegments
}
})
tab.activity$.subscribe(hasActivity => {
let showIcon = this.app.activeTab !== tab && hasActivity
let segment = this.tabSegments[app.tabs.indexOf(tab)]
const showIcon = this.app.activeTab !== tab && hasActivity
const segment = this.tabSegments[app.tabs.indexOf(tab)]
if (segment) {
segment.icon = showIcon ? activityIcon : null
}
@@ -61,7 +61,7 @@ export class TouchbarService {
return
}
let buttons: IToolbarButton[] = []
let buttons: ToolbarButton[] = []
this.config.enabledServices(this.toolbarButtonProviders).forEach(provider => {
buttons = buttons.concat(provider.provide())
})
@@ -76,7 +76,7 @@ export class TouchbarService {
selectedIndex: this.app.tabs.indexOf(this.app.activeTab),
change: (selectedIndex) => this.zone.run(() => {
this.app.selectTab(this.app.tabs[selectedIndex])
})
}),
})
this.buttonsSegmentedControl = new this.electron.TouchBar.TouchBarSegmentedControl({
@@ -84,21 +84,21 @@ export class TouchbarService {
mode: 'buttons',
change: (selectedIndex) => this.zone.run(() => {
buttons[selectedIndex].click()
})
}),
})
let touchBar = new this.electron.TouchBar({
const touchBar = new this.electron.TouchBar({
items: [
this.tabsSegmentedControl,
new this.electron.TouchBar.TouchBarSpacer({ size: 'flexible' }),
new this.electron.TouchBar.TouchBarSpacer({ size: 'small' }),
this.buttonsSegmentedControl,
]
],
})
this.hostApp.setTouchBar(touchBar)
}
private getButton (button: IToolbarButton): Electron.SegmentedControlSegment {
private getButton (button: ToolbarButton): Electron.SegmentedControlSegment {
return {
label: button.touchBarNSImage ? null : this.shortenTitle(button.touchBarTitle || button.title),
icon: button.touchBarNSImage ? this.getCachedNSImage(button.touchBarNSImage) : null,

View File

@@ -36,7 +36,7 @@ export class UpdaterService {
this.logger.debug('Checking for updates')
if (this.electronUpdaterAvailable) {
if (this.electronUpdaterAvailable && !process.env.TERMINUS_DEV) {
try {
this.autoUpdater.checkForUpdates()
} catch (e) {
@@ -49,9 +49,9 @@ export class UpdaterService {
async check (): Promise<boolean> {
if (!this.electronUpdaterAvailable) {
this.logger.debug('Checking for updates')
let response = await axios.get(UPDATES_URL)
let data = response.data
let version = data.tag_name.substring(1)
const response = await axios.get(UPDATES_URL)
const data = response.data
const version = data.tag_name.substring(1)
if (this.electron.app.getVersion() !== version) {
this.logger.info('Update available')
this.updateURL = data.html_url

View File

@@ -22,31 +22,31 @@ export class CloseContextMenu extends TabContextMenuItemProvider {
label: 'Close',
click: () => this.zone.run(() => {
this.app.closeTab(tab, true)
})
}),
},
{
label: 'Close other tabs',
click: () => this.zone.run(() => {
for (let t of this.app.tabs.filter(x => x !== tab)) {
for (const t of this.app.tabs.filter(x => x !== tab)) {
this.app.closeTab(t, true)
}
})
}),
},
{
label: 'Close tabs to the right',
click: () => this.zone.run(() => {
for (let t of this.app.tabs.slice(this.app.tabs.indexOf(tab) + 1)) {
for (const t of this.app.tabs.slice(this.app.tabs.indexOf(tab) + 1)) {
this.app.closeTab(t, true)
}
})
}),
},
{
label: 'Close tabs to the left',
click: () => this.zone.run(() => {
for (let t of this.app.tabs.slice(0, this.app.tabs.indexOf(tab))) {
for (const t of this.app.tabs.slice(0, this.app.tabs.indexOf(tab))) {
this.app.closeTab(t, true)
}
})
}),
},
]
}
@@ -78,11 +78,11 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
return [
{
label: 'Rename',
click: () => this.zone.run(() => tabHeader.showRenameTabModal())
click: () => this.zone.run(() => tabHeader.showRenameTabModal()),
},
{
label: 'Duplicate',
click: () => this.zone.run(() => this.app.duplicateTab(tab))
click: () => this.zone.run(() => this.app.duplicateTab(tab)),
},
{
label: 'Color',
@@ -95,7 +95,7 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
tab.color = color.value
}),
})) as Electron.MenuItemConstructorOptions[],
}
},
]
}
}
@@ -111,7 +111,7 @@ export class TaskCompletionContextMenu extends TabContextMenuItemProvider {
}
async getItems (tab: BaseTabComponent): Promise<Electron.MenuItemConstructorOptions[]> {
let process = await tab.getCurrentProcess()
const process = await tab.getCurrentProcess()
if (process) {
return [
{
@@ -138,7 +138,7 @@ export class TaskCompletionContextMenu extends TabContextMenuItemProvider {
} else {
this.app.stopObservingTabCompletion(tab)
}
})
}),
},
]
}

View File

@@ -51,13 +51,13 @@ $input-disabled-bg: #333;
$input-color: $body-color;
$input-color-placeholder: #333;
$input-border-color: #344;
$input-border-width: 0;
$input-border-width: 1px;
//$input-box-shadow: inset 0 1px 1px rgba($black,.075);
$input-border-radius: 0;
$custom-select-border-radius: 0;
$input-bg-focus: $input-bg;
//$input-border-focus: lighten($brand-primary, 25%);
//$input-box-shadow-focus: $input-box-shadow, rgba($input-border-focus, .6);
$input-border-focus: lighten($blue, 25%);
$input-focus-box-shadow: none;
$input-color-focus: $input-color;
$input-group-addon-bg: $body-bg;
$input-group-addon-border-color: $input-border-color;

View File

@@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"declarationDir": "dist"
"baseUrl": "src"
}
}

View File

@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist", "typings"],
"compilerOptions": {
"baseUrl": "src",
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./typings",
"paths": {
"terminus-*": ["../../terminus-*"],
"*": ["../../app/node_modules/*"]
}
}
}

View File

@@ -2,65 +2,64 @@ const path = require('path')
const webpack = require('webpack')
module.exports = {
target: 'node',
entry: 'src/index.ts',
devtool: 'eval-source-map',
context: __dirname,
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-core:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [path.resolve(__dirname, 'node_modules/@types')],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
}
}
}
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader'], include: /component\.css/ },
{ test: /\.css$/, use: ['style-loader', 'css-loader'], exclude: /component\.css/ },
{ test: /\.yaml$/, use: ['json-loader', 'yaml-loader'] },
{ test: /\.svg/, use: ['svg-inline-loader'] },
]
},
externals: [
'electron',
'fs',
'os',
'path',
'deepmerge',
'untildify',
'winston',
'js-yaml',
'windows-native-registry',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
target: 'node',
entry: 'src/index.ts',
devtool: 'source-map',
context: __dirname,
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-core:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [
path.resolve(__dirname, 'node_modules/@types'),
path.resolve(__dirname, '../node_modules/@types'),
],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
},
},
},
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader'], include: /component\.css/ },
{ test: /\.css$/, use: ['style-loader', 'css-loader'], exclude: /component\.css/ },
{ test: /\.yaml$/, use: ['json-loader', 'yaml-loader'] },
{ test: /\.svg/, use: ['svg-inline-loader'] },
],
},
externals: [
'electron',
'fs',
'os',
'path',
'windows-native-registry',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
}

View File

@@ -7,15 +7,10 @@
resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-3.12.1.tgz#5c6f4a1eabca84792fbd916f0cb40847f123c656"
integrity sha512-SGGAhXLHDx+PK4YLNcNGa6goPf9XRWQNAUUbffkwVGGXIxmDKWyGGL4inzq2sPmExu431Ekb9aEMn9BkPqEYFA==
"@types/node@^12.0.2":
version "12.0.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.0.4.tgz#46832183115c904410c275e34cf9403992999c32"
integrity sha512-j8YL2C0fXq7IONwl/Ud5Kt0PeXw22zGERt+HSSnwbKOJVsAGkEz3sFCYwaF9IOuoG1HOtE0vKCj6sXF7Q0+Vaw==
"@types/webpack-env@^1.13.0":
version "1.13.9"
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.13.9.tgz#a67287861c928ebf4159a908d1fb1a2a34d4097a"
integrity sha512-p8zp5xqkly3g4cCmo2mKOHI9+Z/kObmDj0BmjbDDJQlgDTiEGTbm17MEwTAusV6XceCy+bNw9q/ZHXHyKo3zkg==
"@types/shell-escape@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@types/shell-escape/-/shell-escape-0.2.0.tgz#cd2f0df814388599dd07196dcc510de2669d1ed2"
integrity sha512-7kUdtJtUylvyISJbe9FMcvMTjRdP0EvNDO1WbT0lT22k/IPBiPRTpmWaKu5HTWLCGLQRWVHrzVHZktTDvvR23g==
"@types/winston@^2.3.6":
version "2.4.4"
@@ -137,9 +132,9 @@ colorspace@1.1.x:
text-hex "1.0.x"
core-js@^3.1.2:
version "3.1.3"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1.3.tgz#95700bca5f248f5f78c0ec63e784eca663ec4138"
integrity sha512-PWZ+ZfuaKf178BIAg+CRsljwjIMRV8MY00CbZczkR6Zk5LfkSkjGoaab3+bqRQWVITNZxQB7TFYz+CFcyuamvA==
version "3.1.4"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1.4.tgz#3a2837fc48e582e1ae25907afcd6cf03b0cc7a07"
integrity sha512-YNZN8lt82XIMLnLirj9MhKDFZHalwzzrL9YLt6eb0T5D0EDl4IQ90IGkua8mHbnxNrkj1d8hbdizMc0Qmg1WnQ==
core-util-is@~1.0.0:
version "1.0.2"
@@ -168,9 +163,9 @@ debug@^4.1.1:
ms "^2.1.1"
deepmerge@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.2.0.tgz#58ef463a57c08d376547f8869fdc5bcee957f44e"
integrity sha512-6+LuZGU7QCNUnAJyX8cIrlzoEgggTM6B7mm+znKOX4t5ltluT9KLjN6g61ECMS0LTsLW7yDpNoxhix5FZcrIow==
version "3.2.1"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.2.1.tgz#76a1f47854bcfcd66ee9a948d110540a8e12b261"
integrity sha512-+hbDSzTqEW0fWgnlKksg7XAOtT+ddZS5lHZJ6f6MdixRs9wQy+50fm1uUCVb1IkvjLUYX/SfFO021ZNwriURTw==
diagnostics@^1.1.1:
version "1.1.1"
@@ -362,11 +357,6 @@ ms@^2.1.1:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a"
integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==
nan@^2.13.2:
version "2.14.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c"
integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==
ng2-dnd@^5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/ng2-dnd/-/ng2-dnd-5.0.2.tgz#862278ac7dedfa14f5783bbf34014d5d73dfefb4"
@@ -516,13 +506,6 @@ uuid@^3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==
windows-native-registry@^1.0.14:
version "1.0.14"
resolved "https://registry.yarnpkg.com/windows-native-registry/-/windows-native-registry-1.0.14.tgz#35c742b1278473127cbfb3b76e0db3d1ef626872"
integrity sha512-C2UgyZYJYcPFjkhfNuy09CUa6wXAti4x/tLPgzudDDrqpTyczcgnBEpiablmE6j7E7ownouWTqgVcHW8HJyqhw==
dependencies:
nan "^2.13.2"
winston-transport@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.3.0.tgz#df68c0c202482c448d9b47313c07304c2d7c2c66"

View File

@@ -1,12 +1,12 @@
{
"name": "terminus-plugin-manager",
"version": "1.0.73-c4-ga7d62b0",
"version": "1.0.83-nightly.0",
"description": "Terminus' plugin manager",
"keywords": [
"terminus-builtin-plugin"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"typings": "typings/index.d.ts",
"scripts": {
"build": "webpack --progress --color --display-modules",
"watch": "webpack --progress --color --watch"
@@ -18,27 +18,20 @@
"license": "MIT",
"devDependencies": {
"@types/mz": "0.0.32",
"@types/node": "12.0.4",
"@types/semver": "^6.0.0",
"@types/webpack-env": "1.13.9",
"css-loader": "^0.28.0",
"axios": "^0.19.0",
"mz": "^2.6.0",
"ngx-pipes": "^1.6.1",
"semver": "^6.1.0"
},
"peerDependencies": {
"@angular/common": "4.0.1",
"@angular/core": "4.0.1",
"@angular/forms": "4.0.1",
"@angular/platform-browser": "4.0.1",
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.22",
"rxjs": "5.3.0",
"@angular/common": "^7",
"@angular/core": "^7",
"@angular/forms": "^7",
"@angular/platform-browser": "^7",
"@ng-bootstrap/ng-bootstrap": "^1",
"rxjs": "^5",
"terminus-core": "*",
"terminus-settings": "*"
},
"dependencies": {
"axios": "^0.19.0",
"mz": "^2.6.0",
"npm": "~6.7.0"
},
"false": {}
}
}

View File

@@ -4,7 +4,7 @@ import * as semver from 'semver'
import { Component, Input } from '@angular/core'
import { ConfigService, ElectronService } from 'terminus-core'
import { IPluginInfo, PluginManagerService } from '../services/pluginManager.service'
import { PluginInfo, PluginManagerService } from '../services/pluginManager.service'
enum BusyState { Installing, Uninstalling }
@@ -15,10 +15,10 @@ enum BusyState { Installing, Uninstalling }
})
export class PluginsSettingsTabComponent {
BusyState = BusyState
@Input() availablePlugins$: Observable<IPluginInfo[]>
@Input() availablePlugins$: Observable<PluginInfo[]>
@Input() availablePluginsQuery$ = new BehaviorSubject<string>('')
@Input() availablePluginsReady = false
@Input() knownUpgrades: {[id: string]: IPluginInfo} = {}
@Input() knownUpgrades: {[id: string]: PluginInfo} = {}
@Input() busy: {[id: string]: BusyState} = {}
@Input() erroredPlugin: string
@Input() errorMessage: string
@@ -44,7 +44,7 @@ export class PluginsSettingsTabComponent {
})
)
this.availablePlugins$.pipe(first()).subscribe(available => {
for (let plugin of this.pluginManager.installedPlugins) {
for (const plugin of this.pluginManager.installedPlugins) {
this.knownUpgrades[plugin.name] = available.find(x => x.name === plugin.name && semver.gt(x.version, plugin.version))
}
})
@@ -58,11 +58,11 @@ export class PluginsSettingsTabComponent {
this.availablePluginsQuery$.next(query)
}
isAlreadyInstalled (plugin: IPluginInfo): boolean {
isAlreadyInstalled (plugin: PluginInfo): boolean {
return this.pluginManager.installedPlugins.some(x => x.name === plugin.name)
}
async installPlugin (plugin: IPluginInfo): Promise<void> {
async installPlugin (plugin: PluginInfo): Promise<void> {
this.busy[plugin.name] = BusyState.Installing
try {
await this.pluginManager.installPlugin(plugin)
@@ -76,7 +76,7 @@ export class PluginsSettingsTabComponent {
}
}
async uninstallPlugin (plugin: IPluginInfo): Promise<void> {
async uninstallPlugin (plugin: PluginInfo): Promise<void> {
this.busy[plugin.name] = BusyState.Uninstalling
try {
await this.pluginManager.uninstallPlugin(plugin)
@@ -90,21 +90,21 @@ export class PluginsSettingsTabComponent {
}
}
async upgradePlugin (plugin: IPluginInfo): Promise<void> {
async upgradePlugin (plugin: PluginInfo): Promise<void> {
return this.installPlugin(this.knownUpgrades[plugin.name])
}
showPluginInfo (plugin: IPluginInfo) {
showPluginInfo (plugin: PluginInfo) {
this.electron.shell.openExternal('https://www.npmjs.com/package/' + plugin.packageName)
}
enablePlugin (plugin: IPluginInfo) {
enablePlugin (plugin: PluginInfo) {
this.config.store.pluginBlacklist = this.config.store.pluginBlacklist.filter(x => x !== plugin.name)
this.config.save()
this.config.requestRestart()
}
disablePlugin (plugin: IPluginInfo) {
disablePlugin (plugin: PluginInfo) {
this.config.store.pluginBlacklist = [...this.config.store.pluginBlacklist, plugin.name]
this.config.save()
this.config.requestRestart()

View File

@@ -27,6 +27,6 @@ import { PluginsSettingsTabProvider } from './settings'
PluginsSettingsTabComponent,
],
})
export default class PluginManagerModule { }
export default class PluginManagerModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class
export { PluginManagerService }

View File

@@ -8,7 +8,7 @@ const NAME_PREFIX = 'terminus-'
const KEYWORD = 'terminus-plugin'
const OFFICIAL_NPM_ACCOUNT = 'eugenepankov'
export interface IPluginInfo {
export interface PluginInfo {
name: string
description: string
packageName: string
@@ -25,7 +25,7 @@ export class PluginManagerService {
logger: Logger
builtinPluginsPath: string = (window as any).builtinPluginsPath
userPluginsPath: string = (window as any).userPluginsPath
installedPlugins: IPluginInfo[] = (window as any).installedPlugins
installedPlugins: PluginInfo[] = (window as any).installedPlugins
private npmReady: Promise<void>
private npm: any
@@ -57,12 +57,12 @@ export class PluginManagerService {
return this.npm
}
listAvailable (query?: string): Observable<IPluginInfo[]> {
listAvailable (query?: string): Observable<PluginInfo[]> {
return from(
axios.get(`https://www.npmjs.com/search?q=keywords%3A${KEYWORD}+${encodeURIComponent(query || '')}&from=0&size=1000`, {
headers: {
'x-spiferack': '1',
}
},
})
).pipe(
map(response => response.data.objects.map(item => ({
@@ -78,7 +78,7 @@ export class PluginManagerService {
)
}
async installPlugin (plugin: IPluginInfo) {
async installPlugin (plugin: PluginInfo) {
(await this.getNPM()).commands.install([`${plugin.packageName}@${plugin.version}`], err => {
if (err) {
this.logger.error(err)
@@ -88,7 +88,7 @@ export class PluginManagerService {
})
}
async uninstallPlugin (plugin: IPluginInfo) {
async uninstallPlugin (plugin: PluginInfo) {
(await this.getNPM()).commands.remove([plugin.packageName], err => {
if (err) {
this.logger.error(err)

View File

@@ -3,6 +3,5 @@
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"declarationDir": "dist"
}
}

View File

@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist", "typings"],
"compilerOptions": {
"baseUrl": "src",
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./typings",
"paths": {
"terminus-*": ["../../terminus-*"],
"*": ["../../app/node_modules/*"]
}
}
}

View File

@@ -2,57 +2,59 @@ const path = require('path')
const webpack = require('webpack')
module.exports = {
target: 'node',
entry: 'src/index.ts',
devtool: 'eval-source-map',
context: __dirname,
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-plugin-manager:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
query: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [path.resolve(__dirname, 'node_modules/@types')],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
}
}
}
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
]
},
externals: [
'fs',
'npm',
'path',
'mz/fs',
'mz/child_process',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
target: 'node',
entry: 'src/index.ts',
devtool: 'source-map',
context: __dirname,
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-plugin-manager:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
query: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [
path.resolve(__dirname, 'node_modules/@types'),
path.resolve(__dirname, '../node_modules/@types'),
],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
},
},
},
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
],
},
externals: [
'fs',
'net',
'npm',
'path',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,34 +1,32 @@
{
"name": "terminus-settings",
"version": "1.0.73-c4-ga7d62b0",
"version": "1.0.83-nightly.4",
"description": "Terminus terminal settings page",
"keywords": [
"terminus-builtin-plugin"
],
"main": "dist/index.js",
"typings": "dist/src/index.d.ts",
"typings": "typings/index.d.ts",
"scripts": {
"build": "webpack --progress --color --display-modules",
"watch": "webpack --progress --color --watch"
},
"files": [
"dist"
"typings"
],
"author": "Eugene Pankov",
"license": "MIT",
"devDependencies": {
"@types/deep-equal": "1.0.1",
"@types/node": "12.0.4",
"@types/webpack-env": "1.13.9",
"ngx-pipes": "^1.6.1"
},
"peerDependencies": {
"@angular/common": "4.0.1",
"@angular/core": "4.0.1",
"@angular/forms": "4.0.1",
"@angular/platform-browser": "4.0.1",
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.22",
"@angular/common": "^7",
"@angular/core": "^7",
"@angular/forms": "^7",
"@angular/platform-browser": "^7",
"@ng-bootstrap/ng-bootstrap": "^1",
"terminus-core": "*",
"rxjs": "5.3.0"
"rxjs": "^5"
}
}

View File

@@ -1,6 +1,5 @@
import { Injectable } from '@angular/core'
import { DomSanitizer } from '@angular/platform-browser'
import { ToolbarButtonProvider, IToolbarButton, AppService, HostAppService, HotkeysService } from 'terminus-core'
import { ToolbarButtonProvider, ToolbarButton, AppService, HostAppService, HotkeysService } from 'terminus-core'
import { SettingsTabComponent } from './components/settingsTab.component'
@@ -11,7 +10,6 @@ export class ButtonProvider extends ToolbarButtonProvider {
hostApp: HostAppService,
hotkeys: HotkeysService,
private app: AppService,
private domSanitizer: DomSanitizer,
) {
super()
hostApp.preferencesMenu$.subscribe(() => this.open())
@@ -23,9 +21,9 @@ export class ButtonProvider extends ToolbarButtonProvider {
})
}
provide (): IToolbarButton[] {
provide (): ToolbarButton[] {
return [{
icon: this.domSanitizer.bypassSecurityTrustHtml(require('./icons/cog.svg')),
icon: require('./icons/cog.svg'),
title: 'Settings',
touchBarNSImage: 'NSTouchBarComposeTemplate',
weight: 10,
@@ -34,7 +32,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
}
open (): void {
let settingsTab = this.app.tabs.find(tab => tab instanceof SettingsTabComponent)
const settingsTab = this.app.tabs.find(tab => tab instanceof SettingsTabComponent)
if (settingsTab) {
this.app.selectTab(settingsTab)
} else {

View File

@@ -21,7 +21,7 @@ const INPUT_TIMEOUT = 1000
animate('250ms ease-out', style({
transform: 'translateX(0)',
opacity: '1',
}))
})),
]),
transition(':leave', [
style({
@@ -31,10 +31,10 @@ const INPUT_TIMEOUT = 1000
animate('250ms ease-in', style({
transform: 'translateX(25px)',
opacity: '0',
}))
])
])
]
})),
]),
]),
],
})
export class HotkeyInputModalComponent {
@Input() value: string[] = []

View File

@@ -24,7 +24,7 @@ export class MultiHotkeyInputComponent {
if (typeof this.model === 'string') {
this.model = [this.model]
}
this.model = this.model.map(item => (typeof item === 'string') ? [item] : item)
this.model = this.model.map(item => typeof item === 'string' ? [item] : item)
}
editItem (item) {

View File

@@ -2,8 +2,6 @@
display: flex;
flex-direction: column;
flex: auto;
overflow: auto;
height: 100%;
>.btn-block {
margin: 20px;

View File

@@ -1,19 +1,19 @@
import * as yaml from 'js-yaml'
import * as os from 'os'
import { Subscription } from 'rxjs'
import { Component, Inject, Input, HostBinding } from '@angular/core'
import { Component, Inject, Input, HostBinding, NgZone } from '@angular/core'
import {
ElectronService,
DockingService,
ConfigService,
IHotkeyDescription,
HotkeyDescription,
HotkeysService,
BaseTabComponent,
Theme,
HostAppService,
Platform,
HomeBaseService,
ShellIntegrationService
ShellIntegrationService,
} from 'terminus-core'
import { SettingsTabProvider } from '../api'
@@ -30,7 +30,7 @@ import { SettingsTabProvider } from '../api'
export class SettingsTabComponent extends BaseTabComponent {
@Input() activeTab: string
hotkeyFilter = ''
hotkeyDescriptions: IHotkeyDescription[]
hotkeyDescriptions: HotkeyDescription[]
screens: any[]
Platform = Platform
configDefaults: any
@@ -47,6 +47,7 @@ export class SettingsTabComponent extends BaseTabComponent {
public hostApp: HostAppService,
public homeBase: HomeBaseService,
public shellIntegration: ShellIntegrationService,
public zone: NgZone,
hotkeys: HotkeysService,
@Inject(SettingsTabProvider) public settingsProviders: SettingsTabProvider[],
@Inject(Theme) public themes: Theme[],
@@ -68,6 +69,14 @@ export class SettingsTabComponent extends BaseTabComponent {
this.configSubscription = config.changed$.subscribe(onConfigChange)
onConfigChange()
const onScreenChange = () => {
this.zone.run(() => this.screens = this.docking.getScreens());
}
electron.screen.on('display-added', onScreenChange);
electron.screen.on('display-removed', onScreenChange);
electron.screen.on('display-metrics-changed', onScreenChange);
hotkeys.getHotkeyDescriptions().then(descriptions => {
this.hotkeyDescriptions = descriptions
})
@@ -124,7 +133,7 @@ export class SettingsTabComponent extends BaseTabComponent {
getHotkey (id: string) {
let ptr = this.config.store.hotkeys
for (let token of id.split(/\./g)) {
for (const token of id.split(/\./g)) {
ptr = ptr[token]
}
return ptr
@@ -133,7 +142,7 @@ export class SettingsTabComponent extends BaseTabComponent {
setHotkey (id: string, value) {
let ptr = this.config.store
let prop = 'hotkeys'
for (let token of id.split(/\./g)) {
for (const token of id.split(/\./g)) {
ptr = ptr[prop]
prop = token
}

View File

@@ -13,6 +13,7 @@
padding: 15px 30px;
margin: 0;
overflow-y: auto;
height: 100%;
flex: auto;
display: flex;
position: relative;

View File

@@ -7,17 +7,17 @@ export class SettingsConfigProvider extends ConfigProvider {
[Platform.macOS]: {
hotkeys: {
settings: ['⌘-,'],
}
},
},
[Platform.Windows]: {
hotkeys: {
settings: ['Ctrl-,']
}
settings: ['Ctrl-,'],
},
},
[Platform.Linux]: {
hotkeys: {
settings: ['Ctrl-,']
}
settings: ['Ctrl-,'],
},
},
}
}

View File

@@ -1,17 +1,17 @@
import { Injectable } from '@angular/core'
import { IHotkeyDescription, HotkeyProvider } from 'terminus-core'
import { HotkeyDescription, HotkeyProvider } from 'terminus-core'
/** @hidden */
@Injectable()
export class SettingsHotkeyProvider extends HotkeyProvider {
hotkeys: IHotkeyDescription[] = [
hotkeys: HotkeyDescription[] = [
{
id: 'settings',
name: 'Open Settings',
},
]
async provide (): Promise<IHotkeyDescription[]> {
async provide (): Promise<HotkeyDescription[]> {
return this.hotkeys
}
}

View File

@@ -42,7 +42,7 @@ import { SettingsConfigProvider } from './config'
SettingsTabBodyComponent,
],
})
export default class SettingsModule { }
export default class SettingsModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class
export * from './api'
export { SettingsTabComponent }

View File

@@ -3,6 +3,5 @@
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": "src",
"declarationDir": "dist"
}
}

View File

@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"exclude": ["node_modules", "dist", "typings"],
"compilerOptions": {
"baseUrl": "src",
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./typings",
"paths": {
"terminus-*": ["../../terminus-*"],
"*": ["../../app/node_modules/*"]
}
}
}

View File

@@ -2,58 +2,61 @@ const path = require('path')
const webpack = require('webpack')
module.exports = {
target: 'node',
entry: 'src/index.ts',
devtool: 'eval-source-map',
context: __dirname,
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-settings:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [path.resolve(__dirname, 'node_modules/@types')],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
}
}
}
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.svg/, use: ['svg-inline-loader'] },
]
},
externals: [
'fs',
'path',
'os',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
target: 'node',
entry: 'src/index.ts',
devtool: 'source-map',
context: __dirname,
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
pathinfo: true,
libraryTarget: 'umd',
devtoolModuleFilenameTemplate: 'webpack-terminus-settings:///[resource-path]',
},
mode: process.env.TERMINUS_DEV ? 'development' : 'production',
optimization:{
minimize: false,
},
resolve: {
modules: ['.', 'src', 'node_modules', '../app/node_modules'].map(x => path.join(__dirname, x)),
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [
path.resolve(__dirname, 'node_modules/@types'),
path.resolve(__dirname, '../node_modules/@types'),
],
paths: {
"terminus-*": [path.resolve(__dirname, '../terminus-*')],
"*": [path.resolve(__dirname, '../app/node_modules/*')],
},
},
},
},
{ test: /\.pug$/, use: ['apply-loader', 'pug-loader'] },
{ test: /\.scss$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'sass-loader'] },
{ test: /\.svg/, use: ['svg-inline-loader'] },
],
},
externals: [
'fs',
'path',
'os',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
}

Some files were not shown because too many files have changed in this diff Show More