1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-26 03:27:23 +03:00

build fix

This commit is contained in:
Eugene Pankov 2022-01-08 16:48:18 +01:00
parent 3b321858d2
commit 91f3b78b80
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
4 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,5 @@
import { Component, Input, Injector } from '@angular/core'
import { BaseTabProcess, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild, TranslateService } from 'tabby-core'
import { BaseTabProcess, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild } from 'tabby-core'
import { BaseTerminalTabComponent } from 'tabby-terminal'
import { LocalProfile, SessionOptions } from '../api'
import { Session } from '../session'
@ -20,7 +20,6 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
constructor (
injector: Injector,
private translate: TranslateService,
private uac: UACService,
) {
super(injector)

View File

@ -2,7 +2,7 @@
import colors from 'ansi-colors'
import { Component, Injector } from '@angular/core'
import { first } from 'rxjs'
import { Platform, SelectorService, TranslateService } from 'tabby-core'
import { Platform, SelectorService } from 'tabby-core'
import { BaseTerminalTabComponent } from 'tabby-terminal'
import { SerialSession, BAUD_RATES, SerialProfile } from '../api'
@ -23,7 +23,6 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
constructor (
injector: Injector,
private selector: SelectorService,
private translate: TranslateService,
) {
super(injector)
this.enableToolbar = true

View File

@ -2,7 +2,7 @@ import colors from 'ansi-colors'
import { Component, Injector, HostListener } from '@angular/core'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { first } from 'rxjs'
import { Platform, ProfilesService, RecoveryToken, TranslateService } from 'tabby-core'
import { Platform, ProfilesService, RecoveryToken } from 'tabby-core'
import { BaseTerminalTabComponent } from 'tabby-terminal'
import { SSHService } from '../services/ssh.service'
import { KeyboardInteractivePrompt, SSHSession } from '../session/ssh'
@ -36,7 +36,6 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
private ngbModal: NgbModal,
private profilesService: ProfilesService,
private sshMultiplexer: SSHMultiplexerService,
private translate: TranslateService,
) {
super(injector)
this.sessionChanged$.subscribe(() => {

View File

@ -82,10 +82,10 @@ export class SSHSession {
private zone: NgZone
private fileProviders: FileProvidersService
private config: ConfigService
private translate: TranslateService
constructor (
private injector: Injector,
private translate: TranslateService,
public profile: SSHProfile,
) {
this.logger = injector.get(LogService).create(`ssh-${profile.options.host}-${profile.options.port}`)
@ -98,6 +98,7 @@ export class SSHSession {
this.zone = injector.get(NgZone)
this.fileProviders = injector.get(FileProvidersService)
this.config = injector.get(ConfigService)
this.translate = injector.get(TranslateService)
this.willDestroy$.subscribe(() => {
for (const port of this.forwardedPorts) {