]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Add ability for users to block an account/instance on server side
[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'
66b16caf 9import { MarkdownService } from '@app/videos/shared'
693b1aba 10
62e23e40 11import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
3523b64a 12import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
693b1aba 13
d592e0a9 14import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
74d63469 15import { ButtonComponent } from './buttons/button.component'
eacb25c4
C
16import { DeleteButtonComponent } from './buttons/delete-button.component'
17import { EditButtonComponent } from './buttons/edit-button.component'
2bbb3412 18import { FromNowPipe } from './misc/from-now.pipe'
9bf9d2a5 19import { LoaderComponent } from './misc/loader.component'
2bbb3412 20import { NumberFormatterPipe } from './misc/number-formatter.pipe'
244e76a5 21import { ObjectLengthPipe } from './misc/object-length.pipe'
df98563e 22import { RestExtractor, RestService } from './rest'
df98563e
C
23import { UserService } from './users'
24import { VideoAbuseService } from './video-abuse'
35bf0c83 25import { VideoBlacklistService } from './video-blacklist'
74d63469 26import { VideoOwnershipService } from './video-ownership'
b1fa3eba 27import { VideoMiniatureComponent } from './video/video-miniature.component'
244e76a5 28import { VideoFeedComponent } from './video/video-feed.component'
202f6b6c
C
29import { VideoThumbnailComponent } from './video/video-thumbnail.component'
30import { VideoService } from './video/video.service'
0626e7af 31import { AccountService } from '@app/shared/account/account.service'
d3e91a5f 32import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
989e526a 33import { I18n } from '@ngx-translate/i18n-polyfill'
d18d6478 34import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
e309822b
C
35import {
36 CustomConfigValidatorsService,
57c36b27
C
37 LoginValidatorsService,
38 ReactiveFileComponent,
e309822b 39 ResetPasswordValidatorsService,
57c36b27 40 UserValidatorsService,
22a16e36
C
41 VideoAbuseValidatorsService,
42 VideoBlacklistValidatorsService,
57c36b27
C
43 VideoChannelValidatorsService,
44 VideoCommentValidatorsService,
74d63469
GR
45 VideoValidatorsService,
46 VideoChangeOwnershipValidatorsService, VideoAcceptOwnershipValidatorsService
e309822b 47} from '@app/shared/forms'
bbe0f064
C
48import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
49import { ScreenService } from '@app/shared/misc/screen.service'
40e87e9e
C
50import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
51import { VideoCaptionService } from '@app/shared/video-caption'
0f7fedc3 52import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
fbad87b0 53import { VideoImportService } from '@app/shared/video-import/video-import.service'
eacb25c4 54import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
63347a0f 55import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
660d11e9 56import { SubscribeButtonComponent, RemoteSubscribeComponent, UserSubscriptionService } from '@app/shared/user-subscription'
41a676db 57import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
2d3741d6 58import { OverviewService } from '@app/shared/overview'
e724fa93
C
59import { UserBanModalComponent } from '@app/shared/moderation'
60import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component'
693b1aba
C
61
62@NgModule({
63 imports: [
64 CommonModule,
65 FormsModule,
66 ReactiveFormsModule,
693b1aba 67 RouterModule,
d592e0a9 68 HttpClientModule,
693b1aba 69
d77ad726
C
70 NgbDropdownModule,
71 NgbModalModule,
72 NgbPopoverModule,
73 NgbTabsetModule,
74 NgbTooltipModule,
d396a937 75
202f6b6c 76 PrimeSharedModule,
6de36768 77 NgPipesModule
693b1aba
C
78 ],
79
80 declarations: [
9bf9d2a5 81 LoaderComponent,
202f6b6c 82 VideoThumbnailComponent,
b1fa3eba 83 VideoMiniatureComponent,
244e76a5 84 VideoFeedComponent,
74d63469 85 ButtonComponent,
cd83ea1b
C
86 DeleteButtonComponent,
87 EditButtonComponent,
eacb25c4 88 ActionDropdownComponent,
9bf9d2a5 89 NumberFormatterPipe,
244e76a5 90 ObjectLengthPipe,
66b16caf 91 FromNowPipe,
0cd4344f 92 MarkdownTextareaComponent,
8a8e02a4 93 InfiniteScrollerDirective,
40e87e9e 94 HelpComponent,
0f7fedc3 95 ReactiveFileComponent,
22a16e36 96 PeertubeCheckboxComponent,
41a676db 97 SubscribeButtonComponent,
660d11e9 98 RemoteSubscribeComponent,
e724fa93
C
99 InstanceFeaturesTableComponent,
100 UserBanModalComponent,
101 UserModerationDropdownComponent
693b1aba
C
102 ],
103
104 exports: [
105 CommonModule,
106 FormsModule,
107 ReactiveFormsModule,
693b1aba 108 RouterModule,
d592e0a9 109 HttpClientModule,
693b1aba 110
63347a0f
C
111 NgbDropdownModule,
112 NgbModalModule,
113 NgbPopoverModule,
114 NgbTabsetModule,
115 NgbTooltipModule,
116
d592e0a9 117 PrimeSharedModule,
693b1aba 118 BytesPipe,
99fdec46 119 KeysPipe,
693b1aba 120
9bf9d2a5 121 LoaderComponent,
202f6b6c 122 VideoThumbnailComponent,
b1fa3eba 123 VideoMiniatureComponent,
244e76a5 124 VideoFeedComponent,
74d63469 125 ButtonComponent,
cd83ea1b
C
126 DeleteButtonComponent,
127 EditButtonComponent,
eacb25c4 128 ActionDropdownComponent,
66b16caf 129 MarkdownTextareaComponent,
0cd4344f 130 InfiniteScrollerDirective,
8a8e02a4 131 HelpComponent,
40e87e9e 132 ReactiveFileComponent,
0f7fedc3 133 PeertubeCheckboxComponent,
22a16e36 134 SubscribeButtonComponent,
660d11e9 135 RemoteSubscribeComponent,
41a676db 136 InstanceFeaturesTableComponent,
e724fa93
C
137 UserBanModalComponent,
138 UserModerationDropdownComponent,
9bf9d2a5
C
139
140 NumberFormatterPipe,
244e76a5 141 ObjectLengthPipe,
9bf9d2a5 142 FromNowPipe
693b1aba
C
143 ],
144
145 providers: [
d592e0a9 146 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
147 RestExtractor,
148 RestService,
e2a2d6c8 149 VideoAbuseService,
35bf0c83 150 VideoBlacklistService,
74d63469 151 VideoOwnershipService,
202f6b6c 152 UserService,
66b16caf 153 VideoService,
0626e7af 154 AccountService,
d3e91a5f 155 MarkdownService,
989e526a 156 VideoChannelService,
40e87e9e 157 VideoCaptionService,
26b7305a 158 VideoImportService,
22a16e36 159 UserSubscriptionService,
e309822b 160
d18d6478 161 FormValidatorService,
e309822b
C
162 CustomConfigValidatorsService,
163 LoginValidatorsService,
164 ResetPasswordValidatorsService,
165 UserValidatorsService,
166 VideoAbuseValidatorsService,
167 VideoChannelValidatorsService,
168 VideoCommentValidatorsService,
169 VideoValidatorsService,
40e87e9e 170 VideoCaptionsValidatorsService,
26b7305a 171 VideoBlacklistValidatorsService,
2d3741d6 172 OverviewService,
74d63469
GR
173 VideoChangeOwnershipValidatorsService,
174 VideoAcceptOwnershipValidatorsService,
e309822b 175
bbe0f064
C
176 I18nPrimengCalendarService,
177 ScreenService,
178
989e526a 179 I18n
693b1aba
C
180 ]
181})
182export class SharedModule { }