aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-23 14:10:17 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-06-23 16:00:49 +0200
commit67ed6552b831df66713bac9e672738796128d33f (patch)
tree59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/app.module.ts
parent0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff)
downloadPeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz
PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst
PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip
Reorganize client shared modules
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r--client/src/app/app.module.ts40
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 @@
1import 'focus-visible'
2import { APP_BASE_HREF, registerLocaleData } from '@angular/common'
1import { LOCALE_ID, NgModule, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core' 3import { LOCALE_ID, NgModule, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core'
2import { BrowserModule } from '@angular/platform-browser' 4import { BrowserModule } from '@angular/platform-browser'
3import { ServerService } from '@app/core' 5import { ServerService } from '@app/core'
6import localeOc from '@app/helpers/locales/oc'
4import { ResetPasswordModule } from '@app/reset-password' 7import { ResetPasswordModule } from '@app/reset-password'
8import { SearchModule } from '@app/search'
5import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' 9import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
6import 'focus-visible' 10import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models'
7
8import { AppRoutingModule } from './app-routing.module' 11import { AppRoutingModule } from './app-routing.module'
9import { AppComponent } from './app.component' 12import { AppComponent } from './app.component'
10import { CoreModule } from './core' 13import { CoreModule } from './core'
11import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' 14import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header'
12import { LoginModule } from './login' 15import { LoginModule } from './login'
13import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' 16import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu'
14import { SharedModule } from './shared' 17import { ConfirmComponent } from './modal/confirm.component'
18import { CustomModalComponent } from './modal/custom-modal.component'
19import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component'
20import { QuickSettingsModalComponent } from './modal/quick-settings-modal.component'
21import { WelcomeModalComponent } from './modal/welcome-modal.component'
22import { SharedFormModule } from './shared/shared-forms'
23import { SharedGlobalIconModule } from './shared/shared-icons'
24import { SharedInstanceModule } from './shared/shared-instance'
25import { SharedMainModule } from './shared/shared-main'
26import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings'
15import { VideosModule } from './videos' 27import { VideosModule } from './videos'
16import { SearchModule } from '@app/search'
17import { WelcomeModalComponent } from '@app/modal/welcome-modal.component'
18import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component'
19import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models'
20import { APP_BASE_HREF, registerLocaleData } from '@angular/common'
21import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component'
22import { CustomModalComponent } from '@app/modal/custom-modal.component'
23import localeOc from '@app/shared/locale/oc'
24 28
25registerLocaleData(localeOc, 'oc') 29registerLocaleData(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({