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