]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared.module.ts
Client: add basic support to report video abuses
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared.module.ts
1 import { NgModule } from '@angular/core';
2 import { CommonModule } from '@angular/common';
3 import { HttpModule } from '@angular/http';
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 { DropdownModule } from 'ng2-bootstrap/dropdown';
9 import { ProgressbarModule } from 'ng2-bootstrap/progressbar';
10 import { PaginationModule } from 'ng2-bootstrap/pagination';
11 import { ModalModule } from 'ng2-bootstrap/modal';
12 import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
13
14 import { AUTH_HTTP_PROVIDERS } from './auth';
15 import { RestExtractor, RestService } from './rest';
16 import { SearchComponent, SearchService } from './search';
17 import { VideoAbuseService } from './video-abuse';
18
19 @NgModule({
20 imports: [
21 CommonModule,
22 FormsModule,
23 ReactiveFormsModule,
24 HttpModule,
25 RouterModule,
26
27 DropdownModule.forRoot(),
28 ModalModule.forRoot(),
29 PaginationModule.forRoot(),
30 ProgressbarModule.forRoot(),
31
32 FileUploadModule
33 ],
34
35 declarations: [
36 BytesPipe,
37 SearchComponent
38 ],
39
40 exports: [
41 CommonModule,
42 FormsModule,
43 ReactiveFormsModule,
44 HttpModule,
45 RouterModule,
46
47 DropdownModule,
48 FileUploadModule,
49 ModalModule,
50 PaginationModule,
51 ProgressbarModule,
52 BytesPipe,
53
54 SearchComponent
55 ],
56
57 providers: [
58 AUTH_HTTP_PROVIDERS,
59 RestExtractor,
60 RestService,
61 SearchService,
62 VideoAbuseService
63 ]
64 })
65 export class SharedModule { }