]>
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' |
ddb83e49 | 69 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' |
80bfd33c | 70 | import { UserHistoryService } from '@app/shared/users/user-history.service' |
2f1548fd C |
71 | import { UserNotificationService } from '@app/shared/users/user-notification.service' |
72 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
d3e56c0c | 73 | import { InstanceService } from '@app/shared/instance/instance.service' |
1506307f | 74 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' |
457bb213 | 75 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' |
b28e4e5e | 76 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' |
830b4faf | 77 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' |
7b992a86 | 78 | import { PreviewUploadComponent } from '@app/shared/images/preview-upload.component' |
830b4faf C |
79 | import { GlobalIconComponent } from '@app/shared/images/global-icon.component' |
80 | import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component' | |
f0a39880 C |
81 | import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component' |
82 | import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component' | |
e2f01c47 | 83 | import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component' |
693263e9 C |
84 | import { VideosSelectionComponent } from '@app/shared/video/videos-selection.component' |
85 | import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe' | |
86 | import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' | |
87 | import { FromNowPipe } from '@app/shared/angular/from-now.pipe' | |
88 | import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' | |
3a0fb65c C |
89 | import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' |
90 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' | |
91 | import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component' | |
92 | import { VideoReportComponent } from '@app/shared/video/modals/video-report.component' | |
93 | import { ClipboardModule } from 'ngx-clipboard' | |
a6dbbf03 | 94 | import { FollowService } from '@app/shared/instance/follow.service' |
ccc00cb2 | 95 | import { MultiSelectModule } from 'primeng/multiselect' |
a00045a2 | 96 | import { FeatureBooleanComponent } from '@app/shared/instance/feature-boolean.component' |
693b1aba C |
97 | |
98 | @NgModule({ | |
99 | imports: [ | |
100 | CommonModule, | |
101 | FormsModule, | |
102 | ReactiveFormsModule, | |
693b1aba | 103 | RouterModule, |
d592e0a9 | 104 | HttpClientModule, |
693b1aba | 105 | |
d77ad726 C |
106 | NgbDropdownModule, |
107 | NgbModalModule, | |
108 | NgbPopoverModule, | |
109 | NgbTabsetModule, | |
110 | NgbTooltipModule, | |
2f4c784a | 111 | NgbCollapseModule, |
d396a937 | 112 | |
3a0fb65c C |
113 | ClipboardModule, |
114 | ||
202f6b6c | 115 | PrimeSharedModule, |
f0a39880 | 116 | InputMaskModule, |
ccc00cb2 C |
117 | NgPipesModule, |
118 | MultiSelectModule | |
693b1aba C |
119 | ], |
120 | ||
121 | declarations: [ | |
9bf9d2a5 | 122 | LoaderComponent, |
b28e4e5e | 123 | SmallLoaderComponent, |
830b4faf | 124 | |
202f6b6c | 125 | VideoThumbnailComponent, |
b1fa3eba | 126 | VideoMiniatureComponent, |
830b4faf | 127 | VideoPlaylistMiniatureComponent, |
f0a39880 | 128 | VideoAddToPlaylistComponent, |
e2f01c47 | 129 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 130 | VideosSelectionComponent, |
3a0fb65c C |
131 | VideoActionsDropdownComponent, |
132 | ||
133 | VideoDownloadComponent, | |
134 | VideoReportComponent, | |
135 | VideoBlacklistComponent, | |
830b4faf | 136 | |
c199c427 | 137 | FeedComponent, |
f0a39880 | 138 | |
74d63469 | 139 | ButtonComponent, |
cd83ea1b C |
140 | DeleteButtonComponent, |
141 | EditButtonComponent, | |
f0a39880 | 142 | |
9bf9d2a5 | 143 | NumberFormatterPipe, |
244e76a5 | 144 | ObjectLengthPipe, |
66b16caf | 145 | FromNowPipe, |
693263e9 C |
146 | PeerTubeTemplateDirective, |
147 | ||
148 | ActionDropdownComponent, | |
0cd4344f | 149 | MarkdownTextareaComponent, |
8a8e02a4 | 150 | InfiniteScrollerDirective, |
2fbe7f19 | 151 | TextareaAutoResizeDirective, |
40e87e9e | 152 | HelpComponent, |
f0a39880 | 153 | |
0f7fedc3 | 154 | ReactiveFileComponent, |
22a16e36 | 155 | PeertubeCheckboxComponent, |
f0a39880 C |
156 | TimestampInputComponent, |
157 | ||
41a676db | 158 | SubscribeButtonComponent, |
660d11e9 | 159 | RemoteSubscribeComponent, |
e724fa93 | 160 | InstanceFeaturesTableComponent, |
3d05209c | 161 | InstanceStatisticsComponent, |
a00045a2 | 162 | FeatureBooleanComponent, |
e724fa93 | 163 | UserBanModalComponent, |
ddb83e49 | 164 | UserModerationDropdownComponent, |
2f1548fd | 165 | TopMenuDropdownComponent, |
457bb213 C |
166 | UserNotificationsComponent, |
167 | ConfirmComponent, | |
830b4faf C |
168 | |
169 | GlobalIconComponent, | |
7b992a86 | 170 | PreviewUploadComponent |
693b1aba C |
171 | ], |
172 | ||
173 | exports: [ | |
174 | CommonModule, | |
175 | FormsModule, | |
176 | ReactiveFormsModule, | |
693b1aba | 177 | RouterModule, |
d592e0a9 | 178 | HttpClientModule, |
693b1aba | 179 | |
63347a0f C |
180 | NgbDropdownModule, |
181 | NgbModalModule, | |
182 | NgbPopoverModule, | |
183 | NgbTabsetModule, | |
184 | NgbTooltipModule, | |
2f4c784a | 185 | NgbCollapseModule, |
63347a0f | 186 | |
3a0fb65c C |
187 | ClipboardModule, |
188 | ||
d592e0a9 | 189 | PrimeSharedModule, |
f0a39880 | 190 | InputMaskModule, |
693b1aba | 191 | BytesPipe, |
99fdec46 | 192 | KeysPipe, |
ccc00cb2 | 193 | MultiSelectModule, |
693b1aba | 194 | |
9bf9d2a5 | 195 | LoaderComponent, |
b28e4e5e | 196 | SmallLoaderComponent, |
830b4faf | 197 | |
202f6b6c | 198 | VideoThumbnailComponent, |
b1fa3eba | 199 | VideoMiniatureComponent, |
830b4faf | 200 | VideoPlaylistMiniatureComponent, |
f0a39880 | 201 | VideoAddToPlaylistComponent, |
e2f01c47 | 202 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 203 | VideosSelectionComponent, |
3a0fb65c C |
204 | VideoActionsDropdownComponent, |
205 | ||
206 | VideoDownloadComponent, | |
207 | VideoReportComponent, | |
208 | VideoBlacklistComponent, | |
830b4faf | 209 | |
c199c427 | 210 | FeedComponent, |
f0a39880 | 211 | |
74d63469 | 212 | ButtonComponent, |
cd83ea1b C |
213 | DeleteButtonComponent, |
214 | EditButtonComponent, | |
f0a39880 | 215 | |
eacb25c4 | 216 | ActionDropdownComponent, |
66b16caf | 217 | MarkdownTextareaComponent, |
0cd4344f | 218 | InfiniteScrollerDirective, |
2fbe7f19 | 219 | TextareaAutoResizeDirective, |
8a8e02a4 | 220 | HelpComponent, |
f0a39880 | 221 | |
40e87e9e | 222 | ReactiveFileComponent, |
0f7fedc3 | 223 | PeertubeCheckboxComponent, |
f0a39880 C |
224 | TimestampInputComponent, |
225 | ||
22a16e36 | 226 | SubscribeButtonComponent, |
660d11e9 | 227 | RemoteSubscribeComponent, |
41a676db | 228 | InstanceFeaturesTableComponent, |
3d05209c | 229 | InstanceStatisticsComponent, |
e724fa93 C |
230 | UserBanModalComponent, |
231 | UserModerationDropdownComponent, | |
ddb83e49 | 232 | TopMenuDropdownComponent, |
2f1548fd | 233 | UserNotificationsComponent, |
457bb213 | 234 | ConfirmComponent, |
830b4faf | 235 | |
457bb213 | 236 | GlobalIconComponent, |
7b992a86 | 237 | PreviewUploadComponent, |
9bf9d2a5 C |
238 | |
239 | NumberFormatterPipe, | |
244e76a5 | 240 | ObjectLengthPipe, |
693263e9 C |
241 | FromNowPipe, |
242 | PeerTubeTemplateDirective | |
693b1aba C |
243 | ], |
244 | ||
245 | providers: [ | |
d592e0a9 | 246 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
247 | RestExtractor, |
248 | RestService, | |
e2a2d6c8 | 249 | VideoAbuseService, |
35bf0c83 | 250 | VideoBlacklistService, |
74d63469 | 251 | VideoOwnershipService, |
202f6b6c | 252 | UserService, |
66b16caf | 253 | VideoService, |
0626e7af | 254 | AccountService, |
989e526a | 255 | VideoChannelService, |
830b4faf | 256 | VideoPlaylistService, |
40e87e9e | 257 | VideoCaptionService, |
26b7305a | 258 | VideoImportService, |
22a16e36 | 259 | UserSubscriptionService, |
e309822b | 260 | |
d18d6478 | 261 | FormValidatorService, |
e309822b C |
262 | CustomConfigValidatorsService, |
263 | LoginValidatorsService, | |
264 | ResetPasswordValidatorsService, | |
265 | UserValidatorsService, | |
830b4faf | 266 | VideoPlaylistValidatorsService, |
e309822b C |
267 | VideoAbuseValidatorsService, |
268 | VideoChannelValidatorsService, | |
269 | VideoCommentValidatorsService, | |
270 | VideoValidatorsService, | |
40e87e9e | 271 | VideoCaptionsValidatorsService, |
26b7305a | 272 | VideoBlacklistValidatorsService, |
2d3741d6 | 273 | OverviewService, |
74d63469 GR |
274 | VideoChangeOwnershipValidatorsService, |
275 | VideoAcceptOwnershipValidatorsService, | |
d3e56c0c | 276 | InstanceValidatorsService, |
af5767ff | 277 | BlocklistService, |
80bfd33c | 278 | UserHistoryService, |
d3e56c0c | 279 | InstanceService, |
e309822b | 280 | |
1506307f C |
281 | MarkdownService, |
282 | LinkifierService, | |
283 | HtmlRendererService, | |
284 | ||
bbe0f064 C |
285 | I18nPrimengCalendarService, |
286 | ScreenService, | |
287 | ||
2f1548fd C |
288 | UserNotificationService, |
289 | ||
a6dbbf03 C |
290 | FollowService, |
291 | ||
989e526a | 292 | I18n |
693b1aba C |
293 | ] |
294 | }) | |
295 | export class SharedModule { } |