]>
Commit | Line | Data |
---|---|---|
1 | import { SharedModule as PrimeSharedModule } from 'primeng/api' | |
2 | import { ClipboardModule } from '@angular/cdk/clipboard' | |
3 | import { CommonModule, DatePipe } from '@angular/common' | |
4 | import { HttpClientModule } from '@angular/common/http' | |
5 | import { NgModule } from '@angular/core' | |
6 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | |
7 | import { RouterModule } from '@angular/router' | |
8 | import { | |
9 | NgbButtonsModule, | |
10 | NgbCollapseModule, | |
11 | NgbDropdownModule, | |
12 | NgbModalModule, | |
13 | NgbNavModule, | |
14 | NgbPopoverModule, | |
15 | NgbTooltipModule | |
16 | } from '@ng-bootstrap/ng-bootstrap' | |
17 | import { LoadingBarModule } from '@ngx-loading-bar/core' | |
18 | import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' | |
19 | import { SharedGlobalIconModule } from '../shared-icons' | |
20 | import { AccountService } from './account' | |
21 | import { | |
22 | AutofocusDirective, | |
23 | BytesPipe, | |
24 | DurationFormatterPipe, | |
25 | FromNowPipe, | |
26 | InfiniteScrollerDirective, | |
27 | LinkComponent, | |
28 | NumberFormatterPipe, | |
29 | PeerTubeTemplateDirective | |
30 | } from './angular' | |
31 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
32 | import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons' | |
33 | import { CustomPageService } from './custom-page' | |
34 | import { DateToggleComponent } from './date' | |
35 | import { FeedComponent } from './feeds' | |
36 | import { LoaderComponent, SmallLoaderComponent } from './loaders' | |
37 | import { HelpComponent, ListOverflowComponent, SimpleSearchInputComponent, TopMenuDropdownComponent } from './misc' | |
38 | import { PluginPlaceholderComponent } from './plugins' | |
39 | import { ActorRedirectGuard } from './router' | |
40 | import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users' | |
41 | import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' | |
42 | import { VideoCaptionService } from './video-caption' | |
43 | import { VideoChannelService } from './video-channel' | |
44 | ||
45 | @NgModule({ | |
46 | imports: [ | |
47 | CommonModule, | |
48 | FormsModule, | |
49 | ReactiveFormsModule, | |
50 | RouterModule, | |
51 | HttpClientModule, | |
52 | ||
53 | LoadingBarHttpClientModule, | |
54 | LoadingBarModule, | |
55 | ||
56 | NgbDropdownModule, | |
57 | NgbModalModule, | |
58 | NgbPopoverModule, | |
59 | NgbNavModule, | |
60 | NgbTooltipModule, | |
61 | NgbCollapseModule, | |
62 | NgbButtonsModule, | |
63 | ||
64 | ClipboardModule, | |
65 | ||
66 | PrimeSharedModule, | |
67 | ||
68 | SharedGlobalIconModule | |
69 | ], | |
70 | ||
71 | declarations: [ | |
72 | FromNowPipe, | |
73 | NumberFormatterPipe, | |
74 | BytesPipe, | |
75 | DurationFormatterPipe, | |
76 | AutofocusDirective, | |
77 | ||
78 | InfiniteScrollerDirective, | |
79 | PeerTubeTemplateDirective, | |
80 | LinkComponent, | |
81 | ||
82 | ActionDropdownComponent, | |
83 | ButtonComponent, | |
84 | DeleteButtonComponent, | |
85 | EditButtonComponent, | |
86 | ||
87 | DateToggleComponent, | |
88 | ||
89 | FeedComponent, | |
90 | ||
91 | LoaderComponent, | |
92 | SmallLoaderComponent, | |
93 | ||
94 | HelpComponent, | |
95 | ListOverflowComponent, | |
96 | TopMenuDropdownComponent, | |
97 | SimpleSearchInputComponent, | |
98 | ||
99 | UserQuotaComponent, | |
100 | UserNotificationsComponent, | |
101 | ||
102 | PluginPlaceholderComponent | |
103 | ], | |
104 | ||
105 | exports: [ | |
106 | CommonModule, | |
107 | FormsModule, | |
108 | ReactiveFormsModule, | |
109 | RouterModule, | |
110 | HttpClientModule, | |
111 | ||
112 | LoadingBarHttpClientModule, | |
113 | LoadingBarModule, | |
114 | ||
115 | NgbDropdownModule, | |
116 | NgbModalModule, | |
117 | NgbPopoverModule, | |
118 | NgbNavModule, | |
119 | NgbTooltipModule, | |
120 | NgbCollapseModule, | |
121 | NgbButtonsModule, | |
122 | ||
123 | ClipboardModule, | |
124 | ||
125 | PrimeSharedModule, | |
126 | ||
127 | FromNowPipe, | |
128 | BytesPipe, | |
129 | NumberFormatterPipe, | |
130 | DurationFormatterPipe, | |
131 | AutofocusDirective, | |
132 | ||
133 | InfiniteScrollerDirective, | |
134 | PeerTubeTemplateDirective, | |
135 | LinkComponent, | |
136 | ||
137 | ActionDropdownComponent, | |
138 | ButtonComponent, | |
139 | DeleteButtonComponent, | |
140 | EditButtonComponent, | |
141 | ||
142 | DateToggleComponent, | |
143 | ||
144 | FeedComponent, | |
145 | ||
146 | LoaderComponent, | |
147 | SmallLoaderComponent, | |
148 | ||
149 | HelpComponent, | |
150 | ListOverflowComponent, | |
151 | TopMenuDropdownComponent, | |
152 | SimpleSearchInputComponent, | |
153 | ||
154 | UserQuotaComponent, | |
155 | UserNotificationsComponent, | |
156 | ||
157 | PluginPlaceholderComponent | |
158 | ], | |
159 | ||
160 | providers: [ | |
161 | DatePipe, | |
162 | ||
163 | FromNowPipe, | |
164 | ||
165 | AUTH_INTERCEPTOR_PROVIDER, | |
166 | ||
167 | AccountService, | |
168 | ||
169 | UserHistoryService, | |
170 | UserNotificationService, | |
171 | ||
172 | RedundancyService, | |
173 | VideoImportService, | |
174 | VideoOwnershipService, | |
175 | VideoService, | |
176 | ||
177 | VideoCaptionService, | |
178 | ||
179 | VideoChannelService, | |
180 | ||
181 | CustomPageService, | |
182 | ||
183 | ActorRedirectGuard | |
184 | ] | |
185 | }) | |
186 | export class SharedMainModule { } |