-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathapp.module.ts
80 lines (76 loc) · 3.01 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
import {
NguCarousel,
NguCarouselConfig,
NguCarouselModule,
} from '@ngu/carousel';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './components/app/app.component';
import { FeedComponent } from './pages/feed/feed.component';
import { CategoryComponent } from './components/category/category.component';
import { environment } from 'src/environments/environment';
import { VideoItemComponent } from './components/video-item/video-item.component';
import { VideoItemEnhancedComponent } from './components/video-item/video-item-enhanced/video-item-enhanced.component';
import { VideoItemGridComponent } from './components/video-item/video-item-grid/video-item-grid.component';
import { VideoItemListComponent } from './components/video-item/video-item-list/video-item-list.component';
import { ButtonsComponent } from './components/player/buttons/buttons.component';
import { ShortNumPipe } from './pipes/short-num.pipe';
import { CategoryBadgeComponent } from './components/category/category-badge/category-badge.component';
import { PlayerComponent } from './components/player/player.component';
import { SearchComponent } from './components/search/search.component';
import { RelatedComponent } from './components/related/related.component';
import { YoutubeIframeComponent } from './components/youtube-iframe/youtube-iframe.component';
import { RoomComponent } from './components/room/room.component';
import { PlaylistComponent } from './components/playlist/playlist.component';
import { ModalComponent } from './components/modal/modal.component';
import { HistoryComponent } from './pages/history/history.component';
import { AboutComponent } from './pages/about/about.component';
import { SettingsComponent } from './pages/settings/settings.component';
const config: SocketIoConfig = { url: environment.serverURL, options: {} };
@NgModule({
declarations: [
AppComponent,
FeedComponent,
CategoryComponent,
VideoItemComponent,
VideoItemEnhancedComponent,
VideoItemGridComponent,
VideoItemListComponent,
ButtonsComponent,
ShortNumPipe,
CategoryBadgeComponent,
PlayerComponent,
SearchComponent,
RelatedComponent,
YoutubeIframeComponent,
RoomComponent,
PlaylistComponent,
ModalComponent,
HistoryComponent,
AboutComponent,
SettingsComponent,
],
imports: [
HttpClientModule,
BrowserModule,
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
NguCarouselModule,
SocketIoModule.forRoot(config),
DragDropModule,
],
providers: [
ButtonsComponent,
NguCarouselConfig,
NguCarousel,
PlayerComponent,
],
bootstrap: [AppComponent],
})
export class AppModule {}