]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app.module.ts
Add follower name in admin list
[github/Chocobozzz/PeerTube.git] / client / src / app / app.module.ts
CommitLineData
63c4db6d 1import { NgModule } from '@angular/core'
df98563e 2import { BrowserModule } from '@angular/platform-browser'
ecb4e35f 3import { ResetPasswordModule } from '@app/reset-password'
ab32b0fc 4
ecb4e35f
C
5import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
6
7import { AccountModule } from './account'
b58c69a1 8
df98563e
C
9import { AppRoutingModule } from './app-routing.module'
10import { AppComponent } from './app.component'
df98563e 11import { CoreModule } from './core'
ecb4e35f 12import { HeaderComponent } from './header'
df98563e 13import { LoginModule } from './login'
ecb4e35f 14import { MenuComponent } from './menu'
df98563e 15import { SharedModule } from './shared'
ecb4e35f 16import { SignupModule } from './signup'
df98563e 17import { VideosModule } from './videos'
693b1aba 18
df98563e 19export function metaFactory (): MetaLoader {
758b996d
C
20 return new MetaStaticLoader({
21 pageTitlePositioning: PageTitlePositioning.PrependPageTitle,
22 pageTitleSeparator: ' - ',
23 applicationName: 'PeerTube',
24 defaults: {
25 title: 'PeerTube',
26 description: 'PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser'
27 }
df98563e 28 })
758b996d 29}
b58c69a1 30
ab32b0fc
C
31@NgModule({
32 bootstrap: [ AppComponent ],
33 declarations: [
b33f657c
C
34 AppComponent,
35
36 MenuComponent,
f3aaa9a9 37 HeaderComponent
ab32b0fc 38 ],
693b1aba 39 imports: [
ab32b0fc 40 BrowserModule,
23bcf666 41
693b1aba
C
42 CoreModule,
43 SharedModule,
44
45 AppRoutingModule,
b58c69a1 46
693b1aba 47 AccountModule,
693b1aba
C
48 CoreModule,
49 LoginModule,
ecb4e35f 50 ResetPasswordModule,
a184c71b 51 SignupModule,
693b1aba 52 SharedModule,
55b33946
C
53 VideosModule,
54
55 MetaModule.forRoot({
56 provide: MetaLoader,
57 useFactory: (metaFactory)
58 })
ab32b0fc 59 ],
63c4db6d 60 providers: [ ]
ab32b0fc 61})
63c4db6d 62export class AppModule {}