]>
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 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' | |
7 | import { HelpComponent } from '@app/shared/misc/help.component' | |
8 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' | |
9 | import { MarkdownService } from '@app/videos/shared' | |
10 | ||
11 | import { BsDropdownModule } from 'ngx-bootstrap/dropdown' | |
12 | import { ModalModule } from 'ngx-bootstrap/modal' | |
13 | import { TabsModule } from 'ngx-bootstrap/tabs' | |
14 | import { TooltipModule } from 'ngx-bootstrap/tooltip' | |
15 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | |
16 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | |
17 | ||
18 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
19 | import { DeleteButtonComponent } from './misc/delete-button.component' | |
20 | import { EditButtonComponent } from './misc/edit-button.component' | |
21 | import { FromNowPipe } from './misc/from-now.pipe' | |
22 | import { LoaderComponent } from './misc/loader.component' | |
23 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' | |
24 | import { RestExtractor, RestService } from './rest' | |
25 | import { UserService } from './users' | |
26 | import { VideoAbuseService } from './video-abuse' | |
27 | import { VideoBlacklistService } from './video-blacklist' | |
28 | import { VideoMiniatureComponent } from './video/video-miniature.component' | |
29 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | |
30 | import { VideoService } from './video/video.service' | |
31 | ||
32 | @NgModule({ | |
33 | imports: [ | |
34 | CommonModule, | |
35 | FormsModule, | |
36 | ReactiveFormsModule, | |
37 | RouterModule, | |
38 | HttpClientModule, | |
39 | ||
40 | BsDropdownModule.forRoot(), | |
41 | ModalModule.forRoot(), | |
42 | TabsModule.forRoot(), | |
43 | TooltipModule.forRoot(), | |
44 | ||
45 | PrimeSharedModule, | |
46 | NgPipesModule | |
47 | ], | |
48 | ||
49 | declarations: [ | |
50 | LoaderComponent, | |
51 | VideoThumbnailComponent, | |
52 | VideoMiniatureComponent, | |
53 | DeleteButtonComponent, | |
54 | EditButtonComponent, | |
55 | NumberFormatterPipe, | |
56 | FromNowPipe, | |
57 | MarkdownTextareaComponent, | |
58 | InfiniteScrollerDirective, | |
59 | HelpComponent | |
60 | ], | |
61 | ||
62 | exports: [ | |
63 | CommonModule, | |
64 | FormsModule, | |
65 | ReactiveFormsModule, | |
66 | RouterModule, | |
67 | HttpClientModule, | |
68 | ||
69 | BsDropdownModule, | |
70 | ModalModule, | |
71 | TabsModule, | |
72 | TooltipModule, | |
73 | PrimeSharedModule, | |
74 | BytesPipe, | |
75 | KeysPipe, | |
76 | ||
77 | LoaderComponent, | |
78 | VideoThumbnailComponent, | |
79 | VideoMiniatureComponent, | |
80 | DeleteButtonComponent, | |
81 | EditButtonComponent, | |
82 | MarkdownTextareaComponent, | |
83 | InfiniteScrollerDirective, | |
84 | HelpComponent, | |
85 | ||
86 | NumberFormatterPipe, | |
87 | FromNowPipe | |
88 | ], | |
89 | ||
90 | providers: [ | |
91 | AUTH_INTERCEPTOR_PROVIDER, | |
92 | RestExtractor, | |
93 | RestService, | |
94 | VideoAbuseService, | |
95 | VideoBlacklistService, | |
96 | UserService, | |
97 | VideoService, | |
98 | MarkdownService | |
99 | ] | |
100 | }) | |
101 | export class SharedModule { } |