]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Add reason when banning a user
[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
df98563e 11import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
df98563e 12import { ModalModule } from 'ngx-bootstrap/modal'
244e76a5 13import { PopoverModule } from 'ngx-bootstrap/popover'
66b16caf 14import { TabsModule } from 'ngx-bootstrap/tabs'
8a8e02a4 15import { TooltipModule } from 'ngx-bootstrap/tooltip'
62e23e40 16import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
3523b64a 17import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
693b1aba 18
d592e0a9 19import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
eacb25c4
C
20import { DeleteButtonComponent } from './buttons/delete-button.component'
21import { EditButtonComponent } from './buttons/edit-button.component'
2bbb3412 22import { FromNowPipe } from './misc/from-now.pipe'
9bf9d2a5 23import { LoaderComponent } from './misc/loader.component'
2bbb3412 24import { NumberFormatterPipe } from './misc/number-formatter.pipe'
244e76a5 25import { ObjectLengthPipe } from './misc/object-length.pipe'
df98563e 26import { RestExtractor, RestService } from './rest'
df98563e
C
27import { UserService } from './users'
28import { VideoAbuseService } from './video-abuse'
35bf0c83 29import { VideoBlacklistService } from './video-blacklist'
b1fa3eba 30import { VideoMiniatureComponent } from './video/video-miniature.component'
244e76a5 31import { VideoFeedComponent } from './video/video-feed.component'
202f6b6c
C
32import { VideoThumbnailComponent } from './video/video-thumbnail.component'
33import { VideoService } from './video/video.service'
0626e7af 34import { AccountService } from '@app/shared/account/account.service'
d3e91a5f 35import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
989e526a 36import { I18n } from '@ngx-translate/i18n-polyfill'
d18d6478 37import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
e309822b
C
38import {
39 CustomConfigValidatorsService,
57c36b27
C
40 LoginValidatorsService,
41 ReactiveFileComponent,
e309822b 42 ResetPasswordValidatorsService,
57c36b27
C
43 UserValidatorsService,
44 VideoAbuseValidatorsService,
45 VideoChannelValidatorsService,
46 VideoCommentValidatorsService,
47 VideoValidatorsService
e309822b 48} from '@app/shared/forms'
bbe0f064
C
49import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
50import { ScreenService } from '@app/shared/misc/screen.service'
40e87e9e
C
51import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
52import { VideoCaptionService } from '@app/shared/video-caption'
0f7fedc3 53import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
fbad87b0 54import { VideoImportService } from '@app/shared/video-import/video-import.service'
eacb25c4 55import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
693b1aba
C
56
57@NgModule({
58 imports: [
59 CommonModule,
60 FormsModule,
61 ReactiveFormsModule,
693b1aba 62 RouterModule,
d592e0a9 63 HttpClientModule,
693b1aba 64
ad42bea3 65 BsDropdownModule.forRoot(),
d396a937 66 ModalModule.forRoot(),
244e76a5 67 PopoverModule.forRoot(),
6de36768 68 TabsModule.forRoot(),
8a8e02a4 69 TooltipModule.forRoot(),
d396a937 70
202f6b6c 71 PrimeSharedModule,
6de36768 72 NgPipesModule
693b1aba
C
73 ],
74
75 declarations: [
9bf9d2a5 76 LoaderComponent,
202f6b6c 77 VideoThumbnailComponent,
b1fa3eba 78 VideoMiniatureComponent,
244e76a5 79 VideoFeedComponent,
cd83ea1b
C
80 DeleteButtonComponent,
81 EditButtonComponent,
eacb25c4 82 ActionDropdownComponent,
9bf9d2a5 83 NumberFormatterPipe,
244e76a5 84 ObjectLengthPipe,
66b16caf 85 FromNowPipe,
0cd4344f 86 MarkdownTextareaComponent,
8a8e02a4 87 InfiniteScrollerDirective,
40e87e9e 88 HelpComponent,
0f7fedc3
C
89 ReactiveFileComponent,
90 PeertubeCheckboxComponent
693b1aba
C
91 ],
92
93 exports: [
94 CommonModule,
95 FormsModule,
96 ReactiveFormsModule,
693b1aba 97 RouterModule,
d592e0a9 98 HttpClientModule,
693b1aba 99
ad42bea3 100 BsDropdownModule,
693b1aba 101 ModalModule,
244e76a5 102 PopoverModule,
6de36768 103 TabsModule,
8a8e02a4 104 TooltipModule,
d592e0a9 105 PrimeSharedModule,
693b1aba 106 BytesPipe,
99fdec46 107 KeysPipe,
693b1aba 108
9bf9d2a5 109 LoaderComponent,
202f6b6c 110 VideoThumbnailComponent,
b1fa3eba 111 VideoMiniatureComponent,
244e76a5 112 VideoFeedComponent,
cd83ea1b
C
113 DeleteButtonComponent,
114 EditButtonComponent,
eacb25c4 115 ActionDropdownComponent,
66b16caf 116 MarkdownTextareaComponent,
0cd4344f 117 InfiniteScrollerDirective,
8a8e02a4 118 HelpComponent,
40e87e9e 119 ReactiveFileComponent,
0f7fedc3 120 PeertubeCheckboxComponent,
9bf9d2a5
C
121
122 NumberFormatterPipe,
244e76a5 123 ObjectLengthPipe,
9bf9d2a5 124 FromNowPipe
693b1aba
C
125 ],
126
127 providers: [
d592e0a9 128 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
129 RestExtractor,
130 RestService,
e2a2d6c8 131 VideoAbuseService,
35bf0c83 132 VideoBlacklistService,
202f6b6c 133 UserService,
66b16caf 134 VideoService,
0626e7af 135 AccountService,
d3e91a5f 136 MarkdownService,
989e526a 137 VideoChannelService,
40e87e9e 138 VideoCaptionService,
e309822b 139
d18d6478 140 FormValidatorService,
e309822b
C
141 CustomConfigValidatorsService,
142 LoginValidatorsService,
143 ResetPasswordValidatorsService,
144 UserValidatorsService,
145 VideoAbuseValidatorsService,
146 VideoChannelValidatorsService,
147 VideoCommentValidatorsService,
148 VideoValidatorsService,
40e87e9e 149 VideoCaptionsValidatorsService,
fbad87b0 150 VideoImportService,
e309822b 151
bbe0f064
C
152 I18nPrimengCalendarService,
153 ScreenService,
154
989e526a 155 I18n
693b1aba
C
156 ]
157})
158export class SharedModule { }