]>
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' |
66b16caf | 9 | import { MarkdownService } from '@app/videos/shared' |
693b1aba | 10 | |
62e23e40 | 11 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' |
3523b64a | 12 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' |
693b1aba | 13 | |
d592e0a9 | 14 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
74d63469 | 15 | import { ButtonComponent } from './buttons/button.component' |
eacb25c4 C |
16 | import { DeleteButtonComponent } from './buttons/delete-button.component' |
17 | import { EditButtonComponent } from './buttons/edit-button.component' | |
2bbb3412 | 18 | import { FromNowPipe } from './misc/from-now.pipe' |
9bf9d2a5 | 19 | import { LoaderComponent } from './misc/loader.component' |
2bbb3412 | 20 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' |
244e76a5 | 21 | import { ObjectLengthPipe } from './misc/object-length.pipe' |
df98563e | 22 | import { RestExtractor, RestService } from './rest' |
df98563e C |
23 | import { UserService } from './users' |
24 | import { VideoAbuseService } from './video-abuse' | |
35bf0c83 | 25 | import { VideoBlacklistService } from './video-blacklist' |
74d63469 | 26 | import { VideoOwnershipService } from './video-ownership' |
b1fa3eba | 27 | import { VideoMiniatureComponent } from './video/video-miniature.component' |
244e76a5 | 28 | import { VideoFeedComponent } from './video/video-feed.component' |
202f6b6c C |
29 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' |
30 | import { VideoService } from './video/video.service' | |
0626e7af | 31 | import { AccountService } from '@app/shared/account/account.service' |
d3e91a5f | 32 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
989e526a | 33 | import { I18n } from '@ngx-translate/i18n-polyfill' |
d18d6478 | 34 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
e309822b C |
35 | import { |
36 | CustomConfigValidatorsService, | |
57c36b27 C |
37 | LoginValidatorsService, |
38 | ReactiveFileComponent, | |
e309822b | 39 | ResetPasswordValidatorsService, |
57c36b27 | 40 | UserValidatorsService, |
22a16e36 C |
41 | VideoAbuseValidatorsService, |
42 | VideoBlacklistValidatorsService, | |
57c36b27 C |
43 | VideoChannelValidatorsService, |
44 | VideoCommentValidatorsService, | |
74d63469 GR |
45 | VideoValidatorsService, |
46 | VideoChangeOwnershipValidatorsService, VideoAcceptOwnershipValidatorsService | |
e309822b | 47 | } from '@app/shared/forms' |
bbe0f064 C |
48 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' |
49 | import { ScreenService } from '@app/shared/misc/screen.service' | |
40e87e9e C |
50 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' |
51 | import { VideoCaptionService } from '@app/shared/video-caption' | |
0f7fedc3 | 52 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' |
fbad87b0 | 53 | import { VideoImportService } from '@app/shared/video-import/video-import.service' |
eacb25c4 | 54 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' |
63347a0f | 55 | import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' |
660d11e9 | 56 | import { SubscribeButtonComponent, RemoteSubscribeComponent, UserSubscriptionService } from '@app/shared/user-subscription' |
41a676db | 57 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
2d3741d6 | 58 | import { OverviewService } from '@app/shared/overview' |
e724fa93 C |
59 | import { UserBanModalComponent } from '@app/shared/moderation' |
60 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
693b1aba C |
61 | |
62 | @NgModule({ | |
63 | imports: [ | |
64 | CommonModule, | |
65 | FormsModule, | |
66 | ReactiveFormsModule, | |
693b1aba | 67 | RouterModule, |
d592e0a9 | 68 | HttpClientModule, |
693b1aba | 69 | |
d77ad726 C |
70 | NgbDropdownModule, |
71 | NgbModalModule, | |
72 | NgbPopoverModule, | |
73 | NgbTabsetModule, | |
74 | NgbTooltipModule, | |
d396a937 | 75 | |
202f6b6c | 76 | PrimeSharedModule, |
6de36768 | 77 | NgPipesModule |
693b1aba C |
78 | ], |
79 | ||
80 | declarations: [ | |
9bf9d2a5 | 81 | LoaderComponent, |
202f6b6c | 82 | VideoThumbnailComponent, |
b1fa3eba | 83 | VideoMiniatureComponent, |
244e76a5 | 84 | VideoFeedComponent, |
74d63469 | 85 | ButtonComponent, |
cd83ea1b C |
86 | DeleteButtonComponent, |
87 | EditButtonComponent, | |
eacb25c4 | 88 | ActionDropdownComponent, |
9bf9d2a5 | 89 | NumberFormatterPipe, |
244e76a5 | 90 | ObjectLengthPipe, |
66b16caf | 91 | FromNowPipe, |
0cd4344f | 92 | MarkdownTextareaComponent, |
8a8e02a4 | 93 | InfiniteScrollerDirective, |
40e87e9e | 94 | HelpComponent, |
0f7fedc3 | 95 | ReactiveFileComponent, |
22a16e36 | 96 | PeertubeCheckboxComponent, |
41a676db | 97 | SubscribeButtonComponent, |
660d11e9 | 98 | RemoteSubscribeComponent, |
e724fa93 C |
99 | InstanceFeaturesTableComponent, |
100 | UserBanModalComponent, | |
101 | UserModerationDropdownComponent | |
693b1aba C |
102 | ], |
103 | ||
104 | exports: [ | |
105 | CommonModule, | |
106 | FormsModule, | |
107 | ReactiveFormsModule, | |
693b1aba | 108 | RouterModule, |
d592e0a9 | 109 | HttpClientModule, |
693b1aba | 110 | |
63347a0f C |
111 | NgbDropdownModule, |
112 | NgbModalModule, | |
113 | NgbPopoverModule, | |
114 | NgbTabsetModule, | |
115 | NgbTooltipModule, | |
116 | ||
d592e0a9 | 117 | PrimeSharedModule, |
693b1aba | 118 | BytesPipe, |
99fdec46 | 119 | KeysPipe, |
693b1aba | 120 | |
9bf9d2a5 | 121 | LoaderComponent, |
202f6b6c | 122 | VideoThumbnailComponent, |
b1fa3eba | 123 | VideoMiniatureComponent, |
244e76a5 | 124 | VideoFeedComponent, |
74d63469 | 125 | ButtonComponent, |
cd83ea1b C |
126 | DeleteButtonComponent, |
127 | EditButtonComponent, | |
eacb25c4 | 128 | ActionDropdownComponent, |
66b16caf | 129 | MarkdownTextareaComponent, |
0cd4344f | 130 | InfiniteScrollerDirective, |
8a8e02a4 | 131 | HelpComponent, |
40e87e9e | 132 | ReactiveFileComponent, |
0f7fedc3 | 133 | PeertubeCheckboxComponent, |
22a16e36 | 134 | SubscribeButtonComponent, |
660d11e9 | 135 | RemoteSubscribeComponent, |
41a676db | 136 | InstanceFeaturesTableComponent, |
e724fa93 C |
137 | UserBanModalComponent, |
138 | UserModerationDropdownComponent, | |
9bf9d2a5 C |
139 | |
140 | NumberFormatterPipe, | |
244e76a5 | 141 | ObjectLengthPipe, |
9bf9d2a5 | 142 | FromNowPipe |
693b1aba C |
143 | ], |
144 | ||
145 | providers: [ | |
d592e0a9 | 146 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
147 | RestExtractor, |
148 | RestService, | |
e2a2d6c8 | 149 | VideoAbuseService, |
35bf0c83 | 150 | VideoBlacklistService, |
74d63469 | 151 | VideoOwnershipService, |
202f6b6c | 152 | UserService, |
66b16caf | 153 | VideoService, |
0626e7af | 154 | AccountService, |
d3e91a5f | 155 | MarkdownService, |
989e526a | 156 | VideoChannelService, |
40e87e9e | 157 | VideoCaptionService, |
26b7305a | 158 | VideoImportService, |
22a16e36 | 159 | UserSubscriptionService, |
e309822b | 160 | |
d18d6478 | 161 | FormValidatorService, |
e309822b C |
162 | CustomConfigValidatorsService, |
163 | LoginValidatorsService, | |
164 | ResetPasswordValidatorsService, | |
165 | UserValidatorsService, | |
166 | VideoAbuseValidatorsService, | |
167 | VideoChannelValidatorsService, | |
168 | VideoCommentValidatorsService, | |
169 | VideoValidatorsService, | |
40e87e9e | 170 | VideoCaptionsValidatorsService, |
26b7305a | 171 | VideoBlacklistValidatorsService, |
2d3741d6 | 172 | OverviewService, |
74d63469 GR |
173 | VideoChangeOwnershipValidatorsService, |
174 | VideoAcceptOwnershipValidatorsService, | |
e309822b | 175 | |
bbe0f064 C |
176 | I18nPrimengCalendarService, |
177 | ScreenService, | |
178 | ||
989e526a | 179 | I18n |
693b1aba C |
180 | ] |
181 | }) | |
182 | export class SharedModule { } |