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