2 import { environment } from 'src/environments/environment'
3 import { APP_BASE_HREF, registerLocaleData } from '@angular/common'
4 import { NgModule } from '@angular/core'
5 import { BrowserModule } from '@angular/platform-browser'
6 import { ServiceWorkerModule } from '@angular/service-worker'
7 import localeOc from '@app/helpers/locales/oc'
8 import { AppRoutingModule } from './app-routing.module'
9 import { AppComponent } from './app.component'
10 import { CoreModule } from './core'
11 import { EmptyComponent } from './empty.component'
12 import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header'
13 import { HighlightPipe } from './header/highlight.pipe'
14 import { LanguageChooserComponent, MenuComponent, NotificationComponent } from './menu'
15 import { ConfirmComponent } from './modal/confirm.component'
16 import { CustomModalComponent } from './modal/custom-modal.component'
17 import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component'
18 import { QuickSettingsModalComponent } from './modal/quick-settings-modal.component'
19 import { WelcomeModalComponent } from './modal/welcome-modal.component'
20 import { SharedActorImageModule } from './shared/shared-actor-image/shared-actor-image.module'
21 import { SharedFormModule } from './shared/shared-forms'
22 import { SharedGlobalIconModule } from './shared/shared-icons'
23 import { SharedInstanceModule } from './shared/shared-instance'
24 import { SharedMainModule } from './shared/shared-main'
25 import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings'
27 registerLocaleData(localeOc, 'oc')
30 bootstrap: [ AppComponent ],
37 LanguageChooserComponent,
38 QuickSettingsModalComponent,
39 NotificationComponent,
41 SearchTypeaheadComponent,
46 WelcomeModalComponent,
47 InstanceConfigWarningModalComponent,
53 ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
58 SharedUserInterfaceSettingsModule,
59 SharedGlobalIconModule,
61 SharedActorImageModule,
63 AppRoutingModule // Put it after all the module because it has the 404 route
68 provide: APP_BASE_HREF,
73 export class AppModule {}