]>
Commit | Line | Data |
---|---|---|
1 | import { CommonModule } from '@angular/common' | |
2 | import { HttpClientModule } from '@angular/common/http' | |
3 | import { NgModule } from '@angular/core' | |
4 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | |
5 | import { RouterModule } from '@angular/router' | |
6 | ||
7 | import { BsDropdownModule } from 'ngx-bootstrap/dropdown' | |
8 | import { ModalModule } from 'ngx-bootstrap/modal' | |
9 | import { ProgressbarModule } from 'ngx-bootstrap/progressbar' | |
10 | import { InfiniteScrollModule } from 'ngx-infinite-scroll' | |
11 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | |
12 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | |
13 | import { DataTableModule } from 'primeng/components/datatable/datatable' | |
14 | ||
15 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
16 | import { FromNowPipe } from './misc/from-now.pipe' | |
17 | import { LoaderComponent } from './misc/loader.component' | |
18 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' | |
19 | import { RestExtractor, RestService } from './rest' | |
20 | import { UserService } from './users' | |
21 | import { VideoAbuseService } from './video-abuse' | |
22 | import { VideoBlacklistService } from './video-blacklist' | |
23 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | |
24 | import { VideoService } from './video/video.service' | |
25 | ||
26 | @NgModule({ | |
27 | imports: [ | |
28 | CommonModule, | |
29 | FormsModule, | |
30 | ReactiveFormsModule, | |
31 | RouterModule, | |
32 | HttpClientModule, | |
33 | ||
34 | BsDropdownModule.forRoot(), | |
35 | ModalModule.forRoot(), | |
36 | ProgressbarModule.forRoot(), | |
37 | ||
38 | DataTableModule, | |
39 | PrimeSharedModule, | |
40 | InfiniteScrollModule, | |
41 | NgPipesModule | |
42 | ], | |
43 | ||
44 | declarations: [ | |
45 | LoaderComponent, | |
46 | VideoThumbnailComponent, | |
47 | NumberFormatterPipe, | |
48 | FromNowPipe | |
49 | ], | |
50 | ||
51 | exports: [ | |
52 | CommonModule, | |
53 | FormsModule, | |
54 | ReactiveFormsModule, | |
55 | RouterModule, | |
56 | HttpClientModule, | |
57 | ||
58 | BsDropdownModule, | |
59 | ModalModule, | |
60 | ProgressbarModule, | |
61 | DataTableModule, | |
62 | PrimeSharedModule, | |
63 | InfiniteScrollModule, | |
64 | BytesPipe, | |
65 | KeysPipe, | |
66 | ||
67 | LoaderComponent, | |
68 | VideoThumbnailComponent, | |
69 | ||
70 | NumberFormatterPipe, | |
71 | FromNowPipe | |
72 | ], | |
73 | ||
74 | providers: [ | |
75 | AUTH_INTERCEPTOR_PROVIDER, | |
76 | RestExtractor, | |
77 | RestService, | |
78 | VideoAbuseService, | |
79 | VideoBlacklistService, | |
80 | UserService, | |
81 | VideoService | |
82 | ] | |
83 | }) | |
84 | export class SharedModule { } |