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