mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 14:00:03 +00:00
bumped Angular
This commit is contained in:
parent
19565fba2c
commit
e64126af37
@ -12,14 +12,14 @@
|
|||||||
"watch": "webpack --progress --color --watch"
|
"watch": "webpack --progress --color --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "4.0.1",
|
"@angular/animations": "4.3.0",
|
||||||
"@angular/common": "4.0.1",
|
"@angular/common": "4.3.0",
|
||||||
"@angular/compiler": "4.0.1",
|
"@angular/compiler": "4.3.0",
|
||||||
"@angular/core": "4.0.1",
|
"@angular/core": "4.3.0",
|
||||||
"@angular/forms": "4.0.1",
|
"@angular/forms": "4.3.0",
|
||||||
"@angular/platform-browser": "4.0.1",
|
"@angular/platform-browser": "4.3.0",
|
||||||
"@angular/platform-browser-dynamic": "4.0.1",
|
"@angular/platform-browser-dynamic": "4.3.0",
|
||||||
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.22",
|
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.28",
|
||||||
"devtron": "1.4.0",
|
"devtron": "1.4.0",
|
||||||
"electron-config": "0.2.1",
|
"electron-config": "0.2.1",
|
||||||
"electron-debug": "^1.0.1",
|
"electron-debug": "^1.0.1",
|
||||||
@ -29,7 +29,7 @@
|
|||||||
"mz": "^2.6.0",
|
"mz": "^2.6.0",
|
||||||
"path": "0.12.7",
|
"path": "0.12.7",
|
||||||
"rxjs": "5.3.0",
|
"rxjs": "5.3.0",
|
||||||
"zone.js": "0.8.4"
|
"zone.js": "0.8.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/mz": "0.0.31"
|
"@types/mz": "0.0.31"
|
||||||
|
@ -12,7 +12,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
|
|||||||
import { getRootModule } from './app.module'
|
import { getRootModule } from './app.module'
|
||||||
import { findPlugins, loadPlugins } from './plugins'
|
import { findPlugins, loadPlugins } from './plugins'
|
||||||
|
|
||||||
if (process.platform == 'win32') {
|
if (process.platform === 'win32') {
|
||||||
process.env.HOME = process.env.HOMEDRIVE + process.env.HOMEPATH
|
process.env.HOME = process.env.HOMEDRIVE + process.env.HOMEPATH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,37 +2,51 @@
|
|||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
"@angular/animations@4.0.1":
|
"@angular/animations@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-4.0.1.tgz#154420c8ee5c22fbaf1434b6d156150cf5218da6"
|
resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-4.3.0.tgz#56f34b84649379202ac359929b82eb0b915e9c72"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@angular/common@4.0.1":
|
"@angular/common@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/common/-/common-4.0.1.tgz#df488eada842b2d841ded750712292b18387b5b0"
|
resolved "https://registry.yarnpkg.com/@angular/common/-/common-4.3.0.tgz#13a54a6929dd52f9729b16ae446fad58fe163053"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@angular/compiler@4.0.1":
|
"@angular/compiler@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-4.0.1.tgz#15721edb148167a2d83b6f9324817e658eac8280"
|
resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-4.3.0.tgz#55503bf27a1f062f71b9495393f3311903a8fc43"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@angular/core@4.0.1":
|
"@angular/core@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/core/-/core-4.0.1.tgz#0b110a001012076ea696460ccd922707bcdf51ba"
|
resolved "https://registry.yarnpkg.com/@angular/core/-/core-4.3.0.tgz#bd2249c3de1224a7c6536c4aba728d6565329334"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@angular/forms@4.0.1":
|
"@angular/forms@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-4.0.1.tgz#b9ebdbbb8ace0f9a3bf9e53c299eafdfab1d5041"
|
resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-4.3.0.tgz#7d0c7a854737e9a30a5fd9665f8d4f56a1b91bd8"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@angular/platform-browser-dynamic@4.0.1":
|
"@angular/platform-browser-dynamic@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-4.0.1.tgz#fd5debb2d3f6474350965e71c2674e2170d7cfcb"
|
resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-4.3.0.tgz#551fb18851b27ee8f3e4b0ee25aad10bd7b312e3"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@angular/platform-browser@4.0.1":
|
"@angular/platform-browser@4.3.0":
|
||||||
version "4.0.1"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-4.0.1.tgz#4b9efbeb2fbb900de188743b988802d3aa2b33ff"
|
resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-4.3.0.tgz#02389489185185c3becf06359346100e5479c7e1"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@ng-bootstrap/ng-bootstrap@1.0.0-alpha.22":
|
"@ng-bootstrap/ng-bootstrap@^1.0.0-alpha.28":
|
||||||
version "1.0.0-alpha.22"
|
version "1.0.0-alpha.28"
|
||||||
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-alpha.22.tgz#aaad058cc39293ea6184e4b9b849f298c0b11a86"
|
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-alpha.28.tgz#30a6503bf7f94f9d3187591fb3267b59cc0cdaad"
|
||||||
|
|
||||||
"@types/mz@0.0.31":
|
"@types/mz@0.0.31":
|
||||||
version "0.0.31"
|
version "0.0.31"
|
||||||
@ -41,8 +55,8 @@
|
|||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/node@*":
|
"@types/node@*":
|
||||||
version "8.0.7"
|
version "8.0.13"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.7.tgz#fb0ad04b5b6f6eabe0372a32a8f1fbba5c130cae"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.13.tgz#530f0f9254209b0335bf5cc6387822594ef47093"
|
||||||
|
|
||||||
accessibility-developer-tools@^2.11.0:
|
accessibility-developer-tools@^2.11.0:
|
||||||
version "2.12.0"
|
version "2.12.0"
|
||||||
@ -244,12 +258,16 @@ thenify-all@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
any-promise "^1.0.0"
|
any-promise "^1.0.0"
|
||||||
|
|
||||||
|
tslib@^1.7.1:
|
||||||
|
version "1.7.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.7.1.tgz#bc8004164691923a79fe8378bbeb3da2017538ec"
|
||||||
|
|
||||||
util@^0.10.3:
|
util@^0.10.3:
|
||||||
version "0.10.3"
|
version "0.10.3"
|
||||||
resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9"
|
resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9"
|
||||||
dependencies:
|
dependencies:
|
||||||
inherits "2.0.1"
|
inherits "2.0.1"
|
||||||
|
|
||||||
zone.js@0.8.4:
|
zone.js@0.8.12:
|
||||||
version "0.8.4"
|
version "0.8.12"
|
||||||
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.4.tgz#cc40ae5a1c879601c5ebba2096b5c80f0c4c3602"
|
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.12.tgz#86ff5053c98aec291a0bf4bbac501d694a05cfbb"
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
"author": "Eugene Pankov",
|
"author": "Eugene Pankov",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.22",
|
|
||||||
"@types/js-yaml": "^3.9.0",
|
"@types/js-yaml": "^3.9.0",
|
||||||
"@types/node": "^7.0.37",
|
"@types/node": "^7.0.37",
|
||||||
"@types/webpack-env": "^1.13.0",
|
"@types/webpack-env": "^1.13.0",
|
||||||
|
@ -27,9 +27,16 @@ import { AppService, IToolbarButton, ToolbarButtonProvider } from '../api'
|
|||||||
'flex-basis': '1px',
|
'flex-basis': '1px',
|
||||||
'width': '1px',
|
'width': '1px',
|
||||||
}),
|
}),
|
||||||
animate('250ms ease-in-out')
|
animate('250ms ease-in-out', style({
|
||||||
|
'flex-basis': '200px',
|
||||||
|
'width': '200px',
|
||||||
|
}))
|
||||||
]),
|
]),
|
||||||
transition(':leave', [
|
transition(':leave', [
|
||||||
|
style({
|
||||||
|
'flex-basis': '200px',
|
||||||
|
'width': '200px',
|
||||||
|
}),
|
||||||
animate('250ms ease-in-out', style({
|
animate('250ms ease-in-out', style({
|
||||||
'flex-basis': '1px',
|
'flex-basis': '1px',
|
||||||
'width': '1px',
|
'width': '1px',
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
import { Subject, BehaviorSubject } from 'rxjs'
|
import { Subject } from 'rxjs'
|
||||||
import { ViewRef } from '@angular/core'
|
import { ViewRef } from '@angular/core'
|
||||||
|
|
||||||
export abstract class BaseTabComponent {
|
export abstract class BaseTabComponent {
|
||||||
private static lastTabID = 0
|
private static lastTabID = 0
|
||||||
id: number
|
id: number
|
||||||
title$ = new BehaviorSubject<string>(null)
|
title: string
|
||||||
|
customTitle: string
|
||||||
scrollable: boolean
|
scrollable: boolean
|
||||||
hasActivity = false
|
hasActivity = false
|
||||||
focused$ = new Subject<void>()
|
focused$ = new Subject<void>()
|
||||||
@ -33,6 +34,5 @@ export abstract class BaseTabComponent {
|
|||||||
destroy (): void {
|
destroy (): void {
|
||||||
this.focused$.complete()
|
this.focused$.complete()
|
||||||
this.blurred$.complete()
|
this.blurred$.complete()
|
||||||
this.title$.complete()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
.index {{index + 1}}
|
.index {{index + 1}}
|
||||||
.name {{tab.title$ | async}}
|
.name {{tab.title || tab.customTitle}}
|
||||||
button((click)='closeClicked.emit()') ×
|
button((click)='closeClicked.emit()') ×
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { Component, Input, Output, EventEmitter, HostBinding, HostListener } from '@angular/core'
|
import { Component, Input, Output, EventEmitter, HostBinding, HostListener } from '@angular/core'
|
||||||
import { BaseTabComponent } from '../components/baseTab.component'
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||||
|
import { BaseTabComponent } from './baseTab.component'
|
||||||
|
import { RenameTabModalComponent } from './renameTabModal.component'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'tab-header',
|
selector: 'tab-header',
|
||||||
@ -13,8 +15,17 @@ export class TabHeaderComponent {
|
|||||||
@Input() tab: BaseTabComponent
|
@Input() tab: BaseTabComponent
|
||||||
@Output() closeClicked = new EventEmitter()
|
@Output() closeClicked = new EventEmitter()
|
||||||
|
|
||||||
@HostListener('auxclick', ['$event']) onClick ($event: MouseEvent): void {
|
constructor (
|
||||||
if ($event.which == 2) {
|
private ngbModal: NgbModal,
|
||||||
|
) { }
|
||||||
|
|
||||||
|
@HostListener('dblclick') onDoubleClick (): void {
|
||||||
|
let modal = this.ngbModal.open(RenameTabModalComponent)
|
||||||
|
modal.componentInstance.value = this.tab.customTitle || this.tab.title
|
||||||
|
}
|
||||||
|
|
||||||
|
@HostListener('auxclick', ['$event']) onAuxClick ($event: MouseEvent): void {
|
||||||
|
if ($event.which === 2) {
|
||||||
this.closeClicked.emit()
|
this.closeClicked.emit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ import { StartPageComponent } from './components/startPage.component'
|
|||||||
import { TabHeaderComponent } from './components/tabHeader.component'
|
import { TabHeaderComponent } from './components/tabHeader.component'
|
||||||
import { TitleBarComponent } from './components/titleBar.component'
|
import { TitleBarComponent } from './components/titleBar.component'
|
||||||
import { WindowControlsComponent } from './components/windowControls.component'
|
import { WindowControlsComponent } from './components/windowControls.component'
|
||||||
|
import { RenameTabModalComponent } from './components/renameTabModal.component'
|
||||||
|
|
||||||
import { HotkeyProvider } from './api/hotkeyProvider'
|
import { HotkeyProvider } from './api/hotkeyProvider'
|
||||||
import { ConfigProvider } from './api/configProvider'
|
import { ConfigProvider } from './api/configProvider'
|
||||||
@ -63,7 +64,11 @@ const PROVIDERS = [
|
|||||||
TabHeaderComponent,
|
TabHeaderComponent,
|
||||||
TitleBarComponent,
|
TitleBarComponent,
|
||||||
WindowControlsComponent,
|
WindowControlsComponent,
|
||||||
|
RenameTabModalComponent,
|
||||||
],
|
],
|
||||||
|
entryComponents: [
|
||||||
|
RenameTabModalComponent,
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export default class AppModule {
|
export default class AppModule {
|
||||||
static forRoot (): ModuleWithProviders {
|
static forRoot (): ModuleWithProviders {
|
||||||
|
@ -27,7 +27,7 @@ export class SettingsTabComponent extends BaseTabComponent {
|
|||||||
) {
|
) {
|
||||||
super()
|
super()
|
||||||
this.hotkeyDescriptions = hotkeyProviders.map(x => x.hotkeys).reduce((a, b) => a.concat(b))
|
this.hotkeyDescriptions = hotkeyProviders.map(x => x.hotkeys).reduce((a, b) => a.concat(b))
|
||||||
this.title$.next('Settings')
|
this.title = 'Settings'
|
||||||
this.scrollable = true
|
this.scrollable = true
|
||||||
this.screens = this.docking.getScreens()
|
this.screens = this.docking.getScreens()
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
) {
|
) {
|
||||||
super()
|
super()
|
||||||
this.decorators = this.decorators || []
|
this.decorators = this.decorators || []
|
||||||
this.title$.next('Terminal')
|
this.title = 'Terminal'
|
||||||
this.configSubscription = config.changed$.subscribe(() => {
|
this.configSubscription = config.changed$.subscribe(() => {
|
||||||
this.configure()
|
this.configure()
|
||||||
})
|
})
|
||||||
@ -143,7 +143,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
attachHTermHandlers (hterm: any) {
|
attachHTermHandlers (hterm: any) {
|
||||||
hterm.setWindowTitle = (title) => {
|
hterm.setWindowTitle = (title) => {
|
||||||
this.zone.run(() => {
|
this.zone.run(() => {
|
||||||
this.title$.next(title)
|
this.title = title
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user