]>
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, | |
2fbe7f19 | 48 | VideoValidatorsService |
e309822b | 49 | } from '@app/shared/forms' |
bbe0f064 C |
50 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' |
51 | import { ScreenService } from '@app/shared/misc/screen.service' | |
40e87e9e C |
52 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' |
53 | import { VideoCaptionService } from '@app/shared/video-caption' | |
0f7fedc3 | 54 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' |
fbad87b0 | 55 | import { VideoImportService } from '@app/shared/video-import/video-import.service' |
eacb25c4 | 56 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' |
63347a0f | 57 | import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' |
2fbe7f19 | 58 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' |
41a676db | 59 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
2d3741d6 | 60 | import { OverviewService } from '@app/shared/overview' |
e724fa93 C |
61 | import { UserBanModalComponent } from '@app/shared/moderation' |
62 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
af5767ff | 63 | import { BlocklistService } from '@app/shared/blocklist' |
ddb83e49 | 64 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' |
80bfd33c | 65 | import { UserHistoryService } from '@app/shared/users/user-history.service' |
2f1548fd C |
66 | import { UserNotificationService } from '@app/shared/users/user-notification.service' |
67 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
d3e56c0c | 68 | import { InstanceService } from '@app/shared/instance/instance.service' |
1506307f | 69 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' |
457bb213 C |
70 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' |
71 | import { GlobalIconComponent } from '@app/shared/icons/global-icon.component' | |
b28e4e5e | 72 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' |
693b1aba C |
73 | |
74 | @NgModule({ | |
75 | imports: [ | |
76 | CommonModule, | |
77 | FormsModule, | |
78 | ReactiveFormsModule, | |
693b1aba | 79 | RouterModule, |
d592e0a9 | 80 | HttpClientModule, |
693b1aba | 81 | |
d77ad726 C |
82 | NgbDropdownModule, |
83 | NgbModalModule, | |
84 | NgbPopoverModule, | |
85 | NgbTabsetModule, | |
86 | NgbTooltipModule, | |
d396a937 | 87 | |
202f6b6c | 88 | PrimeSharedModule, |
6de36768 | 89 | NgPipesModule |
693b1aba C |
90 | ], |
91 | ||
92 | declarations: [ | |
9bf9d2a5 | 93 | LoaderComponent, |
b28e4e5e | 94 | SmallLoaderComponent, |
202f6b6c | 95 | VideoThumbnailComponent, |
b1fa3eba | 96 | VideoMiniatureComponent, |
c199c427 | 97 | FeedComponent, |
74d63469 | 98 | ButtonComponent, |
cd83ea1b C |
99 | DeleteButtonComponent, |
100 | EditButtonComponent, | |
eacb25c4 | 101 | ActionDropdownComponent, |
9bf9d2a5 | 102 | NumberFormatterPipe, |
244e76a5 | 103 | ObjectLengthPipe, |
66b16caf | 104 | FromNowPipe, |
0cd4344f | 105 | MarkdownTextareaComponent, |
8a8e02a4 | 106 | InfiniteScrollerDirective, |
2fbe7f19 | 107 | TextareaAutoResizeDirective, |
40e87e9e | 108 | HelpComponent, |
0f7fedc3 | 109 | ReactiveFileComponent, |
22a16e36 | 110 | PeertubeCheckboxComponent, |
41a676db | 111 | SubscribeButtonComponent, |
660d11e9 | 112 | RemoteSubscribeComponent, |
e724fa93 C |
113 | InstanceFeaturesTableComponent, |
114 | UserBanModalComponent, | |
ddb83e49 | 115 | UserModerationDropdownComponent, |
2f1548fd | 116 | TopMenuDropdownComponent, |
457bb213 C |
117 | UserNotificationsComponent, |
118 | ConfirmComponent, | |
119 | GlobalIconComponent | |
693b1aba C |
120 | ], |
121 | ||
122 | exports: [ | |
123 | CommonModule, | |
124 | FormsModule, | |
125 | ReactiveFormsModule, | |
693b1aba | 126 | RouterModule, |
d592e0a9 | 127 | HttpClientModule, |
693b1aba | 128 | |
63347a0f C |
129 | NgbDropdownModule, |
130 | NgbModalModule, | |
131 | NgbPopoverModule, | |
132 | NgbTabsetModule, | |
133 | NgbTooltipModule, | |
134 | ||
d592e0a9 | 135 | PrimeSharedModule, |
693b1aba | 136 | BytesPipe, |
99fdec46 | 137 | KeysPipe, |
693b1aba | 138 | |
9bf9d2a5 | 139 | LoaderComponent, |
b28e4e5e | 140 | SmallLoaderComponent, |
202f6b6c | 141 | VideoThumbnailComponent, |
b1fa3eba | 142 | VideoMiniatureComponent, |
c199c427 | 143 | FeedComponent, |
74d63469 | 144 | ButtonComponent, |
cd83ea1b C |
145 | DeleteButtonComponent, |
146 | EditButtonComponent, | |
eacb25c4 | 147 | ActionDropdownComponent, |
66b16caf | 148 | MarkdownTextareaComponent, |
0cd4344f | 149 | InfiniteScrollerDirective, |
2fbe7f19 | 150 | TextareaAutoResizeDirective, |
8a8e02a4 | 151 | HelpComponent, |
40e87e9e | 152 | ReactiveFileComponent, |
0f7fedc3 | 153 | PeertubeCheckboxComponent, |
22a16e36 | 154 | SubscribeButtonComponent, |
660d11e9 | 155 | RemoteSubscribeComponent, |
41a676db | 156 | InstanceFeaturesTableComponent, |
e724fa93 C |
157 | UserBanModalComponent, |
158 | UserModerationDropdownComponent, | |
ddb83e49 | 159 | TopMenuDropdownComponent, |
2f1548fd | 160 | UserNotificationsComponent, |
457bb213 C |
161 | ConfirmComponent, |
162 | GlobalIconComponent, | |
9bf9d2a5 C |
163 | |
164 | NumberFormatterPipe, | |
244e76a5 | 165 | ObjectLengthPipe, |
9bf9d2a5 | 166 | FromNowPipe |
693b1aba C |
167 | ], |
168 | ||
169 | providers: [ | |
d592e0a9 | 170 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
171 | RestExtractor, |
172 | RestService, | |
e2a2d6c8 | 173 | VideoAbuseService, |
35bf0c83 | 174 | VideoBlacklistService, |
74d63469 | 175 | VideoOwnershipService, |
202f6b6c | 176 | UserService, |
66b16caf | 177 | VideoService, |
0626e7af | 178 | AccountService, |
989e526a | 179 | VideoChannelService, |
40e87e9e | 180 | VideoCaptionService, |
26b7305a | 181 | VideoImportService, |
22a16e36 | 182 | UserSubscriptionService, |
e309822b | 183 | |
d18d6478 | 184 | FormValidatorService, |
e309822b C |
185 | CustomConfigValidatorsService, |
186 | LoginValidatorsService, | |
187 | ResetPasswordValidatorsService, | |
188 | UserValidatorsService, | |
189 | VideoAbuseValidatorsService, | |
190 | VideoChannelValidatorsService, | |
191 | VideoCommentValidatorsService, | |
192 | VideoValidatorsService, | |
40e87e9e | 193 | VideoCaptionsValidatorsService, |
26b7305a | 194 | VideoBlacklistValidatorsService, |
2d3741d6 | 195 | OverviewService, |
74d63469 GR |
196 | VideoChangeOwnershipValidatorsService, |
197 | VideoAcceptOwnershipValidatorsService, | |
d3e56c0c | 198 | InstanceValidatorsService, |
af5767ff | 199 | BlocklistService, |
80bfd33c | 200 | UserHistoryService, |
d3e56c0c | 201 | InstanceService, |
e309822b | 202 | |
1506307f C |
203 | MarkdownService, |
204 | LinkifierService, | |
205 | HtmlRendererService, | |
206 | ||
bbe0f064 C |
207 | I18nPrimengCalendarService, |
208 | ScreenService, | |
209 | ||
2f1548fd C |
210 | UserNotificationService, |
211 | ||
989e526a | 212 | I18n |
693b1aba C |
213 | ] |
214 | }) | |
215 | export class SharedModule { } |