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