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