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