]>
Commit | Line | Data |
---|---|---|
df98563e | 1 | import { CommonModule } from '@angular/common' |
9bf9d2a5 C |
2 | import { HttpClientModule } from '@angular/common/http' |
3 | import { NgModule } from '@angular/core' | |
df98563e C |
4 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' |
5 | import { RouterModule } from '@angular/router' | |
66b16caf | 6 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' |
8a8e02a4 | 7 | import { HelpComponent } from '@app/shared/misc/help.component' |
24e7916c | 8 | import { ListOverflowComponent } from '@app/shared/misc/list-overflow.component' |
0cd4344f | 9 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' |
62e23e40 | 10 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' |
f77eb73b | 11 | import { SharedModule as PrimeSharedModule } from 'primeng/api' |
d592e0a9 | 12 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
74d63469 | 13 | import { ButtonComponent } from './buttons/button.component' |
eacb25c4 C |
14 | import { DeleteButtonComponent } from './buttons/delete-button.component' |
15 | import { EditButtonComponent } from './buttons/edit-button.component' | |
9bf9d2a5 | 16 | import { LoaderComponent } from './misc/loader.component' |
df98563e | 17 | import { RestExtractor, RestService } from './rest' |
df98563e C |
18 | import { UserService } from './users' |
19 | import { VideoAbuseService } from './video-abuse' | |
35bf0c83 | 20 | import { VideoBlacklistService } from './video-blacklist' |
74d63469 | 21 | import { VideoOwnershipService } from './video-ownership' |
b1fa3eba | 22 | import { VideoMiniatureComponent } from './video/video-miniature.component' |
c199c427 | 23 | import { FeedComponent } from './video/feed.component' |
202f6b6c C |
24 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' |
25 | import { VideoService } from './video/video.service' | |
0626e7af | 26 | import { AccountService } from '@app/shared/account/account.service' |
d3e91a5f | 27 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
989e526a | 28 | import { I18n } from '@ngx-translate/i18n-polyfill' |
d18d6478 | 29 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
e309822b C |
30 | import { |
31 | CustomConfigValidatorsService, | |
1506307f | 32 | InstanceValidatorsService, |
57c36b27 C |
33 | LoginValidatorsService, |
34 | ReactiveFileComponent, | |
e309822b | 35 | ResetPasswordValidatorsService, |
2fbe7f19 | 36 | TextareaAutoResizeDirective, |
57c36b27 | 37 | UserValidatorsService, |
22a16e36 | 38 | VideoAbuseValidatorsService, |
2fbe7f19 | 39 | VideoAcceptOwnershipValidatorsService, |
22a16e36 | 40 | VideoBlacklistValidatorsService, |
2fbe7f19 | 41 | VideoChangeOwnershipValidatorsService, |
57c36b27 C |
42 | VideoChannelValidatorsService, |
43 | VideoCommentValidatorsService, | |
830b4faf | 44 | VideoPlaylistValidatorsService, |
2fbe7f19 | 45 | VideoValidatorsService |
e309822b | 46 | } from '@app/shared/forms' |
bbe0f064 | 47 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' |
f0a39880 | 48 | import { InputMaskModule } from 'primeng/inputmask' |
bbe0f064 | 49 | import { ScreenService } from '@app/shared/misc/screen.service' |
d3217560 | 50 | import { LocalStorageService, SessionStorageService } from '@app/shared/misc/storage.service' |
40e87e9e C |
51 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' |
52 | import { VideoCaptionService } from '@app/shared/video-caption' | |
0f7fedc3 | 53 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' |
fbad87b0 | 54 | import { VideoImportService } from '@app/shared/video-import/video-import.service' |
eacb25c4 | 55 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' |
2f4c784a C |
56 | import { |
57 | NgbCollapseModule, | |
58 | NgbDropdownModule, | |
59 | NgbModalModule, | |
60 | NgbPopoverModule, | |
61 | NgbTabsetModule, | |
62 | NgbTooltipModule | |
63 | } from '@ng-bootstrap/ng-bootstrap' | |
2fbe7f19 | 64 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' |
41a676db | 65 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
3d05209c | 66 | import { InstanceStatisticsComponent } from '@app/shared/instance/instance-statistics.component' |
2d3741d6 | 67 | import { OverviewService } from '@app/shared/overview' |
e724fa93 C |
68 | import { UserBanModalComponent } from '@app/shared/moderation' |
69 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
af5767ff | 70 | import { BlocklistService } from '@app/shared/blocklist' |
dd4f25ee | 71 | import { AvatarComponent } from '@app/shared/channel/avatar.component' |
ddb83e49 | 72 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' |
80bfd33c | 73 | import { UserHistoryService } from '@app/shared/users/user-history.service' |
2f1548fd C |
74 | import { UserNotificationService } from '@app/shared/users/user-notification.service' |
75 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
d3e56c0c | 76 | import { InstanceService } from '@app/shared/instance/instance.service' |
1506307f | 77 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' |
457bb213 | 78 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' |
e8050208 | 79 | import { DateToggleComponent } from '@app/shared/date/date-toggle.component' |
b28e4e5e | 80 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' |
830b4faf | 81 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' |
7b992a86 | 82 | import { PreviewUploadComponent } from '@app/shared/images/preview-upload.component' |
830b4faf C |
83 | import { GlobalIconComponent } from '@app/shared/images/global-icon.component' |
84 | import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component' | |
f0a39880 C |
85 | import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component' |
86 | import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component' | |
e2f01c47 | 87 | import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component' |
693263e9 C |
88 | import { VideosSelectionComponent } from '@app/shared/video/videos-selection.component' |
89 | import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe' | |
df8340b7 | 90 | import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe' |
693263e9 C |
91 | import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' |
92 | import { FromNowPipe } from '@app/shared/angular/from-now.pipe' | |
8a979d73 | 93 | import { HighlightPipe } from '@app/shared/angular/highlight.pipe' |
693263e9 | 94 | import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' |
3a0fb65c C |
95 | import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' |
96 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' | |
97 | import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component' | |
98 | import { VideoReportComponent } from '@app/shared/video/modals/video-report.component' | |
a6dbbf03 | 99 | import { FollowService } from '@app/shared/instance/follow.service' |
ccc00cb2 | 100 | import { MultiSelectModule } from 'primeng/multiselect' |
a00045a2 | 101 | import { FeatureBooleanComponent } from '@app/shared/instance/feature-boolean.component' |
3a1fed11 | 102 | import { InputReadonlyCopyComponent } from '@app/shared/forms/input-readonly-copy.component' |
b764380a | 103 | import { RedundancyService } from '@app/shared/video/redundancy.service' |
7811819b | 104 | import { ClipboardModule } from '@angular/cdk/clipboard' |
d3217560 RK |
105 | import { InputSwitchModule } from 'primeng/inputswitch' |
106 | ||
107 | import { MyAccountVideoSettingsComponent } from '@app/+my-account/my-account-settings/my-account-video-settings' | |
108 | import { MyAccountInterfaceSettingsComponent } from '@app/+my-account/my-account-settings/my-account-interface' | |
693b1aba C |
109 | |
110 | @NgModule({ | |
111 | imports: [ | |
112 | CommonModule, | |
113 | FormsModule, | |
114 | ReactiveFormsModule, | |
693b1aba | 115 | RouterModule, |
d592e0a9 | 116 | HttpClientModule, |
693b1aba | 117 | |
d77ad726 C |
118 | NgbDropdownModule, |
119 | NgbModalModule, | |
120 | NgbPopoverModule, | |
121 | NgbTabsetModule, | |
122 | NgbTooltipModule, | |
2f4c784a | 123 | NgbCollapseModule, |
d396a937 | 124 | |
3a0fb65c C |
125 | ClipboardModule, |
126 | ||
202f6b6c | 127 | PrimeSharedModule, |
f0a39880 | 128 | InputMaskModule, |
ccc00cb2 | 129 | NgPipesModule, |
d3217560 RK |
130 | MultiSelectModule, |
131 | InputSwitchModule | |
693b1aba C |
132 | ], |
133 | ||
134 | declarations: [ | |
9bf9d2a5 | 135 | LoaderComponent, |
b28e4e5e | 136 | SmallLoaderComponent, |
830b4faf | 137 | |
202f6b6c | 138 | VideoThumbnailComponent, |
b1fa3eba | 139 | VideoMiniatureComponent, |
830b4faf | 140 | VideoPlaylistMiniatureComponent, |
f0a39880 | 141 | VideoAddToPlaylistComponent, |
e2f01c47 | 142 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 143 | VideosSelectionComponent, |
3a0fb65c C |
144 | VideoActionsDropdownComponent, |
145 | ||
146 | VideoDownloadComponent, | |
147 | VideoReportComponent, | |
148 | VideoBlacklistComponent, | |
830b4faf | 149 | |
c199c427 | 150 | FeedComponent, |
f0a39880 | 151 | |
74d63469 | 152 | ButtonComponent, |
cd83ea1b C |
153 | DeleteButtonComponent, |
154 | EditButtonComponent, | |
f0a39880 | 155 | |
9bf9d2a5 | 156 | NumberFormatterPipe, |
244e76a5 | 157 | ObjectLengthPipe, |
66b16caf | 158 | FromNowPipe, |
f409f0c3 | 159 | HighlightPipe, |
693263e9 | 160 | PeerTubeTemplateDirective, |
df8340b7 | 161 | VideoDurationPipe, |
693263e9 C |
162 | |
163 | ActionDropdownComponent, | |
0cd4344f | 164 | MarkdownTextareaComponent, |
8a8e02a4 | 165 | InfiniteScrollerDirective, |
2fbe7f19 | 166 | TextareaAutoResizeDirective, |
40e87e9e | 167 | HelpComponent, |
24e7916c | 168 | ListOverflowComponent, |
f0a39880 | 169 | |
0f7fedc3 | 170 | ReactiveFileComponent, |
22a16e36 | 171 | PeertubeCheckboxComponent, |
f0a39880 | 172 | TimestampInputComponent, |
3a1fed11 | 173 | InputReadonlyCopyComponent, |
f0a39880 | 174 | |
dd4f25ee | 175 | AvatarComponent, |
41a676db | 176 | SubscribeButtonComponent, |
660d11e9 | 177 | RemoteSubscribeComponent, |
e724fa93 | 178 | InstanceFeaturesTableComponent, |
3d05209c | 179 | InstanceStatisticsComponent, |
a00045a2 | 180 | FeatureBooleanComponent, |
e724fa93 | 181 | UserBanModalComponent, |
ddb83e49 | 182 | UserModerationDropdownComponent, |
2f1548fd | 183 | TopMenuDropdownComponent, |
457bb213 C |
184 | UserNotificationsComponent, |
185 | ConfirmComponent, | |
e8050208 | 186 | DateToggleComponent, |
830b4faf C |
187 | |
188 | GlobalIconComponent, | |
d3217560 RK |
189 | PreviewUploadComponent, |
190 | ||
191 | MyAccountVideoSettingsComponent, | |
192 | MyAccountInterfaceSettingsComponent | |
693b1aba C |
193 | ], |
194 | ||
195 | exports: [ | |
196 | CommonModule, | |
197 | FormsModule, | |
198 | ReactiveFormsModule, | |
693b1aba | 199 | RouterModule, |
d592e0a9 | 200 | HttpClientModule, |
693b1aba | 201 | |
63347a0f C |
202 | NgbDropdownModule, |
203 | NgbModalModule, | |
204 | NgbPopoverModule, | |
205 | NgbTabsetModule, | |
206 | NgbTooltipModule, | |
2f4c784a | 207 | NgbCollapseModule, |
63347a0f | 208 | |
3a0fb65c C |
209 | ClipboardModule, |
210 | ||
d592e0a9 | 211 | PrimeSharedModule, |
f0a39880 | 212 | InputMaskModule, |
693b1aba | 213 | BytesPipe, |
99fdec46 | 214 | KeysPipe, |
ccc00cb2 | 215 | MultiSelectModule, |
693b1aba | 216 | |
9bf9d2a5 | 217 | LoaderComponent, |
b28e4e5e | 218 | SmallLoaderComponent, |
830b4faf | 219 | |
202f6b6c | 220 | VideoThumbnailComponent, |
b1fa3eba | 221 | VideoMiniatureComponent, |
830b4faf | 222 | VideoPlaylistMiniatureComponent, |
f0a39880 | 223 | VideoAddToPlaylistComponent, |
e2f01c47 | 224 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 225 | VideosSelectionComponent, |
3a0fb65c C |
226 | VideoActionsDropdownComponent, |
227 | ||
228 | VideoDownloadComponent, | |
229 | VideoReportComponent, | |
230 | VideoBlacklistComponent, | |
830b4faf | 231 | |
c199c427 | 232 | FeedComponent, |
f0a39880 | 233 | |
74d63469 | 234 | ButtonComponent, |
cd83ea1b C |
235 | DeleteButtonComponent, |
236 | EditButtonComponent, | |
f0a39880 | 237 | |
eacb25c4 | 238 | ActionDropdownComponent, |
66b16caf | 239 | MarkdownTextareaComponent, |
0cd4344f | 240 | InfiniteScrollerDirective, |
2fbe7f19 | 241 | TextareaAutoResizeDirective, |
8a8e02a4 | 242 | HelpComponent, |
24e7916c | 243 | ListOverflowComponent, |
3a1fed11 | 244 | InputReadonlyCopyComponent, |
f0a39880 | 245 | |
40e87e9e | 246 | ReactiveFileComponent, |
0f7fedc3 | 247 | PeertubeCheckboxComponent, |
f0a39880 C |
248 | TimestampInputComponent, |
249 | ||
dd4f25ee | 250 | AvatarComponent, |
22a16e36 | 251 | SubscribeButtonComponent, |
660d11e9 | 252 | RemoteSubscribeComponent, |
41a676db | 253 | InstanceFeaturesTableComponent, |
3d05209c | 254 | InstanceStatisticsComponent, |
e724fa93 C |
255 | UserBanModalComponent, |
256 | UserModerationDropdownComponent, | |
ddb83e49 | 257 | TopMenuDropdownComponent, |
2f1548fd | 258 | UserNotificationsComponent, |
457bb213 | 259 | ConfirmComponent, |
e8050208 | 260 | DateToggleComponent, |
830b4faf | 261 | |
457bb213 | 262 | GlobalIconComponent, |
7b992a86 | 263 | PreviewUploadComponent, |
9bf9d2a5 C |
264 | |
265 | NumberFormatterPipe, | |
244e76a5 | 266 | ObjectLengthPipe, |
693263e9 | 267 | FromNowPipe, |
f409f0c3 | 268 | HighlightPipe, |
df8340b7 | 269 | PeerTubeTemplateDirective, |
d3217560 RK |
270 | VideoDurationPipe, |
271 | ||
272 | MyAccountVideoSettingsComponent, | |
273 | MyAccountInterfaceSettingsComponent | |
693b1aba C |
274 | ], |
275 | ||
276 | providers: [ | |
d592e0a9 | 277 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
278 | RestExtractor, |
279 | RestService, | |
e2a2d6c8 | 280 | VideoAbuseService, |
35bf0c83 | 281 | VideoBlacklistService, |
74d63469 | 282 | VideoOwnershipService, |
202f6b6c | 283 | UserService, |
66b16caf | 284 | VideoService, |
0626e7af | 285 | AccountService, |
989e526a | 286 | VideoChannelService, |
830b4faf | 287 | VideoPlaylistService, |
40e87e9e | 288 | VideoCaptionService, |
26b7305a | 289 | VideoImportService, |
22a16e36 | 290 | UserSubscriptionService, |
e309822b | 291 | |
d18d6478 | 292 | FormValidatorService, |
e309822b C |
293 | CustomConfigValidatorsService, |
294 | LoginValidatorsService, | |
295 | ResetPasswordValidatorsService, | |
296 | UserValidatorsService, | |
830b4faf | 297 | VideoPlaylistValidatorsService, |
e309822b C |
298 | VideoAbuseValidatorsService, |
299 | VideoChannelValidatorsService, | |
300 | VideoCommentValidatorsService, | |
301 | VideoValidatorsService, | |
40e87e9e | 302 | VideoCaptionsValidatorsService, |
26b7305a | 303 | VideoBlacklistValidatorsService, |
2d3741d6 | 304 | OverviewService, |
74d63469 GR |
305 | VideoChangeOwnershipValidatorsService, |
306 | VideoAcceptOwnershipValidatorsService, | |
d3e56c0c | 307 | InstanceValidatorsService, |
af5767ff | 308 | BlocklistService, |
80bfd33c | 309 | UserHistoryService, |
d3e56c0c | 310 | InstanceService, |
e309822b | 311 | |
1506307f C |
312 | MarkdownService, |
313 | LinkifierService, | |
314 | HtmlRendererService, | |
315 | ||
bbe0f064 C |
316 | I18nPrimengCalendarService, |
317 | ScreenService, | |
d3217560 | 318 | LocalStorageService, SessionStorageService, |
bbe0f064 | 319 | |
2f1548fd C |
320 | UserNotificationService, |
321 | ||
a6dbbf03 | 322 | FollowService, |
b764380a | 323 | RedundancyService, |
a6dbbf03 | 324 | |
989e526a | 325 | I18n |
693b1aba C |
326 | ] |
327 | }) | |
328 | export class SharedModule { } |