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