]>
Commit | Line | Data |
---|---|---|
1 | import { NgModule } from '@angular/core' | |
2 | import { BrowserModule } from '@angular/platform-browser' | |
3 | import { AboutModule } from '@app/about' | |
4 | import { ResetPasswordModule } from '@app/reset-password' | |
5 | ||
6 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | |
7 | ||
8 | import { AccountModule } from './account' | |
9 | ||
10 | import { AppRoutingModule } from './app-routing.module' | |
11 | import { AppComponent } from './app.component' | |
12 | import { CoreModule } from './core' | |
13 | import { HeaderComponent } from './header' | |
14 | import { LoginModule } from './login' | |
15 | import { MenuComponent } from './menu' | |
16 | import { SharedModule } from './shared' | |
17 | import { SignupModule } from './signup' | |
18 | import { VideosModule } from './videos' | |
19 | ||
20 | export function metaFactory (): MetaLoader { | |
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 | } | |
29 | }) | |
30 | } | |
31 | ||
32 | @NgModule({ | |
33 | bootstrap: [ AppComponent ], | |
34 | declarations: [ | |
35 | AppComponent, | |
36 | ||
37 | MenuComponent, | |
38 | HeaderComponent | |
39 | ], | |
40 | imports: [ | |
41 | BrowserModule, | |
42 | ||
43 | CoreModule, | |
44 | SharedModule, | |
45 | ||
46 | AppRoutingModule, | |
47 | ||
48 | AccountModule, | |
49 | CoreModule, | |
50 | LoginModule, | |
51 | ResetPasswordModule, | |
52 | SignupModule, | |
53 | SharedModule, | |
54 | VideosModule, | |
55 | AboutModule, | |
56 | ||
57 | MetaModule.forRoot({ | |
58 | provide: MetaLoader, | |
59 | useFactory: (metaFactory) | |
60 | }) | |
61 | ], | |
62 | providers: [ ] | |
63 | }) | |
64 | export class AppModule {} |