Fix bug when quitting NSFW video
[oweals/peertube.git] / client / src / app / shared / shared.module.ts
1 import { NgModule } from '@angular/core'
2 import { HttpClientModule } from '@angular/common/http'
3 import { CommonModule } from '@angular/common'
4 import { FormsModule, ReactiveFormsModule } from '@angular/forms'
5 import { RouterModule } from '@angular/router'
6
7 import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'
8 import { KeysPipe } from 'angular-pipes/src/object/keys.pipe'
9 import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
10 import { ProgressbarModule } from 'ngx-bootstrap/progressbar'
11 import { PaginationModule } from 'ngx-bootstrap/pagination'
12 import { ModalModule } from 'ngx-bootstrap/modal'
13 import { DataTableModule } from 'primeng/components/datatable/datatable'
14 import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
15
16 import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
17 import { RestExtractor, RestService } from './rest'
18 import { SearchComponent, SearchService } from './search'
19 import { UserService } from './users'
20 import { VideoAbuseService } from './video-abuse'
21 import { VideoBlacklistService } from './video-blacklist'
22
23 @NgModule({
24   imports: [
25     CommonModule,
26     FormsModule,
27     ReactiveFormsModule,
28     RouterModule,
29     HttpClientModule,
30
31     BsDropdownModule.forRoot(),
32     ModalModule.forRoot(),
33     PaginationModule.forRoot(),
34     ProgressbarModule.forRoot(),
35
36     DataTableModule,
37     PrimeSharedModule
38   ],
39
40   declarations: [
41     BytesPipe,
42     KeysPipe,
43     SearchComponent
44   ],
45
46   exports: [
47     CommonModule,
48     FormsModule,
49     ReactiveFormsModule,
50     RouterModule,
51     HttpClientModule,
52
53     BsDropdownModule,
54     ModalModule,
55     PaginationModule,
56     ProgressbarModule,
57     DataTableModule,
58     PrimeSharedModule,
59     BytesPipe,
60     KeysPipe,
61
62     SearchComponent
63   ],
64
65   providers: [
66     AUTH_INTERCEPTOR_PROVIDER,
67     RestExtractor,
68     RestService,
69     SearchService,
70     VideoAbuseService,
71     VideoBlacklistService,
72     UserService
73   ]
74 })
75 export class SharedModule { }