mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-15 00:50:03 +00:00
lint
This commit is contained in:
parent
924a8da2f5
commit
a8eb0d8346
@ -222,7 +222,7 @@ export class AppService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const tab of this.tabs) {
|
for (const tab of this.tabs) {
|
||||||
tab.destroy(true);
|
tab.destroy(true)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ export class HostAppService {
|
|||||||
} else if (op === 'profile') {
|
} else if (op === 'profile') {
|
||||||
this.cliOpenProfile.next(argv.profileName)
|
this.cliOpenProfile.next(argv.profileName)
|
||||||
} else if (op === undefined) {
|
} else if (op === undefined) {
|
||||||
this.newWindow();
|
this.newWindow()
|
||||||
} else {
|
} else {
|
||||||
this.secondInstance.next()
|
this.secondInstance.next()
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ export class SettingsTabComponent extends BaseTabComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getRecoveryToken (): Promise<any> {
|
async getRecoveryToken (): Promise<any> {
|
||||||
return false;
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy () {
|
ngOnDestroy () {
|
||||||
|
@ -92,12 +92,12 @@ export class XTermFrontend extends Frontend {
|
|||||||
let o = window.getComputedStyle(this.xtermCore.element)
|
let o = window.getComputedStyle(this.xtermCore.element)
|
||||||
let i = r - (parseInt(o.getPropertyValue("padding-top")) + parseInt(o.getPropertyValue("padding-bottom")))
|
let i = r - (parseInt(o.getPropertyValue("padding-top")) + parseInt(o.getPropertyValue("padding-bottom")))
|
||||||
let l = n - (parseInt(o.getPropertyValue("padding-right")) + parseInt(o.getPropertyValue("padding-left"))) - this.xtermCore.viewport.scrollBarWidth
|
let l = n - (parseInt(o.getPropertyValue("padding-right")) + parseInt(o.getPropertyValue("padding-left"))) - this.xtermCore.viewport.scrollBarWidth
|
||||||
let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9;
|
let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9
|
||||||
let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17;
|
let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17
|
||||||
let cols = Math.floor(l / actualCellWidth)
|
let cols = Math.floor(l / actualCellWidth)
|
||||||
let rows = Math.floor(i / actualCellHeight);
|
let rows = Math.floor(i / actualCellHeight)
|
||||||
|
|
||||||
this.xterm.resize(cols, rows);
|
this.xterm.resize(cols, rows)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// tends to throw when element wasn't shown yet
|
// tends to throw when element wasn't shown yet
|
||||||
|
@ -157,7 +157,7 @@ export default class TerminalModule { // eslint-disable-line @typescript-eslint/
|
|||||||
})
|
})
|
||||||
if (config.store.terminal.autoOpen) {
|
if (config.store.terminal.autoOpen) {
|
||||||
|
|
||||||
let argv = require('electron').remote.process.argv;
|
let argv = require('electron').remote.process.argv
|
||||||
if (argv[0].includes('node')) {
|
if (argv[0].includes('node')) {
|
||||||
argv = argv.slice(1)
|
argv = argv.slice(1)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user