]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared.module.ts
99893c8b1335fae6e2c6480eb16c05eea27d70f6
[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 import { Ng2SmartTableModule } from 'ng2-smart-table';
14
15 import { AUTH_HTTP_PROVIDERS } from './auth';
16 import { RestExtractor, RestService } from './rest';
17 import { SearchComponent, SearchService } from './search';
18 import { VideoAbuseService } from './video-abuse';
19
20 @NgModule({
21 imports: [
22 CommonModule,
23 FormsModule,
24 ReactiveFormsModule,
25 HttpModule,
26 RouterModule,
27
28 DropdownModule.forRoot(),
29 ModalModule.forRoot(),
30 PaginationModule.forRoot(),
31 ProgressbarModule.forRoot(),
32
33 FileUploadModule,
34 Ng2SmartTableModule
35 ],
36
37 declarations: [
38 BytesPipe,
39 SearchComponent
40 ],
41
42 exports: [
43 CommonModule,
44 FormsModule,
45 ReactiveFormsModule,
46 HttpModule,
47 RouterModule,
48
49 DropdownModule,
50 FileUploadModule,
51 ModalModule,
52 PaginationModule,
53 ProgressbarModule,
54 Ng2SmartTableModule,
55 BytesPipe,
56
57 SearchComponent
58 ],
59
60 providers: [
61 AUTH_HTTP_PROVIDERS,
62 RestExtractor,
63 RestService,
64 SearchService,
65 VideoAbuseService
66 ]
67 })
68 export class SharedModule { }