]>
Commit | Line | Data |
---|---|---|
df98563e | 1 | import { CommonModule } from '@angular/common' |
9bf9d2a5 C |
2 | import { HttpClientModule } from '@angular/common/http' |
3 | import { NgModule } from '@angular/core' | |
df98563e C |
4 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' |
5 | import { RouterModule } from '@angular/router' | |
66b16caf | 6 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' |
8a8e02a4 | 7 | import { HelpComponent } from '@app/shared/misc/help.component' |
0cd4344f | 8 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' |
693b1aba | 9 | |
62e23e40 | 10 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' |
3523b64a | 11 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' |
693b1aba | 12 | |
d592e0a9 | 13 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
74d63469 | 14 | import { ButtonComponent } from './buttons/button.component' |
eacb25c4 C |
15 | import { DeleteButtonComponent } from './buttons/delete-button.component' |
16 | import { EditButtonComponent } from './buttons/edit-button.component' | |
2bbb3412 | 17 | import { FromNowPipe } from './misc/from-now.pipe' |
9bf9d2a5 | 18 | import { LoaderComponent } from './misc/loader.component' |
2bbb3412 | 19 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' |
244e76a5 | 20 | import { ObjectLengthPipe } from './misc/object-length.pipe' |
df98563e | 21 | import { RestExtractor, RestService } from './rest' |
df98563e C |
22 | import { UserService } from './users' |
23 | import { VideoAbuseService } from './video-abuse' | |
35bf0c83 | 24 | import { VideoBlacklistService } from './video-blacklist' |
74d63469 | 25 | import { VideoOwnershipService } from './video-ownership' |
b1fa3eba | 26 | import { VideoMiniatureComponent } from './video/video-miniature.component' |
c199c427 | 27 | import { FeedComponent } from './video/feed.component' |
202f6b6c C |
28 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' |
29 | import { VideoService } from './video/video.service' | |
0626e7af | 30 | import { AccountService } from '@app/shared/account/account.service' |
d3e91a5f | 31 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
989e526a | 32 | import { I18n } from '@ngx-translate/i18n-polyfill' |
d18d6478 | 33 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
e309822b C |
34 | import { |
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, | |
830b4faf | 48 | VideoPlaylistValidatorsService, |
2fbe7f19 | 49 | VideoValidatorsService |
e309822b | 50 | } from '@app/shared/forms' |
bbe0f064 C |
51 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' |
52 | import { ScreenService } from '@app/shared/misc/screen.service' | |
40e87e9e C |
53 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' |
54 | import { VideoCaptionService } from '@app/shared/video-caption' | |
0f7fedc3 | 55 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' |
fbad87b0 | 56 | import { VideoImportService } from '@app/shared/video-import/video-import.service' |
eacb25c4 | 57 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' |
63347a0f | 58 | import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' |
2fbe7f19 | 59 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' |
41a676db | 60 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
2d3741d6 | 61 | import { OverviewService } from '@app/shared/overview' |
e724fa93 C |
62 | import { UserBanModalComponent } from '@app/shared/moderation' |
63 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
af5767ff | 64 | import { BlocklistService } from '@app/shared/blocklist' |
ddb83e49 | 65 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' |
80bfd33c | 66 | import { UserHistoryService } from '@app/shared/users/user-history.service' |
2f1548fd C |
67 | import { UserNotificationService } from '@app/shared/users/user-notification.service' |
68 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
d3e56c0c | 69 | import { InstanceService } from '@app/shared/instance/instance.service' |
1506307f | 70 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' |
457bb213 | 71 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' |
b28e4e5e | 72 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' |
830b4faf C |
73 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' |
74 | import { ImageUploadComponent } from '@app/shared/images/image-upload.component' | |
75 | import { GlobalIconComponent } from '@app/shared/images/global-icon.component' | |
76 | import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component' | |
693b1aba C |
77 | |
78 | @NgModule({ | |
79 | imports: [ | |
80 | CommonModule, | |
81 | FormsModule, | |
82 | ReactiveFormsModule, | |
693b1aba | 83 | RouterModule, |
d592e0a9 | 84 | HttpClientModule, |
693b1aba | 85 | |
d77ad726 C |
86 | NgbDropdownModule, |
87 | NgbModalModule, | |
88 | NgbPopoverModule, | |
89 | NgbTabsetModule, | |
90 | NgbTooltipModule, | |
d396a937 | 91 | |
202f6b6c | 92 | PrimeSharedModule, |
6de36768 | 93 | NgPipesModule |
693b1aba C |
94 | ], |
95 | ||
96 | declarations: [ | |
9bf9d2a5 | 97 | LoaderComponent, |
b28e4e5e | 98 | SmallLoaderComponent, |
830b4faf | 99 | |
202f6b6c | 100 | VideoThumbnailComponent, |
b1fa3eba | 101 | VideoMiniatureComponent, |
830b4faf C |
102 | VideoPlaylistMiniatureComponent, |
103 | ||
c199c427 | 104 | FeedComponent, |
74d63469 | 105 | ButtonComponent, |
cd83ea1b C |
106 | DeleteButtonComponent, |
107 | EditButtonComponent, | |
eacb25c4 | 108 | ActionDropdownComponent, |
9bf9d2a5 | 109 | NumberFormatterPipe, |
244e76a5 | 110 | ObjectLengthPipe, |
66b16caf | 111 | FromNowPipe, |
0cd4344f | 112 | MarkdownTextareaComponent, |
8a8e02a4 | 113 | InfiniteScrollerDirective, |
2fbe7f19 | 114 | TextareaAutoResizeDirective, |
40e87e9e | 115 | HelpComponent, |
0f7fedc3 | 116 | ReactiveFileComponent, |
22a16e36 | 117 | PeertubeCheckboxComponent, |
41a676db | 118 | SubscribeButtonComponent, |
660d11e9 | 119 | RemoteSubscribeComponent, |
e724fa93 C |
120 | InstanceFeaturesTableComponent, |
121 | UserBanModalComponent, | |
ddb83e49 | 122 | UserModerationDropdownComponent, |
2f1548fd | 123 | TopMenuDropdownComponent, |
457bb213 C |
124 | UserNotificationsComponent, |
125 | ConfirmComponent, | |
830b4faf C |
126 | |
127 | GlobalIconComponent, | |
128 | ImageUploadComponent | |
693b1aba C |
129 | ], |
130 | ||
131 | exports: [ | |
132 | CommonModule, | |
133 | FormsModule, | |
134 | ReactiveFormsModule, | |
693b1aba | 135 | RouterModule, |
d592e0a9 | 136 | HttpClientModule, |
693b1aba | 137 | |
63347a0f C |
138 | NgbDropdownModule, |
139 | NgbModalModule, | |
140 | NgbPopoverModule, | |
141 | NgbTabsetModule, | |
142 | NgbTooltipModule, | |
143 | ||
d592e0a9 | 144 | PrimeSharedModule, |
693b1aba | 145 | BytesPipe, |
99fdec46 | 146 | KeysPipe, |
693b1aba | 147 | |
9bf9d2a5 | 148 | LoaderComponent, |
b28e4e5e | 149 | SmallLoaderComponent, |
830b4faf | 150 | |
202f6b6c | 151 | VideoThumbnailComponent, |
b1fa3eba | 152 | VideoMiniatureComponent, |
830b4faf C |
153 | VideoPlaylistMiniatureComponent, |
154 | ||
c199c427 | 155 | FeedComponent, |
74d63469 | 156 | ButtonComponent, |
cd83ea1b C |
157 | DeleteButtonComponent, |
158 | EditButtonComponent, | |
eacb25c4 | 159 | ActionDropdownComponent, |
66b16caf | 160 | MarkdownTextareaComponent, |
0cd4344f | 161 | InfiniteScrollerDirective, |
2fbe7f19 | 162 | TextareaAutoResizeDirective, |
8a8e02a4 | 163 | HelpComponent, |
40e87e9e | 164 | ReactiveFileComponent, |
0f7fedc3 | 165 | PeertubeCheckboxComponent, |
22a16e36 | 166 | SubscribeButtonComponent, |
660d11e9 | 167 | RemoteSubscribeComponent, |
41a676db | 168 | InstanceFeaturesTableComponent, |
e724fa93 C |
169 | UserBanModalComponent, |
170 | UserModerationDropdownComponent, | |
ddb83e49 | 171 | TopMenuDropdownComponent, |
2f1548fd | 172 | UserNotificationsComponent, |
457bb213 | 173 | ConfirmComponent, |
830b4faf | 174 | |
457bb213 | 175 | GlobalIconComponent, |
830b4faf | 176 | ImageUploadComponent, |
9bf9d2a5 C |
177 | |
178 | NumberFormatterPipe, | |
244e76a5 | 179 | ObjectLengthPipe, |
9bf9d2a5 | 180 | FromNowPipe |
693b1aba C |
181 | ], |
182 | ||
183 | providers: [ | |
d592e0a9 | 184 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
185 | RestExtractor, |
186 | RestService, | |
e2a2d6c8 | 187 | VideoAbuseService, |
35bf0c83 | 188 | VideoBlacklistService, |
74d63469 | 189 | VideoOwnershipService, |
202f6b6c | 190 | UserService, |
66b16caf | 191 | VideoService, |
0626e7af | 192 | AccountService, |
989e526a | 193 | VideoChannelService, |
830b4faf | 194 | VideoPlaylistService, |
40e87e9e | 195 | VideoCaptionService, |
26b7305a | 196 | VideoImportService, |
22a16e36 | 197 | UserSubscriptionService, |
e309822b | 198 | |
d18d6478 | 199 | FormValidatorService, |
e309822b C |
200 | CustomConfigValidatorsService, |
201 | LoginValidatorsService, | |
202 | ResetPasswordValidatorsService, | |
203 | UserValidatorsService, | |
830b4faf | 204 | VideoPlaylistValidatorsService, |
e309822b C |
205 | VideoAbuseValidatorsService, |
206 | VideoChannelValidatorsService, | |
207 | VideoCommentValidatorsService, | |
208 | VideoValidatorsService, | |
40e87e9e | 209 | VideoCaptionsValidatorsService, |
26b7305a | 210 | VideoBlacklistValidatorsService, |
2d3741d6 | 211 | OverviewService, |
74d63469 GR |
212 | VideoChangeOwnershipValidatorsService, |
213 | VideoAcceptOwnershipValidatorsService, | |
d3e56c0c | 214 | InstanceValidatorsService, |
af5767ff | 215 | BlocklistService, |
80bfd33c | 216 | UserHistoryService, |
d3e56c0c | 217 | InstanceService, |
e309822b | 218 | |
1506307f C |
219 | MarkdownService, |
220 | LinkifierService, | |
221 | HtmlRendererService, | |
222 | ||
bbe0f064 C |
223 | I18nPrimengCalendarService, |
224 | ScreenService, | |
225 | ||
2f1548fd C |
226 | UserNotificationService, |
227 | ||
989e526a | 228 | I18n |
693b1aba C |
229 | ] |
230 | }) | |
231 | export class SharedModule { } |