1
0
Fork 0
peertube/client/src/app/app.module.ts

63 lines
1.5 KiB
TypeScript
Raw Normal View History

2017-12-11 16:36:46 +00:00
import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
2018-01-30 12:27:07 +00:00
import { ResetPasswordModule } from '@app/reset-password'
2016-09-06 20:40:57 +00:00
2018-01-30 12:27:07 +00:00
import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
import { AccountModule } from './account'
2016-11-04 16:25:26 +00:00
import { AppRoutingModule } from './app-routing.module'
import { AppComponent } from './app.component'
import { CoreModule } from './core'
2018-01-30 12:27:07 +00:00
import { HeaderComponent } from './header'
import { LoginModule } from './login'
2018-01-30 12:27:07 +00:00
import { MenuComponent } from './menu'
import { SharedModule } from './shared'
2018-01-30 12:27:07 +00:00
import { SignupModule } from './signup'
import { VideosModule } from './videos'
2016-11-20 16:18:15 +00:00
export function metaFactory (): MetaLoader {
2017-03-10 09:33:36 +00: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-03-10 09:33:36 +00:00
}
2016-11-04 16:25:26 +00:00
2016-09-06 20:40:57 +00:00
@NgModule({
bootstrap: [ AppComponent ],
declarations: [
2017-12-01 08:20:19 +00:00
AppComponent,
MenuComponent,
2017-12-05 16:46:33 +00:00
HeaderComponent
2016-09-06 20:40:57 +00:00
],
2016-11-20 16:18:15 +00:00
imports: [
2016-09-06 20:40:57 +00:00
BrowserModule,
2016-09-09 20:23:41 +00:00
2016-11-20 16:18:15 +00:00
CoreModule,
SharedModule,
AppRoutingModule,
2016-11-04 16:25:26 +00:00
2016-11-20 16:18:15 +00:00
AccountModule,
CoreModule,
LoginModule,
2018-01-30 12:27:07 +00:00
ResetPasswordModule,
2017-04-10 18:29:33 +00:00
SignupModule,
2016-11-20 16:18:15 +00:00
SharedModule,
2017-03-12 17:40:05 +00:00
VideosModule,
MetaModule.forRoot({
provide: MetaLoader,
useFactory: (metaFactory)
})
2016-09-06 20:40:57 +00:00
],
2017-12-11 16:36:46 +00:00
providers: [ ]
2016-09-06 20:40:57 +00:00
})
2017-12-11 16:36:46 +00:00
export class AppModule {}