Client: little app module cleanup
This commit is contained in:
parent
4b2f33f3c6
commit
23bcf66685
|
@ -1,14 +1,14 @@
|
|||
import { NgModule, ApplicationRef } from '@angular/core';
|
||||
import { ApplicationRef, NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { HttpModule, RequestOptions, XHRBackend } from '@angular/http';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
|
||||
|
||||
import { FileSelectDirective } from 'ng2-file-upload/ng2-file-upload';
|
||||
import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
|
||||
import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
|
||||
import { PaginationModule } from 'ng2-bootstrap/components/pagination';
|
||||
import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
|
||||
import { FileSelectDirective } from 'ng2-file-upload/ng2-file-upload';
|
||||
|
||||
/*
|
||||
* Platform and Environment providers/directives/pipes
|
||||
|
@ -18,8 +18,23 @@ import { routes } from './app.routes';
|
|||
// App is our top level component
|
||||
import { AppComponent } from './app.component';
|
||||
import { AppState } from './app.service';
|
||||
|
||||
import {
|
||||
AdminComponent,
|
||||
FriendsComponent,
|
||||
FriendAddComponent,
|
||||
FriendListComponent,
|
||||
FriendService,
|
||||
MenuAdminComponent,
|
||||
UsersComponent,
|
||||
UserAddComponent,
|
||||
UserListComponent,
|
||||
UserService
|
||||
} from './admin';
|
||||
import { AccountComponent, AccountService } from './account';
|
||||
import { LoginComponent } from './login';
|
||||
import { MenuComponent } from './menu.component';
|
||||
import { AuthService, AuthHttp, RestExtractor, RestService, SearchComponent, SearchService } from './shared';
|
||||
import {
|
||||
LoaderComponent,
|
||||
VideosComponent,
|
||||
|
@ -31,20 +46,6 @@ import {
|
|||
VideoService,
|
||||
WebTorrentService
|
||||
} from './videos';
|
||||
import {
|
||||
FriendsComponent,
|
||||
FriendAddComponent,
|
||||
FriendListComponent,
|
||||
FriendService,
|
||||
UsersComponent,
|
||||
UserAddComponent,
|
||||
UserListComponent,
|
||||
UserService,
|
||||
AdminComponent,
|
||||
MenuAdminComponent
|
||||
} from './admin';
|
||||
import { MenuComponent } from './menu.component';
|
||||
import { AuthService, AuthHttp, RestExtractor, RestService, SearchComponent, SearchService } from './shared';
|
||||
|
||||
// Application wide providers
|
||||
const APP_PROVIDERS = [
|
||||
|
@ -60,7 +61,14 @@ const APP_PROVIDERS = [
|
|||
|
||||
AuthService,
|
||||
RestExtractor,
|
||||
RestExtractor, RestService, VideoService, SearchService, FriendService, UserService, AccountService, WebTorrentService
|
||||
RestService,
|
||||
|
||||
VideoService,
|
||||
SearchService,
|
||||
FriendService,
|
||||
UserService,
|
||||
AccountService,
|
||||
WebTorrentService
|
||||
];
|
||||
/**
|
||||
* `AppModule` is the main entry point into Angular2's bootstraping process
|
||||
|
@ -68,28 +76,28 @@ const APP_PROVIDERS = [
|
|||
@NgModule({
|
||||
bootstrap: [ AppComponent ],
|
||||
declarations: [
|
||||
AccountComponent,
|
||||
AdminComponent,
|
||||
AppComponent,
|
||||
BytesPipe,
|
||||
FileSelectDirective,
|
||||
AccountComponent,
|
||||
LoginComponent,
|
||||
LoaderComponent,
|
||||
VideosComponent,
|
||||
VideoAddComponent,
|
||||
VideoListComponent,
|
||||
VideoSortComponent,
|
||||
VideoMiniatureComponent,
|
||||
VideoWatchComponent,
|
||||
FriendsComponent,
|
||||
FriendAddComponent,
|
||||
FriendListComponent,
|
||||
UsersComponent,
|
||||
UserAddComponent,
|
||||
UserListComponent,
|
||||
AdminComponent,
|
||||
FriendsComponent,
|
||||
LoaderComponent,
|
||||
LoginComponent,
|
||||
MenuAdminComponent,
|
||||
MenuComponent,
|
||||
SearchComponent
|
||||
SearchComponent,
|
||||
UserAddComponent,
|
||||
UserListComponent,
|
||||
UsersComponent,
|
||||
VideoAddComponent,
|
||||
VideoListComponent,
|
||||
VideoMiniatureComponent,
|
||||
VideosComponent,
|
||||
VideoSortComponent,
|
||||
VideoWatchComponent,
|
||||
],
|
||||
imports: [ // import Angular's modules
|
||||
BrowserModule,
|
||||
|
@ -97,6 +105,7 @@ const APP_PROVIDERS = [
|
|||
ReactiveFormsModule,
|
||||
HttpModule,
|
||||
RouterModule.forRoot(routes),
|
||||
|
||||
ProgressbarModule,
|
||||
PaginationModule
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue