2017-12-11 17:36:46 +01:00
|
|
|
import { NgModule } from '@angular/core'
|
2017-06-16 14:32:15 +02:00
|
|
|
import { BrowserModule } from '@angular/platform-browser'
|
2016-09-06 22:40:57 +02:00
|
|
|
|
2017-07-06 17:43:58 +02:00
|
|
|
import { MetaModule, MetaLoader, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
|
2016-11-04 17:25:26 +01:00
|
|
|
|
2017-06-16 14:32:15 +02:00
|
|
|
import { AppRoutingModule } from './app-routing.module'
|
|
|
|
import { AppComponent } from './app.component'
|
2016-09-09 22:23:41 +02:00
|
|
|
|
2017-06-16 14:32:15 +02:00
|
|
|
import { AccountModule } from './account'
|
|
|
|
import { CoreModule } from './core'
|
|
|
|
import { LoginModule } from './login'
|
|
|
|
import { SignupModule } from './signup'
|
|
|
|
import { SharedModule } from './shared'
|
|
|
|
import { VideosModule } from './videos'
|
2017-12-08 10:41:49 +01:00
|
|
|
import { MenuComponent } from './menu'
|
2017-12-05 17:46:33 +01:00
|
|
|
import { HeaderComponent } from './header'
|
2016-11-20 17:18:15 +01:00
|
|
|
|
2017-06-16 14:32:15 +02:00
|
|
|
export function metaFactory (): MetaLoader {
|
2017-03-10 10:33:36 +01:00
|
|
|
return new MetaStaticLoader({
|
|
|
|
pageTitlePositioning: PageTitlePositioning.PrependPageTitle,
|
|
|
|
pageTitleSeparator: ' - ',
|
|
|
|
applicationName: 'PeerTube',
|
|
|
|
defaults: {
|
|
|
|
title: 'PeerTube',
|
|
|
|
description: 'PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser'
|
|
|
|
}
|
2017-06-16 14:32:15 +02:00
|
|
|
})
|
2017-03-10 10:33:36 +01:00
|
|
|
}
|
2016-11-04 17:25:26 +01:00
|
|
|
|
2016-09-06 22:40:57 +02:00
|
|
|
@NgModule({
|
|
|
|
bootstrap: [ AppComponent ],
|
|
|
|
declarations: [
|
2017-12-01 09:20:19 +01:00
|
|
|
AppComponent,
|
|
|
|
|
|
|
|
MenuComponent,
|
2017-12-05 17:46:33 +01:00
|
|
|
HeaderComponent
|
2016-09-06 22:40:57 +02:00
|
|
|
],
|
2016-11-20 17:18:15 +01:00
|
|
|
imports: [
|
2016-09-06 22:40:57 +02:00
|
|
|
BrowserModule,
|
2016-09-09 22:23:41 +02:00
|
|
|
|
2016-11-20 17:18:15 +01:00
|
|
|
CoreModule,
|
|
|
|
SharedModule,
|
|
|
|
|
|
|
|
AppRoutingModule,
|
2016-11-04 17:25:26 +01:00
|
|
|
|
2016-11-20 17:18:15 +01:00
|
|
|
AccountModule,
|
|
|
|
CoreModule,
|
|
|
|
LoginModule,
|
2017-04-10 20:29:33 +02:00
|
|
|
SignupModule,
|
2016-11-20 17:18:15 +01:00
|
|
|
SharedModule,
|
2017-03-12 18:40:05 +01:00
|
|
|
VideosModule,
|
|
|
|
|
|
|
|
MetaModule.forRoot({
|
|
|
|
provide: MetaLoader,
|
|
|
|
useFactory: (metaFactory)
|
|
|
|
})
|
2016-09-06 22:40:57 +02:00
|
|
|
],
|
2017-12-11 17:36:46 +01:00
|
|
|
providers: [ ]
|
2016-09-06 22:40:57 +02:00
|
|
|
})
|
2017-12-11 17:36:46 +01:00
|
|
|
export class AppModule {}
|