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