1 import { CommonModule } from '@angular/common'
2 import { HttpClientModule } from '@angular/common/http'
3 import { NgModule } from '@angular/core'
4 import { FormsModule, ReactiveFormsModule } from '@angular/forms'
5 import { RouterModule } from '@angular/router'
6 import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component'
7 import { HelpComponent } from '@app/shared/misc/help.component'
8 import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive'
9 import { MarkdownService } from '@app/videos/shared'
11 import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
12 import { ModalModule } from 'ngx-bootstrap/modal'
13 import { PopoverModule } from 'ngx-bootstrap/popover'
14 import { TabsModule } from 'ngx-bootstrap/tabs'
15 import { TooltipModule } from 'ngx-bootstrap/tooltip'
16 import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
17 import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
19 import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
20 import { DeleteButtonComponent } from './misc/delete-button.component'
21 import { EditButtonComponent } from './misc/edit-button.component'
22 import { FromNowPipe } from './misc/from-now.pipe'
23 import { LoaderComponent } from './misc/loader.component'
24 import { NumberFormatterPipe } from './misc/number-formatter.pipe'
25 import { ObjectLengthPipe } from './misc/object-length.pipe'
26 import { RestExtractor, RestService } from './rest'
27 import { UserService } from './users'
28 import { VideoAbuseService } from './video-abuse'
29 import { VideoBlacklistService } from './video-blacklist'
30 import { VideoMiniatureComponent } from './video/video-miniature.component'
31 import { VideoFeedComponent } from './video/video-feed.component'
32 import { VideoThumbnailComponent } from './video/video-thumbnail.component'
33 import { VideoService } from './video/video.service'
34 import { AccountService } from '@app/shared/account/account.service'
35 import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
36 import { I18n } from '@ngx-translate/i18n-polyfill'
37 import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
39 CustomConfigValidatorsService,
40 LoginValidatorsService,
41 ReactiveFileComponent,
42 ResetPasswordValidatorsService,
43 UserValidatorsService,
44 VideoAbuseValidatorsService,
45 VideoChannelValidatorsService,
46 VideoCommentValidatorsService,
47 VideoValidatorsService
48 } from '@app/shared/forms'
49 import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
50 import { ScreenService } from '@app/shared/misc/screen.service'
51 import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
52 import { VideoCaptionService } from '@app/shared/video-caption'
53 import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
54 import { VideoImportService } from '@app/shared/video-import/video-import.service'
64 BsDropdownModule.forRoot(),
65 ModalModule.forRoot(),
66 PopoverModule.forRoot(),
68 TooltipModule.forRoot(),
76 VideoThumbnailComponent,
77 VideoMiniatureComponent,
79 DeleteButtonComponent,
84 MarkdownTextareaComponent,
85 InfiniteScrollerDirective,
87 ReactiveFileComponent,
88 PeertubeCheckboxComponent
108 VideoThumbnailComponent,
109 VideoMiniatureComponent,
111 DeleteButtonComponent,
113 MarkdownTextareaComponent,
114 InfiniteScrollerDirective,
116 ReactiveFileComponent,
117 PeertubeCheckboxComponent,
125 AUTH_INTERCEPTOR_PROVIDER,
129 VideoBlacklistService,
137 FormValidatorService,
138 CustomConfigValidatorsService,
139 LoginValidatorsService,
140 ResetPasswordValidatorsService,
141 UserValidatorsService,
142 VideoAbuseValidatorsService,
143 VideoChannelValidatorsService,
144 VideoCommentValidatorsService,
145 VideoValidatorsService,
146 VideoCaptionsValidatorsService,
149 I18nPrimengCalendarService,
155 export class SharedModule { }