mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 14:04:56 +00:00
use providedIn
This commit is contained in:
@@ -11,8 +11,6 @@ import { EditConnectionModalComponent } from './components/editConnectionModal.c
|
||||
import { SSHModalComponent } from './components/sshModal.component'
|
||||
import { PromptModalComponent } from './components/promptModal.component'
|
||||
import { SSHSettingsTabComponent } from './components/sshSettingsTab.component'
|
||||
import { SSHService } from './services/ssh.service'
|
||||
import { PasswordStorageService } from './services/passwordStorage.service'
|
||||
|
||||
import { ButtonProvider } from './buttonProvider'
|
||||
import { SSHConfigProvider } from './config'
|
||||
@@ -27,8 +25,6 @@ import { SSHSettingsTabProvider } from './settings'
|
||||
TerminusCoreModule,
|
||||
],
|
||||
providers: [
|
||||
PasswordStorageService,
|
||||
SSHService,
|
||||
{ provide: ToolbarButtonProvider, useClass: ButtonProvider, multi: true },
|
||||
{ provide: ConfigProvider, useClass: SSHConfigProvider, multi: true },
|
||||
{ provide: SettingsTabProvider, useClass: SSHSettingsTabProvider, multi: true },
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import { Injectable, NgZone } from '@angular/core'
|
||||
import { SSHConnection } from '../api'
|
||||
import SSHModule from '..'
|
||||
|
||||
let xkeychain
|
||||
let wincredmgr
|
||||
@@ -13,7 +14,7 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
@Injectable({ providedIn: SSHModule })
|
||||
export class PasswordStorageService {
|
||||
constructor (
|
||||
private zone: NgZone,
|
||||
|
@@ -9,6 +9,7 @@ import { TerminalTabComponent } from 'terminus-terminal'
|
||||
import { SSHConnection, SSHSession } from '../api'
|
||||
import { PromptModalComponent } from '../components/promptModal.component'
|
||||
import { PasswordStorageService } from './passwordStorage.service'
|
||||
import SSHModule from '..'
|
||||
const { SSH2Stream } = require('ssh2-streams')
|
||||
|
||||
let windowsProcessTree
|
||||
@@ -17,7 +18,7 @@ try {
|
||||
} catch (e) {
|
||||
} // tslint:disable-line
|
||||
|
||||
@Injectable()
|
||||
@Injectable({ providedIn: SSHModule })
|
||||
export class SSHService {
|
||||
private logger: Logger
|
||||
|
||||
|
Reference in New Issue
Block a user