diff options
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 89332ec5f..7fbc6463b 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -1,31 +1,36 @@ | |||
1 | import 'focus-visible' | ||
2 | import { APP_BASE_HREF, registerLocaleData } from '@angular/common' | ||
1 | import { LOCALE_ID, NgModule, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core' | 3 | import { LOCALE_ID, NgModule, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core' |
2 | import { BrowserModule } from '@angular/platform-browser' | 4 | import { BrowserModule } from '@angular/platform-browser' |
3 | import { ServerService } from '@app/core' | 5 | import { ServerService } from '@app/core' |
6 | import localeOc from '@app/helpers/locales/oc' | ||
4 | import { ResetPasswordModule } from '@app/reset-password' | 7 | import { ResetPasswordModule } from '@app/reset-password' |
8 | import { SearchModule } from '@app/search' | ||
5 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | 9 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
6 | import 'focus-visible' | 10 | import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' |
7 | |||
8 | import { AppRoutingModule } from './app-routing.module' | 11 | import { AppRoutingModule } from './app-routing.module' |
9 | import { AppComponent } from './app.component' | 12 | import { AppComponent } from './app.component' |
10 | import { CoreModule } from './core' | 13 | import { CoreModule } from './core' |
11 | import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' | 14 | import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' |
12 | import { LoginModule } from './login' | 15 | import { LoginModule } from './login' |
13 | import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' | 16 | import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' |
14 | import { SharedModule } from './shared' | 17 | import { ConfirmComponent } from './modal/confirm.component' |
18 | import { CustomModalComponent } from './modal/custom-modal.component' | ||
19 | import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component' | ||
20 | import { QuickSettingsModalComponent } from './modal/quick-settings-modal.component' | ||
21 | import { WelcomeModalComponent } from './modal/welcome-modal.component' | ||
22 | import { SharedFormModule } from './shared/shared-forms' | ||
23 | import { SharedGlobalIconModule } from './shared/shared-icons' | ||
24 | import { SharedInstanceModule } from './shared/shared-instance' | ||
25 | import { SharedMainModule } from './shared/shared-main' | ||
26 | import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' | ||
15 | import { VideosModule } from './videos' | 27 | import { VideosModule } from './videos' |
16 | import { SearchModule } from '@app/search' | ||
17 | import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' | ||
18 | import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' | ||
19 | import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' | ||
20 | import { APP_BASE_HREF, registerLocaleData } from '@angular/common' | ||
21 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' | ||
22 | import { CustomModalComponent } from '@app/modal/custom-modal.component' | ||
23 | import localeOc from '@app/shared/locale/oc' | ||
24 | 28 | ||
25 | registerLocaleData(localeOc, 'oc') | 29 | registerLocaleData(localeOc, 'oc') |
26 | 30 | ||
27 | @NgModule({ | 31 | @NgModule({ |
28 | bootstrap: [ AppComponent ], | 32 | bootstrap: [ AppComponent ], |
33 | |||
29 | declarations: [ | 34 | declarations: [ |
30 | AppComponent, | 35 | AppComponent, |
31 | 36 | ||
@@ -39,19 +44,24 @@ registerLocaleData(localeOc, 'oc') | |||
39 | 44 | ||
40 | CustomModalComponent, | 45 | CustomModalComponent, |
41 | WelcomeModalComponent, | 46 | WelcomeModalComponent, |
42 | InstanceConfigWarningModalComponent | 47 | InstanceConfigWarningModalComponent, |
48 | ConfirmComponent | ||
43 | ], | 49 | ], |
50 | |||
44 | imports: [ | 51 | imports: [ |
45 | BrowserModule, | 52 | BrowserModule, |
46 | 53 | ||
47 | CoreModule, | 54 | CoreModule, |
48 | SharedModule, | 55 | SharedMainModule, |
56 | SharedFormModule, | ||
57 | SharedUserInterfaceSettingsModule, | ||
58 | SharedGlobalIconModule, | ||
59 | SharedInstanceModule, | ||
49 | 60 | ||
50 | CoreModule, | ||
51 | LoginModule, | 61 | LoginModule, |
52 | ResetPasswordModule, | 62 | ResetPasswordModule, |
53 | SearchModule, | 63 | SearchModule, |
54 | SharedModule, | 64 | |
55 | VideosModule, | 65 | VideosModule, |
56 | 66 | ||
57 | MetaModule.forRoot({ | 67 | MetaModule.forRoot({ |