]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Fix AP tests
[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'
c199c427 28import { FeedComponent } from './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,
2fbe7f19 40 TextareaAutoResizeDirective,
57c36b27 41 UserValidatorsService,
22a16e36 42 VideoAbuseValidatorsService,
2fbe7f19 43 VideoAcceptOwnershipValidatorsService,
22a16e36 44 VideoBlacklistValidatorsService,
2fbe7f19 45 VideoChangeOwnershipValidatorsService,
57c36b27
C
46 VideoChannelValidatorsService,
47 VideoCommentValidatorsService,
2fbe7f19 48 VideoValidatorsService
e309822b 49} from '@app/shared/forms'
bbe0f064
C
50import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
51import { ScreenService } from '@app/shared/misc/screen.service'
40e87e9e
C
52import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
53import { VideoCaptionService } from '@app/shared/video-caption'
0f7fedc3 54import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
fbad87b0 55import { VideoImportService } from '@app/shared/video-import/video-import.service'
eacb25c4 56import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
63347a0f 57import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
2fbe7f19 58import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription'
41a676db 59import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
2d3741d6 60import { OverviewService } from '@app/shared/overview'
e724fa93
C
61import { UserBanModalComponent } from '@app/shared/moderation'
62import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component'
af5767ff 63import { BlocklistService } from '@app/shared/blocklist'
ddb83e49 64import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component'
693b1aba
C
65
66@NgModule({
67 imports: [
68 CommonModule,
69 FormsModule,
70 ReactiveFormsModule,
693b1aba 71 RouterModule,
d592e0a9 72 HttpClientModule,
693b1aba 73
d77ad726
C
74 NgbDropdownModule,
75 NgbModalModule,
76 NgbPopoverModule,
77 NgbTabsetModule,
78 NgbTooltipModule,
d396a937 79
202f6b6c 80 PrimeSharedModule,
6de36768 81 NgPipesModule
693b1aba
C
82 ],
83
84 declarations: [
9bf9d2a5 85 LoaderComponent,
202f6b6c 86 VideoThumbnailComponent,
b1fa3eba 87 VideoMiniatureComponent,
c199c427 88 FeedComponent,
74d63469 89 ButtonComponent,
cd83ea1b
C
90 DeleteButtonComponent,
91 EditButtonComponent,
eacb25c4 92 ActionDropdownComponent,
9bf9d2a5 93 NumberFormatterPipe,
244e76a5 94 ObjectLengthPipe,
66b16caf 95 FromNowPipe,
0cd4344f 96 MarkdownTextareaComponent,
8a8e02a4 97 InfiniteScrollerDirective,
2fbe7f19 98 TextareaAutoResizeDirective,
40e87e9e 99 HelpComponent,
0f7fedc3 100 ReactiveFileComponent,
22a16e36 101 PeertubeCheckboxComponent,
41a676db 102 SubscribeButtonComponent,
660d11e9 103 RemoteSubscribeComponent,
e724fa93
C
104 InstanceFeaturesTableComponent,
105 UserBanModalComponent,
ddb83e49
C
106 UserModerationDropdownComponent,
107 TopMenuDropdownComponent
693b1aba
C
108 ],
109
110 exports: [
111 CommonModule,
112 FormsModule,
113 ReactiveFormsModule,
693b1aba 114 RouterModule,
d592e0a9 115 HttpClientModule,
693b1aba 116
63347a0f
C
117 NgbDropdownModule,
118 NgbModalModule,
119 NgbPopoverModule,
120 NgbTabsetModule,
121 NgbTooltipModule,
122
d592e0a9 123 PrimeSharedModule,
693b1aba 124 BytesPipe,
99fdec46 125 KeysPipe,
693b1aba 126
9bf9d2a5 127 LoaderComponent,
202f6b6c 128 VideoThumbnailComponent,
b1fa3eba 129 VideoMiniatureComponent,
c199c427 130 FeedComponent,
74d63469 131 ButtonComponent,
cd83ea1b
C
132 DeleteButtonComponent,
133 EditButtonComponent,
eacb25c4 134 ActionDropdownComponent,
66b16caf 135 MarkdownTextareaComponent,
0cd4344f 136 InfiniteScrollerDirective,
2fbe7f19 137 TextareaAutoResizeDirective,
8a8e02a4 138 HelpComponent,
40e87e9e 139 ReactiveFileComponent,
0f7fedc3 140 PeertubeCheckboxComponent,
22a16e36 141 SubscribeButtonComponent,
660d11e9 142 RemoteSubscribeComponent,
41a676db 143 InstanceFeaturesTableComponent,
e724fa93
C
144 UserBanModalComponent,
145 UserModerationDropdownComponent,
ddb83e49 146 TopMenuDropdownComponent,
9bf9d2a5
C
147
148 NumberFormatterPipe,
244e76a5 149 ObjectLengthPipe,
9bf9d2a5 150 FromNowPipe
693b1aba
C
151 ],
152
153 providers: [
d592e0a9 154 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
155 RestExtractor,
156 RestService,
e2a2d6c8 157 VideoAbuseService,
35bf0c83 158 VideoBlacklistService,
74d63469 159 VideoOwnershipService,
202f6b6c 160 UserService,
66b16caf 161 VideoService,
0626e7af 162 AccountService,
d3e91a5f 163 MarkdownService,
989e526a 164 VideoChannelService,
40e87e9e 165 VideoCaptionService,
26b7305a 166 VideoImportService,
22a16e36 167 UserSubscriptionService,
e309822b 168
d18d6478 169 FormValidatorService,
e309822b
C
170 CustomConfigValidatorsService,
171 LoginValidatorsService,
172 ResetPasswordValidatorsService,
173 UserValidatorsService,
174 VideoAbuseValidatorsService,
175 VideoChannelValidatorsService,
176 VideoCommentValidatorsService,
177 VideoValidatorsService,
40e87e9e 178 VideoCaptionsValidatorsService,
26b7305a 179 VideoBlacklistValidatorsService,
2d3741d6 180 OverviewService,
74d63469
GR
181 VideoChangeOwnershipValidatorsService,
182 VideoAcceptOwnershipValidatorsService,
af5767ff 183 BlocklistService,
e309822b 184
bbe0f064
C
185 I18nPrimengCalendarService,
186 ScreenService,
187
989e526a 188 I18n
693b1aba
C
189 ]
190})
191export class SharedModule { }