]>
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 | ||
10 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | |
11 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | |
12 | ||
13 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
14 | import { ButtonComponent } from './buttons/button.component' | |
15 | import { DeleteButtonComponent } from './buttons/delete-button.component' | |
16 | import { EditButtonComponent } from './buttons/edit-button.component' | |
17 | import { FromNowPipe } from './misc/from-now.pipe' | |
18 | import { LoaderComponent } from './misc/loader.component' | |
19 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' | |
20 | import { ObjectLengthPipe } from './misc/object-length.pipe' | |
21 | import { RestExtractor, RestService } from './rest' | |
22 | import { UserService } from './users' | |
23 | import { VideoAbuseService } from './video-abuse' | |
24 | import { VideoBlacklistService } from './video-blacklist' | |
25 | import { VideoOwnershipService } from './video-ownership' | |
26 | import { VideoMiniatureComponent } from './video/video-miniature.component' | |
27 | import { FeedComponent } from './video/feed.component' | |
28 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | |
29 | import { VideoService } from './video/video.service' | |
30 | import { AccountService } from '@app/shared/account/account.service' | |
31 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | |
32 | import { I18n } from '@ngx-translate/i18n-polyfill' | |
33 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | |
34 | import { | |
35 | CustomConfigValidatorsService, | |
36 | InstanceValidatorsService, | |
37 | LoginValidatorsService, | |
38 | ReactiveFileComponent, | |
39 | ResetPasswordValidatorsService, | |
40 | TextareaAutoResizeDirective, | |
41 | UserValidatorsService, | |
42 | VideoAbuseValidatorsService, | |
43 | VideoAcceptOwnershipValidatorsService, | |
44 | VideoBlacklistValidatorsService, | |
45 | VideoChangeOwnershipValidatorsService, | |
46 | VideoChannelValidatorsService, | |
47 | VideoCommentValidatorsService, | |
48 | VideoPlaylistValidatorsService, | |
49 | VideoValidatorsService | |
50 | } from '@app/shared/forms' | |
51 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' | |
52 | import { InputMaskModule } from 'primeng/inputmask' | |
53 | import { ScreenService } from '@app/shared/misc/screen.service' | |
54 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' | |
55 | import { VideoCaptionService } from '@app/shared/video-caption' | |
56 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' | |
57 | import { VideoImportService } from '@app/shared/video-import/video-import.service' | |
58 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' | |
59 | import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' | |
60 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' | |
61 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' | |
62 | import { OverviewService } from '@app/shared/overview' | |
63 | import { UserBanModalComponent } from '@app/shared/moderation' | |
64 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
65 | import { BlocklistService } from '@app/shared/blocklist' | |
66 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' | |
67 | import { UserHistoryService } from '@app/shared/users/user-history.service' | |
68 | import { UserNotificationService } from '@app/shared/users/user-notification.service' | |
69 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
70 | import { InstanceService } from '@app/shared/instance/instance.service' | |
71 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' | |
72 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' | |
73 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' | |
74 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' | |
75 | import { ImageUploadComponent } from '@app/shared/images/image-upload.component' | |
76 | import { GlobalIconComponent } from '@app/shared/images/global-icon.component' | |
77 | import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component' | |
78 | import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component' | |
79 | import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component' | |
80 | ||
81 | @NgModule({ | |
82 | imports: [ | |
83 | CommonModule, | |
84 | FormsModule, | |
85 | ReactiveFormsModule, | |
86 | RouterModule, | |
87 | HttpClientModule, | |
88 | ||
89 | NgbDropdownModule, | |
90 | NgbModalModule, | |
91 | NgbPopoverModule, | |
92 | NgbTabsetModule, | |
93 | NgbTooltipModule, | |
94 | ||
95 | PrimeSharedModule, | |
96 | InputMaskModule, | |
97 | NgPipesModule | |
98 | ], | |
99 | ||
100 | declarations: [ | |
101 | LoaderComponent, | |
102 | SmallLoaderComponent, | |
103 | ||
104 | VideoThumbnailComponent, | |
105 | VideoMiniatureComponent, | |
106 | VideoPlaylistMiniatureComponent, | |
107 | VideoAddToPlaylistComponent, | |
108 | ||
109 | FeedComponent, | |
110 | ||
111 | ButtonComponent, | |
112 | DeleteButtonComponent, | |
113 | EditButtonComponent, | |
114 | ||
115 | ActionDropdownComponent, | |
116 | NumberFormatterPipe, | |
117 | ObjectLengthPipe, | |
118 | FromNowPipe, | |
119 | MarkdownTextareaComponent, | |
120 | InfiniteScrollerDirective, | |
121 | TextareaAutoResizeDirective, | |
122 | HelpComponent, | |
123 | ||
124 | ReactiveFileComponent, | |
125 | PeertubeCheckboxComponent, | |
126 | TimestampInputComponent, | |
127 | ||
128 | SubscribeButtonComponent, | |
129 | RemoteSubscribeComponent, | |
130 | InstanceFeaturesTableComponent, | |
131 | UserBanModalComponent, | |
132 | UserModerationDropdownComponent, | |
133 | TopMenuDropdownComponent, | |
134 | UserNotificationsComponent, | |
135 | ConfirmComponent, | |
136 | ||
137 | GlobalIconComponent, | |
138 | ImageUploadComponent | |
139 | ], | |
140 | ||
141 | exports: [ | |
142 | CommonModule, | |
143 | FormsModule, | |
144 | ReactiveFormsModule, | |
145 | RouterModule, | |
146 | HttpClientModule, | |
147 | ||
148 | NgbDropdownModule, | |
149 | NgbModalModule, | |
150 | NgbPopoverModule, | |
151 | NgbTabsetModule, | |
152 | NgbTooltipModule, | |
153 | ||
154 | PrimeSharedModule, | |
155 | InputMaskModule, | |
156 | BytesPipe, | |
157 | KeysPipe, | |
158 | ||
159 | LoaderComponent, | |
160 | SmallLoaderComponent, | |
161 | ||
162 | VideoThumbnailComponent, | |
163 | VideoMiniatureComponent, | |
164 | VideoPlaylistMiniatureComponent, | |
165 | VideoAddToPlaylistComponent, | |
166 | ||
167 | FeedComponent, | |
168 | ||
169 | ButtonComponent, | |
170 | DeleteButtonComponent, | |
171 | EditButtonComponent, | |
172 | ||
173 | ActionDropdownComponent, | |
174 | MarkdownTextareaComponent, | |
175 | InfiniteScrollerDirective, | |
176 | TextareaAutoResizeDirective, | |
177 | HelpComponent, | |
178 | ||
179 | ReactiveFileComponent, | |
180 | PeertubeCheckboxComponent, | |
181 | TimestampInputComponent, | |
182 | ||
183 | SubscribeButtonComponent, | |
184 | RemoteSubscribeComponent, | |
185 | InstanceFeaturesTableComponent, | |
186 | UserBanModalComponent, | |
187 | UserModerationDropdownComponent, | |
188 | TopMenuDropdownComponent, | |
189 | UserNotificationsComponent, | |
190 | ConfirmComponent, | |
191 | ||
192 | GlobalIconComponent, | |
193 | ImageUploadComponent, | |
194 | ||
195 | NumberFormatterPipe, | |
196 | ObjectLengthPipe, | |
197 | FromNowPipe | |
198 | ], | |
199 | ||
200 | providers: [ | |
201 | AUTH_INTERCEPTOR_PROVIDER, | |
202 | RestExtractor, | |
203 | RestService, | |
204 | VideoAbuseService, | |
205 | VideoBlacklistService, | |
206 | VideoOwnershipService, | |
207 | UserService, | |
208 | VideoService, | |
209 | AccountService, | |
210 | VideoChannelService, | |
211 | VideoPlaylistService, | |
212 | VideoCaptionService, | |
213 | VideoImportService, | |
214 | UserSubscriptionService, | |
215 | ||
216 | FormValidatorService, | |
217 | CustomConfigValidatorsService, | |
218 | LoginValidatorsService, | |
219 | ResetPasswordValidatorsService, | |
220 | UserValidatorsService, | |
221 | VideoPlaylistValidatorsService, | |
222 | VideoAbuseValidatorsService, | |
223 | VideoChannelValidatorsService, | |
224 | VideoCommentValidatorsService, | |
225 | VideoValidatorsService, | |
226 | VideoCaptionsValidatorsService, | |
227 | VideoBlacklistValidatorsService, | |
228 | OverviewService, | |
229 | VideoChangeOwnershipValidatorsService, | |
230 | VideoAcceptOwnershipValidatorsService, | |
231 | InstanceValidatorsService, | |
232 | BlocklistService, | |
233 | UserHistoryService, | |
234 | InstanceService, | |
235 | ||
236 | MarkdownService, | |
237 | LinkifierService, | |
238 | HtmlRendererService, | |
239 | ||
240 | I18nPrimengCalendarService, | |
241 | ScreenService, | |
242 | ||
243 | UserNotificationService, | |
244 | ||
245 | I18n | |
246 | ] | |
247 | }) | |
248 | export class SharedModule { } |