]>
Commit | Line | Data |
---|---|---|
63c4db6d | 1 | import { NgModule } from '@angular/core' |
df98563e | 2 | import { BrowserModule } from '@angular/platform-browser' |
36f9424f | 3 | import { AboutModule } from '@app/about' |
ecb4e35f | 4 | import { ResetPasswordModule } from '@app/reset-password' |
ab32b0fc | 5 | |
ecb4e35f C |
6 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
7 | ||
8 | import { AccountModule } from './account' | |
b58c69a1 | 9 | |
df98563e C |
10 | import { AppRoutingModule } from './app-routing.module' |
11 | import { AppComponent } from './app.component' | |
df98563e | 12 | import { CoreModule } from './core' |
ecb4e35f | 13 | import { HeaderComponent } from './header' |
df98563e | 14 | import { LoginModule } from './login' |
ecb4e35f | 15 | import { MenuComponent } from './menu' |
df98563e | 16 | import { SharedModule } from './shared' |
ecb4e35f | 17 | import { SignupModule } from './signup' |
df98563e | 18 | import { VideosModule } from './videos' |
693b1aba | 19 | |
df98563e | 20 | export 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 | 64 | export class AppModule {} |