]>
Commit | Line | Data |
---|---|---|
df98563e C |
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' | |
d15ab38a | 6 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations' |
693b1aba | 7 | |
df98563e C |
8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe' |
9 | import { KeysPipe } from 'angular-pipes/src/object/keys.pipe' | |
10 | import { BsDropdownModule } from 'ngx-bootstrap/dropdown' | |
11 | import { ProgressbarModule } from 'ngx-bootstrap/progressbar' | |
12 | import { PaginationModule } from 'ngx-bootstrap/pagination' | |
13 | import { ModalModule } from 'ngx-bootstrap/modal' | |
14 | import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload' | |
15 | import { Ng2SmartTableModule } from 'ng2-smart-table' | |
693b1aba | 16 | |
df98563e C |
17 | import { AUTH_HTTP_PROVIDERS } from './auth' |
18 | import { RestExtractor, RestService } from './rest' | |
19 | import { SearchComponent, SearchService } from './search' | |
20 | import { UserService } from './users' | |
21 | import { VideoAbuseService } from './video-abuse' | |
693b1aba C |
22 | |
23 | @NgModule({ | |
24 | imports: [ | |
25 | CommonModule, | |
26 | FormsModule, | |
27 | ReactiveFormsModule, | |
28 | HttpModule, | |
29 | RouterModule, | |
d15ab38a | 30 | BrowserAnimationsModule, |
693b1aba | 31 | |
ad42bea3 | 32 | BsDropdownModule.forRoot(), |
d396a937 C |
33 | ModalModule.forRoot(), |
34 | PaginationModule.forRoot(), | |
35 | ProgressbarModule.forRoot(), | |
36 | ||
28798b5d C |
37 | FileUploadModule, |
38 | Ng2SmartTableModule | |
693b1aba C |
39 | ], |
40 | ||
41 | declarations: [ | |
42 | BytesPipe, | |
99fdec46 | 43 | KeysPipe, |
693b1aba C |
44 | SearchComponent |
45 | ], | |
46 | ||
47 | exports: [ | |
48 | CommonModule, | |
49 | FormsModule, | |
50 | ReactiveFormsModule, | |
51 | HttpModule, | |
52 | RouterModule, | |
53 | ||
ad42bea3 | 54 | BsDropdownModule, |
693b1aba C |
55 | FileUploadModule, |
56 | ModalModule, | |
57 | PaginationModule, | |
58 | ProgressbarModule, | |
28798b5d | 59 | Ng2SmartTableModule, |
693b1aba | 60 | BytesPipe, |
99fdec46 | 61 | KeysPipe, |
693b1aba C |
62 | |
63 | SearchComponent | |
64 | ], | |
65 | ||
66 | providers: [ | |
67 | AUTH_HTTP_PROVIDERS, | |
68 | RestExtractor, | |
69 | RestService, | |
11ac88de | 70 | SearchService, |
e2a2d6c8 C |
71 | VideoAbuseService, |
72 | UserService | |
693b1aba C |
73 | ] |
74 | }) | |
75 | export class SharedModule { } |