diff options
Diffstat (limited to 'client/src/app/shared/shared.module.ts')
-rw-r--r-- | client/src/app/shared/shared.module.ts | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 9647a7966..6f8625c7e 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts | |||
@@ -6,7 +6,6 @@ import { RouterModule } from '@angular/router' | |||
6 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' | 6 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' |
7 | import { HelpComponent } from '@app/shared/misc/help.component' | 7 | import { HelpComponent } from '@app/shared/misc/help.component' |
8 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' | 8 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' |
9 | import { MarkdownService } from '@app/videos/shared' | ||
10 | 9 | ||
11 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | 10 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' |
12 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | 11 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' |
@@ -25,7 +24,7 @@ import { VideoAbuseService } from './video-abuse' | |||
25 | import { VideoBlacklistService } from './video-blacklist' | 24 | import { VideoBlacklistService } from './video-blacklist' |
26 | import { VideoOwnershipService } from './video-ownership' | 25 | import { VideoOwnershipService } from './video-ownership' |
27 | import { VideoMiniatureComponent } from './video/video-miniature.component' | 26 | import { VideoMiniatureComponent } from './video/video-miniature.component' |
28 | import { VideoFeedComponent } from './video/video-feed.component' | 27 | import { FeedComponent } from './video/feed.component' |
29 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | 28 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' |
30 | import { VideoService } from './video/video.service' | 29 | import { VideoService } from './video/video.service' |
31 | import { AccountService } from '@app/shared/account/account.service' | 30 | import { AccountService } from '@app/shared/account/account.service' |
@@ -34,16 +33,19 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
34 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 33 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
35 | import { | 34 | import { |
36 | CustomConfigValidatorsService, | 35 | CustomConfigValidatorsService, |
36 | InstanceValidatorsService, | ||
37 | LoginValidatorsService, | 37 | LoginValidatorsService, |
38 | ReactiveFileComponent, | 38 | ReactiveFileComponent, |
39 | ResetPasswordValidatorsService, | 39 | ResetPasswordValidatorsService, |
40 | TextareaAutoResizeDirective, | ||
40 | UserValidatorsService, | 41 | UserValidatorsService, |
41 | VideoAbuseValidatorsService, | 42 | VideoAbuseValidatorsService, |
43 | VideoAcceptOwnershipValidatorsService, | ||
42 | VideoBlacklistValidatorsService, | 44 | VideoBlacklistValidatorsService, |
45 | VideoChangeOwnershipValidatorsService, | ||
43 | VideoChannelValidatorsService, | 46 | VideoChannelValidatorsService, |
44 | VideoCommentValidatorsService, | 47 | VideoCommentValidatorsService, |
45 | VideoValidatorsService, | 48 | VideoValidatorsService |
46 | VideoChangeOwnershipValidatorsService, VideoAcceptOwnershipValidatorsService | ||
47 | } from '@app/shared/forms' | 49 | } from '@app/shared/forms' |
48 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' | 50 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' |
49 | import { ScreenService } from '@app/shared/misc/screen.service' | 51 | import { ScreenService } from '@app/shared/misc/screen.service' |
@@ -53,11 +55,20 @@ import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.c | |||
53 | import { VideoImportService } from '@app/shared/video-import/video-import.service' | 55 | import { VideoImportService } from '@app/shared/video-import/video-import.service' |
54 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' | 56 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' |
55 | import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' | 57 | import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' |
56 | import { SubscribeButtonComponent, RemoteSubscribeComponent, UserSubscriptionService } from '@app/shared/user-subscription' | 58 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' |
57 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' | 59 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
58 | import { OverviewService } from '@app/shared/overview' | 60 | import { OverviewService } from '@app/shared/overview' |
59 | import { UserBanModalComponent } from '@app/shared/moderation' | 61 | import { UserBanModalComponent } from '@app/shared/moderation' |
60 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | 62 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' |
63 | import { BlocklistService } from '@app/shared/blocklist' | ||
64 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' | ||
65 | import { UserHistoryService } from '@app/shared/users/user-history.service' | ||
66 | import { UserNotificationService } from '@app/shared/users/user-notification.service' | ||
67 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | ||
68 | import { InstanceService } from '@app/shared/instance/instance.service' | ||
69 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' | ||
70 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' | ||
71 | import { GlobalIconComponent } from '@app/shared/icons/global-icon.component' | ||
61 | 72 | ||
62 | @NgModule({ | 73 | @NgModule({ |
63 | imports: [ | 74 | imports: [ |
@@ -81,7 +92,7 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
81 | LoaderComponent, | 92 | LoaderComponent, |
82 | VideoThumbnailComponent, | 93 | VideoThumbnailComponent, |
83 | VideoMiniatureComponent, | 94 | VideoMiniatureComponent, |
84 | VideoFeedComponent, | 95 | FeedComponent, |
85 | ButtonComponent, | 96 | ButtonComponent, |
86 | DeleteButtonComponent, | 97 | DeleteButtonComponent, |
87 | EditButtonComponent, | 98 | EditButtonComponent, |
@@ -91,6 +102,7 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
91 | FromNowPipe, | 102 | FromNowPipe, |
92 | MarkdownTextareaComponent, | 103 | MarkdownTextareaComponent, |
93 | InfiniteScrollerDirective, | 104 | InfiniteScrollerDirective, |
105 | TextareaAutoResizeDirective, | ||
94 | HelpComponent, | 106 | HelpComponent, |
95 | ReactiveFileComponent, | 107 | ReactiveFileComponent, |
96 | PeertubeCheckboxComponent, | 108 | PeertubeCheckboxComponent, |
@@ -98,7 +110,11 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
98 | RemoteSubscribeComponent, | 110 | RemoteSubscribeComponent, |
99 | InstanceFeaturesTableComponent, | 111 | InstanceFeaturesTableComponent, |
100 | UserBanModalComponent, | 112 | UserBanModalComponent, |
101 | UserModerationDropdownComponent | 113 | UserModerationDropdownComponent, |
114 | TopMenuDropdownComponent, | ||
115 | UserNotificationsComponent, | ||
116 | ConfirmComponent, | ||
117 | GlobalIconComponent | ||
102 | ], | 118 | ], |
103 | 119 | ||
104 | exports: [ | 120 | exports: [ |
@@ -121,13 +137,14 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
121 | LoaderComponent, | 137 | LoaderComponent, |
122 | VideoThumbnailComponent, | 138 | VideoThumbnailComponent, |
123 | VideoMiniatureComponent, | 139 | VideoMiniatureComponent, |
124 | VideoFeedComponent, | 140 | FeedComponent, |
125 | ButtonComponent, | 141 | ButtonComponent, |
126 | DeleteButtonComponent, | 142 | DeleteButtonComponent, |
127 | EditButtonComponent, | 143 | EditButtonComponent, |
128 | ActionDropdownComponent, | 144 | ActionDropdownComponent, |
129 | MarkdownTextareaComponent, | 145 | MarkdownTextareaComponent, |
130 | InfiniteScrollerDirective, | 146 | InfiniteScrollerDirective, |
147 | TextareaAutoResizeDirective, | ||
131 | HelpComponent, | 148 | HelpComponent, |
132 | ReactiveFileComponent, | 149 | ReactiveFileComponent, |
133 | PeertubeCheckboxComponent, | 150 | PeertubeCheckboxComponent, |
@@ -136,6 +153,10 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
136 | InstanceFeaturesTableComponent, | 153 | InstanceFeaturesTableComponent, |
137 | UserBanModalComponent, | 154 | UserBanModalComponent, |
138 | UserModerationDropdownComponent, | 155 | UserModerationDropdownComponent, |
156 | TopMenuDropdownComponent, | ||
157 | UserNotificationsComponent, | ||
158 | ConfirmComponent, | ||
159 | GlobalIconComponent, | ||
139 | 160 | ||
140 | NumberFormatterPipe, | 161 | NumberFormatterPipe, |
141 | ObjectLengthPipe, | 162 | ObjectLengthPipe, |
@@ -152,7 +173,6 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
152 | UserService, | 173 | UserService, |
153 | VideoService, | 174 | VideoService, |
154 | AccountService, | 175 | AccountService, |
155 | MarkdownService, | ||
156 | VideoChannelService, | 176 | VideoChannelService, |
157 | VideoCaptionService, | 177 | VideoCaptionService, |
158 | VideoImportService, | 178 | VideoImportService, |
@@ -172,10 +192,20 @@ import { UserModerationDropdownComponent } from '@app/shared/moderation/user-mod | |||
172 | OverviewService, | 192 | OverviewService, |
173 | VideoChangeOwnershipValidatorsService, | 193 | VideoChangeOwnershipValidatorsService, |
174 | VideoAcceptOwnershipValidatorsService, | 194 | VideoAcceptOwnershipValidatorsService, |
195 | InstanceValidatorsService, | ||
196 | BlocklistService, | ||
197 | UserHistoryService, | ||
198 | InstanceService, | ||
199 | |||
200 | MarkdownService, | ||
201 | LinkifierService, | ||
202 | HtmlRendererService, | ||
175 | 203 | ||
176 | I18nPrimengCalendarService, | 204 | I18nPrimengCalendarService, |
177 | ScreenService, | 205 | ScreenService, |
178 | 206 | ||
207 | UserNotificationService, | ||
208 | |||
179 | I18n | 209 | I18n |
180 | ] | 210 | ] |
181 | }) | 211 | }) |