]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app.module.ts
Better peertube icons
[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',
27 description: 'PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser'
28 }
df98563e 29 })
758b996d 30}
b58c69a1 31
ab32b0fc
C
32@NgModule({
33 bootstrap: [ AppComponent ],
34 declarations: [
b33f657c
C
35 AppComponent,
36
37 MenuComponent,
f3aaa9a9 38 HeaderComponent
ab32b0fc 39 ],
693b1aba 40 imports: [
ab32b0fc 41 BrowserModule,
23bcf666 42
693b1aba
C
43 CoreModule,
44 SharedModule,
45
46 AppRoutingModule,
b58c69a1 47
693b1aba 48 AccountModule,
693b1aba
C
49 CoreModule,
50 LoginModule,
ecb4e35f 51 ResetPasswordModule,
a184c71b 52 SignupModule,
693b1aba 53 SharedModule,
55b33946 54 VideosModule,
36f9424f 55 AboutModule,
55b33946
C
56
57 MetaModule.forRoot({
58 provide: MetaLoader,
59 useFactory: (metaFactory)
60 })
ab32b0fc 61 ],
63c4db6d 62 providers: [ ]
ab32b0fc 63})
63c4db6d 64export class AppModule {}