1
0
Fork 0
peertube/client/src/app/app.module.ts

74 lines
2.5 KiB
TypeScript
Raw Normal View History

2020-06-23 12:10:17 +00:00
import 'focus-visible'
2021-01-18 10:16:37 +00:00
import { environment } from 'src/environments/environment'
2020-06-23 12:10:17 +00:00
import { APP_BASE_HREF, registerLocaleData } from '@angular/common'
2020-11-27 14:31:09 +00:00
import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
2021-01-18 10:16:37 +00:00
import { ServiceWorkerModule } from '@angular/service-worker'
2020-06-23 12:10:17 +00:00
import localeOc from '@app/helpers/locales/oc'
import { AppRoutingModule } from './app-routing.module'
import { AppComponent } from './app.component'
import { CoreModule } from './core'
2020-06-24 13:29:08 +00:00
import { EmptyComponent } from './empty.component'
2020-05-29 14:16:24 +00:00
import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header'
2020-06-23 12:49:20 +00:00
import { HighlightPipe } from './header/highlight.pipe'
2021-01-18 10:16:37 +00:00
import { LanguageChooserComponent, MenuComponent, NotificationComponent } from './menu'
2020-06-23 12:10:17 +00:00
import { ConfirmComponent } from './modal/confirm.component'
import { CustomModalComponent } from './modal/custom-modal.component'
import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component'
import { QuickSettingsModalComponent } from './modal/quick-settings-modal.component'
import { WelcomeModalComponent } from './modal/welcome-modal.component'
2021-05-14 14:12:45 +00:00
import { SharedActorImageModule } from './shared/shared-actor-image/shared-actor-image.module'
2020-06-23 12:10:17 +00:00
import { SharedFormModule } from './shared/shared-forms'
import { SharedGlobalIconModule } from './shared/shared-icons'
import { SharedInstanceModule } from './shared/shared-instance'
import { SharedMainModule } from './shared/shared-main'
import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings'
registerLocaleData(localeOc, 'oc')
2016-11-20 16:18:15 +00:00
2016-09-06 20:40:57 +00:00
@NgModule({
bootstrap: [ AppComponent ],
2020-06-23 12:10:17 +00:00
2016-09-06 20:40:57 +00:00
declarations: [
2017-12-01 08:20:19 +00:00
AppComponent,
2020-06-24 13:29:08 +00:00
EmptyComponent,
2017-12-01 08:20:19 +00:00
MenuComponent,
2018-06-28 11:59:48 +00:00
LanguageChooserComponent,
QuickSettingsModalComponent,
NotificationComponent,
2019-08-28 12:40:06 +00:00
HeaderComponent,
2020-01-20 14:12:51 +00:00
SearchTypeaheadComponent,
SuggestionComponent,
2020-06-23 12:49:20 +00:00
HighlightPipe,
2019-08-28 12:40:06 +00:00
CustomModalComponent,
2019-08-28 12:40:06 +00:00
WelcomeModalComponent,
2020-06-23 12:10:17 +00:00
InstanceConfigWarningModalComponent,
ConfirmComponent
2016-09-06 20:40:57 +00:00
],
2020-06-23 12:10:17 +00:00
2016-11-20 16:18:15 +00:00
imports: [
2016-09-06 20:40:57 +00:00
BrowserModule,
2021-01-18 10:16:37 +00:00
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
2016-09-09 20:23:41 +00:00
2016-11-20 16:18:15 +00:00
CoreModule,
2020-06-23 12:10:17 +00:00
SharedMainModule,
SharedFormModule,
SharedUserInterfaceSettingsModule,
SharedGlobalIconModule,
SharedInstanceModule,
2021-04-28 09:49:34 +00:00
SharedActorImageModule,
2016-11-20 16:18:15 +00:00
2018-05-31 12:43:48 +00:00
AppRoutingModule // Put it after all the module because it has the 404 route
2016-09-06 20:40:57 +00:00
],
2020-02-07 14:51:19 +00:00
2018-05-31 16:12:15 +00:00
providers: [
{
provide: APP_BASE_HREF,
useValue: '/'
}
2018-05-31 16:12:15 +00:00
]
2016-09-06 20:40:57 +00:00
})
2017-12-11 16:36:46 +00:00
export class AppModule {}