mirror of
https://github.com/Eugeny/tabby
synced 2024-12-04 18:40:16 +00:00
lint
This commit is contained in:
parent
312b365851
commit
38302622b8
5 changed files with 9 additions and 9 deletions
|
@ -86,7 +86,7 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent<SerialPr
|
|||
super.attachSessionHandlers()
|
||||
}
|
||||
|
||||
protected onSessionDestroyed() {
|
||||
protected onSessionDestroyed (): void {
|
||||
if (this.frontend) {
|
||||
// Session was closed abruptly
|
||||
this.write('\r\n' + colors.black.bgWhite(' SERIAL ') + ` session closed\r\n`)
|
||||
|
|
|
@ -148,7 +148,7 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
|
|||
return session
|
||||
}
|
||||
|
||||
protected onSessionDestroyed() {
|
||||
protected onSessionDestroyed (): void {
|
||||
if (this.frontend) {
|
||||
// Session was closed abruptly
|
||||
this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` ${this.sshSession?.profile.options.host}: session closed\r\n`)
|
||||
|
|
|
@ -42,7 +42,7 @@ export class TelnetTabComponent extends ConnectableTerminalTabComponent<TelnetPr
|
|||
super.onFrontendReady()
|
||||
}
|
||||
|
||||
protected onSessionDestroyed() {
|
||||
protected onSessionDestroyed (): void {
|
||||
if (this.frontend) {
|
||||
// Session was closed abruptly
|
||||
this.write('\r\n' + colors.black.bgWhite(' TELNET ') + ` ${this.session?.profile.options.host}: session closed\r\n`)
|
||||
|
|
|
@ -784,7 +784,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
|
|||
})
|
||||
|
||||
this.attachSessionHandler(this.session.destroyed$, () => {
|
||||
this.onSessionDestroyed()
|
||||
this.onSessionDestroyed()
|
||||
})
|
||||
|
||||
this.attachSessionHandler(this.session.oscProcessor.copyRequested$, content => {
|
||||
|
@ -796,7 +796,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
|
|||
/**
|
||||
* Method called when session is destroyed. Set the session to null
|
||||
*/
|
||||
protected onSessionDestroyed() {
|
||||
protected onSessionDestroyed (): void {
|
||||
this.setSession(null)
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
|
|||
}
|
||||
|
||||
/**
|
||||
* Initialize Connectable Session.
|
||||
* Initialize Connectable Session.
|
||||
* Set reconnectOffered to false
|
||||
*/
|
||||
async initializeSession (): Promise<void> {
|
||||
|
@ -36,7 +36,7 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
|
|||
/**
|
||||
* Method called when session is destroyed. Handle the tab behavior on session end for connectable tab
|
||||
*/
|
||||
protected onSessionDestroyed() {
|
||||
protected onSessionDestroyed (): void {
|
||||
super.onSessionDestroyed()
|
||||
|
||||
if (this.frontend) {
|
||||
|
@ -47,12 +47,12 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Offering reconnection to the user if it hasn't been done yet.
|
||||
* Set reconnectOffered to true
|
||||
*/
|
||||
offerReconnection () {
|
||||
offerReconnection (): void {
|
||||
if (!this.reconnectOffered) {
|
||||
this.reconnectOffered = true
|
||||
this.write(this.translate.instant(_('Press any key to reconnect')) + '\r\n')
|
||||
|
|
Loading…
Reference in a new issue