]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Don't crash on error in notification popup
[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'
693b1aba 9
62e23e40 10import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
3523b64a 11import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
693b1aba 12
d592e0a9 13import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
74d63469 14import { ButtonComponent } from './buttons/button.component'
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'
74d63469 25import { VideoOwnershipService } from './video-ownership'
b1fa3eba 26import { VideoMiniatureComponent } from './video/video-miniature.component'
c199c427 27import { FeedComponent } from './video/feed.component'
202f6b6c
C
28import { VideoThumbnailComponent } from './video/video-thumbnail.component'
29import { VideoService } from './video/video.service'
0626e7af 30import { AccountService } from '@app/shared/account/account.service'
d3e91a5f 31import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
989e526a 32import { I18n } from '@ngx-translate/i18n-polyfill'
d18d6478 33import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
e309822b
C
34import {
35 CustomConfigValidatorsService,
1506307f 36 InstanceValidatorsService,
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'
d3e56c0c 68import { InstanceService } from '@app/shared/instance/instance.service'
1506307f 69import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer'
457bb213
C
70import { ConfirmComponent } from '@app/shared/confirm/confirm.component'
71import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
693b1aba
C
72
73@NgModule({
74 imports: [
75 CommonModule,
76 FormsModule,
77 ReactiveFormsModule,
693b1aba 78 RouterModule,
d592e0a9 79 HttpClientModule,
693b1aba 80
d77ad726
C
81 NgbDropdownModule,
82 NgbModalModule,
83 NgbPopoverModule,
84 NgbTabsetModule,
85 NgbTooltipModule,
d396a937 86
202f6b6c 87 PrimeSharedModule,
6de36768 88 NgPipesModule
693b1aba
C
89 ],
90
91 declarations: [
9bf9d2a5 92 LoaderComponent,
202f6b6c 93 VideoThumbnailComponent,
b1fa3eba 94 VideoMiniatureComponent,
c199c427 95 FeedComponent,
74d63469 96 ButtonComponent,
cd83ea1b
C
97 DeleteButtonComponent,
98 EditButtonComponent,
eacb25c4 99 ActionDropdownComponent,
9bf9d2a5 100 NumberFormatterPipe,
244e76a5 101 ObjectLengthPipe,
66b16caf 102 FromNowPipe,
0cd4344f 103 MarkdownTextareaComponent,
8a8e02a4 104 InfiniteScrollerDirective,
2fbe7f19 105 TextareaAutoResizeDirective,
40e87e9e 106 HelpComponent,
0f7fedc3 107 ReactiveFileComponent,
22a16e36 108 PeertubeCheckboxComponent,
41a676db 109 SubscribeButtonComponent,
660d11e9 110 RemoteSubscribeComponent,
e724fa93
C
111 InstanceFeaturesTableComponent,
112 UserBanModalComponent,
ddb83e49 113 UserModerationDropdownComponent,
2f1548fd 114 TopMenuDropdownComponent,
457bb213
C
115 UserNotificationsComponent,
116 ConfirmComponent,
117 GlobalIconComponent
693b1aba
C
118 ],
119
120 exports: [
121 CommonModule,
122 FormsModule,
123 ReactiveFormsModule,
693b1aba 124 RouterModule,
d592e0a9 125 HttpClientModule,
693b1aba 126
63347a0f
C
127 NgbDropdownModule,
128 NgbModalModule,
129 NgbPopoverModule,
130 NgbTabsetModule,
131 NgbTooltipModule,
132
d592e0a9 133 PrimeSharedModule,
693b1aba 134 BytesPipe,
99fdec46 135 KeysPipe,
693b1aba 136
9bf9d2a5 137 LoaderComponent,
202f6b6c 138 VideoThumbnailComponent,
b1fa3eba 139 VideoMiniatureComponent,
c199c427 140 FeedComponent,
74d63469 141 ButtonComponent,
cd83ea1b
C
142 DeleteButtonComponent,
143 EditButtonComponent,
eacb25c4 144 ActionDropdownComponent,
66b16caf 145 MarkdownTextareaComponent,
0cd4344f 146 InfiniteScrollerDirective,
2fbe7f19 147 TextareaAutoResizeDirective,
8a8e02a4 148 HelpComponent,
40e87e9e 149 ReactiveFileComponent,
0f7fedc3 150 PeertubeCheckboxComponent,
22a16e36 151 SubscribeButtonComponent,
660d11e9 152 RemoteSubscribeComponent,
41a676db 153 InstanceFeaturesTableComponent,
e724fa93
C
154 UserBanModalComponent,
155 UserModerationDropdownComponent,
ddb83e49 156 TopMenuDropdownComponent,
2f1548fd 157 UserNotificationsComponent,
457bb213
C
158 ConfirmComponent,
159 GlobalIconComponent,
9bf9d2a5
C
160
161 NumberFormatterPipe,
244e76a5 162 ObjectLengthPipe,
9bf9d2a5 163 FromNowPipe
693b1aba
C
164 ],
165
166 providers: [
d592e0a9 167 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
168 RestExtractor,
169 RestService,
e2a2d6c8 170 VideoAbuseService,
35bf0c83 171 VideoBlacklistService,
74d63469 172 VideoOwnershipService,
202f6b6c 173 UserService,
66b16caf 174 VideoService,
0626e7af 175 AccountService,
989e526a 176 VideoChannelService,
40e87e9e 177 VideoCaptionService,
26b7305a 178 VideoImportService,
22a16e36 179 UserSubscriptionService,
e309822b 180
d18d6478 181 FormValidatorService,
e309822b
C
182 CustomConfigValidatorsService,
183 LoginValidatorsService,
184 ResetPasswordValidatorsService,
185 UserValidatorsService,
186 VideoAbuseValidatorsService,
187 VideoChannelValidatorsService,
188 VideoCommentValidatorsService,
189 VideoValidatorsService,
40e87e9e 190 VideoCaptionsValidatorsService,
26b7305a 191 VideoBlacklistValidatorsService,
2d3741d6 192 OverviewService,
74d63469
GR
193 VideoChangeOwnershipValidatorsService,
194 VideoAcceptOwnershipValidatorsService,
d3e56c0c 195 InstanceValidatorsService,
af5767ff 196 BlocklistService,
80bfd33c 197 UserHistoryService,
d3e56c0c 198 InstanceService,
e309822b 199
1506307f
C
200 MarkdownService,
201 LinkifierService,
202 HtmlRendererService,
203
bbe0f064
C
204 I18nPrimengCalendarService,
205 ScreenService,
206
2f1548fd
C
207 UserNotificationService,
208
989e526a 209 I18n
693b1aba
C
210 ]
211})
212export class SharedModule { }