mirror of
https://github.com/Eugeny/tabby
synced 2024-12-04 18:40:16 +00:00
lint
This commit is contained in:
parent
82a262026f
commit
a4136bec6e
3 changed files with 9 additions and 9 deletions
|
@ -205,7 +205,7 @@ export class ConfigService {
|
|||
// Scrub undefined values
|
||||
let cleanStore = JSON.parse(JSON.stringify(this._store))
|
||||
cleanStore = await this.maybeEncryptConfig(cleanStore)
|
||||
await this.platform.saveConfig(yaml.dump(cleanStore, {skipInvalid: true}))
|
||||
await this.platform.saveConfig(yaml.dump(cleanStore, { skipInvalid: true }))
|
||||
this.emitChange()
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@ export class ConfigService {
|
|||
* Reads config YAML as string
|
||||
*/
|
||||
readRaw (): string {
|
||||
return yaml.dump(this._store, {skipInvalid: true})
|
||||
return yaml.dump(this._store, { skipInvalid: true })
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -97,7 +97,7 @@ export class ConfigSyncService {
|
|||
data[part] = remoteData[part]
|
||||
}
|
||||
}
|
||||
const content = yaml.dump(data, {skipInvalid: true})
|
||||
const content = yaml.dump(data, { skipInvalid: true })
|
||||
const result = await this.updateConfig(this.config.store.configSync.configID, {
|
||||
content,
|
||||
last_used_with_version: this.platform.getAppVersion(),
|
||||
|
@ -154,7 +154,7 @@ export class ConfigSyncService {
|
|||
}
|
||||
|
||||
private async writeConfigDataFromSync (data: any) {
|
||||
await this.platform.saveConfig(yaml.dump(data, {skipInvalid: true}))
|
||||
await this.platform.saveConfig(yaml.dump(data, { skipInvalid: true }))
|
||||
await this.config.load()
|
||||
await this.config.save()
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Injectable, Optional, Inject } from '@angular/core'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { BaseTabComponent, TabContextMenuItemProvider, NotificationsService, MenuItemOptions, TranslateService, SplitTabComponent, PromptModalComponent, ConfigService, PartialProfile, Profile} from 'tabby-core'
|
||||
import { BaseTabComponent, TabContextMenuItemProvider, NotificationsService, MenuItemOptions, TranslateService, SplitTabComponent, PromptModalComponent, ConfigService, PartialProfile, Profile } from 'tabby-core'
|
||||
import { BaseTerminalTabComponent } from './api/baseTerminalTab.component'
|
||||
import { TerminalContextMenuItemProvider } from './api/contextMenuProvider'
|
||||
import { MultifocusService } from './services/multifocus.service'
|
||||
|
@ -180,8 +180,8 @@ export class SaveAsProfileContextMenu extends TabContextMenuItemProvider {
|
|||
return
|
||||
}
|
||||
|
||||
let options = {
|
||||
...tab.profile.options
|
||||
const options = {
|
||||
...tab.profile.options,
|
||||
}
|
||||
|
||||
const cwd = await tab.session?.getWorkingDirectory() ?? tab.profile.options.cwd
|
||||
|
@ -192,7 +192,7 @@ export class SaveAsProfileContextMenu extends TabContextMenuItemProvider {
|
|||
const profile: PartialProfile<Profile> = {
|
||||
type: tab.profile.type,
|
||||
name,
|
||||
options
|
||||
options,
|
||||
}
|
||||
|
||||
profile.id = `${profile.type}:custom:${slugify(name)}:${uuidv4()}`
|
||||
|
@ -215,4 +215,4 @@ export class SaveAsProfileContextMenu extends TabContextMenuItemProvider {
|
|||
|
||||
return []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue