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