]>
Commit | Line | Data |
---|---|---|
63c4db6d | 1 | import { NgModule } from '@angular/core' |
df98563e | 2 | import { BrowserModule } from '@angular/platform-browser' |
ab32b0fc | 3 | |
8b13c289 | 4 | import { MetaModule, MetaLoader, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
b58c69a1 | 5 | |
df98563e C |
6 | import { AppRoutingModule } from './app-routing.module' |
7 | import { AppComponent } from './app.component' | |
23bcf666 | 8 | |
df98563e C |
9 | import { AccountModule } from './account' |
10 | import { CoreModule } from './core' | |
11 | import { LoginModule } from './login' | |
12 | import { SignupModule } from './signup' | |
13 | import { SharedModule } from './shared' | |
14 | import { VideosModule } from './videos' | |
04e0fc48 | 15 | import { MenuComponent } from './menu' |
f3aaa9a9 | 16 | import { HeaderComponent } from './header' |
693b1aba | 17 | |
df98563e | 18 | export function metaFactory (): MetaLoader { |
758b996d C |
19 | return new MetaStaticLoader({ |
20 | pageTitlePositioning: PageTitlePositioning.PrependPageTitle, | |
21 | pageTitleSeparator: ' - ', | |
22 | applicationName: 'PeerTube', | |
23 | defaults: { | |
24 | title: 'PeerTube', | |
25 | description: 'PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser' | |
26 | } | |
df98563e | 27 | }) |
758b996d | 28 | } |
b58c69a1 | 29 | |
ab32b0fc C |
30 | @NgModule({ |
31 | bootstrap: [ AppComponent ], | |
32 | declarations: [ | |
b33f657c C |
33 | AppComponent, |
34 | ||
35 | MenuComponent, | |
f3aaa9a9 | 36 | HeaderComponent |
ab32b0fc | 37 | ], |
693b1aba | 38 | imports: [ |
ab32b0fc | 39 | BrowserModule, |
23bcf666 | 40 | |
693b1aba C |
41 | CoreModule, |
42 | SharedModule, | |
43 | ||
44 | AppRoutingModule, | |
b58c69a1 | 45 | |
693b1aba | 46 | AccountModule, |
693b1aba C |
47 | CoreModule, |
48 | LoginModule, | |
a184c71b | 49 | SignupModule, |
693b1aba | 50 | SharedModule, |
55b33946 C |
51 | VideosModule, |
52 | ||
53 | MetaModule.forRoot({ | |
54 | provide: MetaLoader, | |
55 | useFactory: (metaFactory) | |
56 | }) | |
ab32b0fc | 57 | ], |
63c4db6d | 58 | providers: [ ] |
ab32b0fc | 59 | }) |
63c4db6d | 60 | export class AppModule {} |