tabby/tabby-settings/src/settings.ts

72 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-04-05 10:32:37 +00:00
import { Injectable } from '@angular/core'
import { SettingsTabProvider } from './api'
import { HotkeySettingsTabComponent } from './components/hotkeySettingsTab.component'
import { WindowSettingsTabComponent } from './components/windowSettingsTab.component'
2021-06-05 15:38:11 +00:00
import { VaultSettingsTabComponent } from './components/vaultSettingsTab.component'
2021-07-24 14:31:32 +00:00
import { ConfigSyncSettingsTabComponent } from './components/configSyncSettingsTab.component'
import { ProfilesSettingsTabComponent } from './components/profilesSettingsTab.component'
2021-04-05 10:32:37 +00:00
/** @hidden */
@Injectable()
export class HotkeySettingsTabProvider extends SettingsTabProvider {
id = 'hotkeys'
icon = 'keyboard'
title = 'Hotkeys'
getComponentType (): any {
return HotkeySettingsTabComponent
}
}
/** @hidden */
@Injectable()
export class WindowSettingsTabProvider extends SettingsTabProvider {
id = 'window'
icon = 'window-maximize'
title = 'Window'
getComponentType (): any {
return WindowSettingsTabComponent
}
}
2021-06-05 15:38:11 +00:00
/** @hidden */
@Injectable()
export class VaultSettingsTabProvider extends SettingsTabProvider {
id = 'vault'
icon = 'key'
title = 'Vault'
getComponentType (): any {
return VaultSettingsTabComponent
}
}
/** @hidden */
@Injectable()
export class ProfilesSettingsTabProvider extends SettingsTabProvider {
id = 'profiles'
icon = 'window-restore'
2021-10-24 20:50:21 +00:00
title = 'Profiles & connections'
prioritized = true
getComponentType (): any {
return ProfilesSettingsTabComponent
}
}
2021-07-24 14:31:32 +00:00
/** @hidden */
@Injectable()
export class ConfigSyncSettingsTabProvider extends SettingsTabProvider {
id = 'config-sync'
icon = 'cloud'
title = 'Config sync'
getComponentType (): any {
return ConfigSyncSettingsTabComponent
}
}