]>
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', | |
7193ad10 C |
27 | description: 'PeerTube, a federated (ActivityPub) video streaming platform ' + |
28 | 'using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular. ' | |
758b996d | 29 | } |
df98563e | 30 | }) |
758b996d | 31 | } |
b58c69a1 | 32 | |
ab32b0fc C |
33 | @NgModule({ |
34 | bootstrap: [ AppComponent ], | |
35 | declarations: [ | |
b33f657c C |
36 | AppComponent, |
37 | ||
38 | MenuComponent, | |
f3aaa9a9 | 39 | HeaderComponent |
ab32b0fc | 40 | ], |
693b1aba | 41 | imports: [ |
ab32b0fc | 42 | BrowserModule, |
23bcf666 | 43 | |
693b1aba C |
44 | CoreModule, |
45 | SharedModule, | |
46 | ||
47 | AppRoutingModule, | |
b58c69a1 | 48 | |
693b1aba | 49 | AccountModule, |
693b1aba C |
50 | CoreModule, |
51 | LoginModule, | |
ecb4e35f | 52 | ResetPasswordModule, |
a184c71b | 53 | SignupModule, |
693b1aba | 54 | SharedModule, |
55b33946 | 55 | VideosModule, |
36f9424f | 56 | AboutModule, |
55b33946 C |
57 | |
58 | MetaModule.forRoot({ | |
59 | provide: MetaLoader, | |
60 | useFactory: (metaFactory) | |
78967fca | 61 | }) |
ab32b0fc | 62 | ], |
63c4db6d | 63 | providers: [ ] |
ab32b0fc | 64 | }) |
63c4db6d | 65 | export class AppModule {} |