diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/shared/shared-main/shared-main.module.ts | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/shared/shared-main/shared-main.module.ts')
-rw-r--r-- | client/src/app/shared/shared-main/shared-main.module.ts | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-main/shared-main.module.ts b/client/src/app/shared/shared-main/shared-main.module.ts new file mode 100644 index 000000000..fd96a42a0 --- /dev/null +++ b/client/src/app/shared/shared-main/shared-main.module.ts | |||
@@ -0,0 +1,164 @@ | |||
1 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | ||
2 | import { SharedModule as PrimeSharedModule } from 'primeng/api' | ||
3 | import { InputMaskModule } from 'primeng/inputmask' | ||
4 | import { InputSwitchModule } from 'primeng/inputswitch' | ||
5 | import { MultiSelectModule } from 'primeng/multiselect' | ||
6 | import { ClipboardModule } from '@angular/cdk/clipboard' | ||
7 | import { CommonModule, DatePipe } from '@angular/common' | ||
8 | import { HttpClientModule } from '@angular/common/http' | ||
9 | import { NgModule } from '@angular/core' | ||
10 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | ||
11 | import { RouterModule } from '@angular/router' | ||
12 | import { | ||
13 | NgbCollapseModule, | ||
14 | NgbDropdownModule, | ||
15 | NgbModalModule, | ||
16 | NgbNavModule, | ||
17 | NgbPopoverModule, | ||
18 | NgbTooltipModule | ||
19 | } from '@ng-bootstrap/ng-bootstrap' | ||
20 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
21 | import { SharedGlobalIconModule } from '../shared-icons' | ||
22 | import { AccountService, ActorAvatarInfoComponent, AvatarComponent } from './account' | ||
23 | import { FromNowPipe, InfiniteScrollerDirective, NumberFormatterPipe, PeerTubeTemplateDirective } from './angular' | ||
24 | import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons' | ||
25 | import { DateToggleComponent } from './date' | ||
26 | import { FeedComponent } from './feeds' | ||
27 | import { LoaderComponent, SmallLoaderComponent } from './loaders' | ||
28 | import { HelpComponent, ListOverflowComponent } from './misc' | ||
29 | import { UserHistoryService, UserNotificationsComponent, UserNotificationService } from './users' | ||
30 | import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' | ||
31 | import { VideoCaptionService } from './video-caption' | ||
32 | import { VideoChannelService } from './video-channel' | ||
33 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | ||
34 | |||
35 | @NgModule({ | ||
36 | imports: [ | ||
37 | CommonModule, | ||
38 | FormsModule, | ||
39 | ReactiveFormsModule, | ||
40 | RouterModule, | ||
41 | HttpClientModule, | ||
42 | |||
43 | NgbDropdownModule, | ||
44 | NgbModalModule, | ||
45 | NgbPopoverModule, | ||
46 | NgbNavModule, | ||
47 | NgbTooltipModule, | ||
48 | NgbCollapseModule, | ||
49 | |||
50 | ClipboardModule, | ||
51 | |||
52 | PrimeSharedModule, | ||
53 | InputMaskModule, | ||
54 | NgPipesModule, | ||
55 | MultiSelectModule, | ||
56 | InputSwitchModule, | ||
57 | |||
58 | SharedGlobalIconModule | ||
59 | ], | ||
60 | |||
61 | declarations: [ | ||
62 | AvatarComponent, | ||
63 | ActorAvatarInfoComponent, | ||
64 | |||
65 | FromNowPipe, | ||
66 | InfiniteScrollerDirective, | ||
67 | NumberFormatterPipe, | ||
68 | PeerTubeTemplateDirective, | ||
69 | |||
70 | ActionDropdownComponent, | ||
71 | ButtonComponent, | ||
72 | DeleteButtonComponent, | ||
73 | EditButtonComponent, | ||
74 | |||
75 | DateToggleComponent, | ||
76 | |||
77 | FeedComponent, | ||
78 | |||
79 | LoaderComponent, | ||
80 | SmallLoaderComponent, | ||
81 | |||
82 | HelpComponent, | ||
83 | ListOverflowComponent, | ||
84 | |||
85 | UserNotificationsComponent, | ||
86 | |||
87 | FeedComponent | ||
88 | ], | ||
89 | |||
90 | exports: [ | ||
91 | CommonModule, | ||
92 | FormsModule, | ||
93 | ReactiveFormsModule, | ||
94 | RouterModule, | ||
95 | HttpClientModule, | ||
96 | |||
97 | NgbDropdownModule, | ||
98 | NgbModalModule, | ||
99 | NgbPopoverModule, | ||
100 | NgbNavModule, | ||
101 | NgbTooltipModule, | ||
102 | NgbCollapseModule, | ||
103 | |||
104 | ClipboardModule, | ||
105 | |||
106 | PrimeSharedModule, | ||
107 | InputMaskModule, | ||
108 | BytesPipe, | ||
109 | KeysPipe, | ||
110 | MultiSelectModule, | ||
111 | |||
112 | AvatarComponent, | ||
113 | ActorAvatarInfoComponent, | ||
114 | |||
115 | FromNowPipe, | ||
116 | InfiniteScrollerDirective, | ||
117 | NumberFormatterPipe, | ||
118 | PeerTubeTemplateDirective, | ||
119 | |||
120 | ActionDropdownComponent, | ||
121 | ButtonComponent, | ||
122 | DeleteButtonComponent, | ||
123 | EditButtonComponent, | ||
124 | |||
125 | DateToggleComponent, | ||
126 | |||
127 | FeedComponent, | ||
128 | |||
129 | LoaderComponent, | ||
130 | SmallLoaderComponent, | ||
131 | |||
132 | HelpComponent, | ||
133 | ListOverflowComponent, | ||
134 | |||
135 | UserNotificationsComponent, | ||
136 | |||
137 | FeedComponent | ||
138 | ], | ||
139 | |||
140 | providers: [ | ||
141 | I18n, | ||
142 | |||
143 | DatePipe, | ||
144 | |||
145 | FromNowPipe, | ||
146 | |||
147 | AUTH_INTERCEPTOR_PROVIDER, | ||
148 | |||
149 | AccountService, | ||
150 | |||
151 | UserHistoryService, | ||
152 | UserNotificationService, | ||
153 | |||
154 | RedundancyService, | ||
155 | VideoImportService, | ||
156 | VideoOwnershipService, | ||
157 | VideoService, | ||
158 | |||
159 | VideoCaptionService, | ||
160 | |||
161 | VideoChannelService | ||
162 | ] | ||
163 | }) | ||
164 | export class SharedMainModule { } | ||