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