1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-21 09:31:44 +03:00
tabby/app/src/settings/index.ts

46 lines
1.3 KiB
TypeScript
Raw Normal View History

2017-03-23 23:42:00 +03:00
import { BrowserModule } from '@angular/platform-browser'
import { NgModule } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'
import { HotkeyInputComponent } from './components/hotkeyInput'
import { HotkeyDisplayComponent } from './components/hotkeyDisplay'
import { HotkeyHintComponent } from './components/hotkeyHint'
import { HotkeyInputModalComponent } from './components/hotkeyInputModal'
import { SettingsPaneComponent } from './components/settingsPane'
2017-03-25 00:24:12 +03:00
import { PluginsService, ToolbarButtonProviderType } from 'api'
import { ButtonProvider } from './buttonProvider'
2017-03-23 23:42:00 +03:00
@NgModule({
imports: [
BrowserModule,
FormsModule,
NgbModule,
],
providers: [
2017-03-25 00:24:12 +03:00
ButtonProvider,
2017-03-23 23:42:00 +03:00
],
entryComponents: [
HotkeyInputModalComponent,
SettingsPaneComponent,
],
declarations: [
HotkeyDisplayComponent,
HotkeyHintComponent,
HotkeyInputComponent,
HotkeyInputModalComponent,
SettingsPaneComponent,
],
})
class SettingsModule {
2017-03-25 00:24:12 +03:00
constructor (plugins: PluginsService, buttonProvider: ButtonProvider) {
plugins.register(ToolbarButtonProviderType, buttonProvider, 1)
2017-03-23 23:42:00 +03:00
}
}
export default SettingsModule