]>
Commit | Line | Data |
---|---|---|
1 | import 'focus-visible' | |
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' | |
26 | ||
27 | registerLocaleData(localeOc, 'oc') | |
28 | ||
29 | @NgModule({ | |
30 | bootstrap: [ AppComponent ], | |
31 | ||
32 | declarations: [ | |
33 | AppComponent, | |
34 | EmptyComponent, | |
35 | ||
36 | MenuComponent, | |
37 | LanguageChooserComponent, | |
38 | QuickSettingsModalComponent, | |
39 | NotificationComponent, | |
40 | HeaderComponent, | |
41 | SearchTypeaheadComponent, | |
42 | SuggestionComponent, | |
43 | HighlightPipe, | |
44 | ||
45 | CustomModalComponent, | |
46 | WelcomeModalComponent, | |
47 | InstanceConfigWarningModalComponent, | |
48 | ConfirmComponent | |
49 | ], | |
50 | ||
51 | imports: [ | |
52 | BrowserModule, | |
53 | ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), | |
54 | ||
55 | CoreModule, | |
56 | SharedMainModule, | |
57 | SharedFormModule, | |
58 | SharedUserInterfaceSettingsModule, | |
59 | SharedGlobalIconModule, | |
60 | SharedInstanceModule, | |
61 | SharedActorImageModule, | |
62 | ||
63 | AppRoutingModule // Put it after all the module because it has the 404 route | |
64 | ], | |
65 | ||
66 | providers: [ | |
67 | { | |
68 | provide: APP_BASE_HREF, | |
69 | useValue: '/' | |
70 | } | |
71 | ] | |
72 | }) | |
73 | export class AppModule {} |