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