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