Commit 44c2fa00 authored by wangqinghua's avatar wangqinghua

优化速度

parent 833658b4
...@@ -20,8 +20,6 @@ import { NgxEchartsModule } from "ngx-echarts"; ...@@ -20,8 +20,6 @@ import { NgxEchartsModule } from "ngx-echarts";
import { import {
FooterComponent, FooterComponent,
ProfileService,
PageRibbonComponent,
ErrorComponent ErrorComponent
} from './layouts'; } from './layouts';
import {AppComponent} from "./app.component"; import {AppComponent} from "./app.component";
...@@ -49,13 +47,11 @@ import {AppService} from './app.service'; ...@@ -49,13 +47,11 @@ import {AppService} from './app.service';
], ],
declarations: [ declarations: [
ErrorComponent, ErrorComponent,
PageRibbonComponent,
FooterComponent, FooterComponent,
AppComponent, AppComponent,
], ],
providers: [ providers: [
LayoutService, LayoutService,
ProfileService,
PaginationConfig, PaginationConfig,
LoginGuard, LoginGuard,
AppService, AppService,
......
import {AfterViewInit, Component, ElementRef, OnInit, Renderer2, ViewChild} from '@angular/core'; import {AfterViewInit, Component, ElementRef, OnInit, Renderer2, ViewChild} from '@angular/core';
import { JhiEventManager } from 'ng-jhipster'; import { JhiEventManager } from 'ng-jhipster';
import { Account, Principal } from '../shared'; import { Principal } from '../shared';
import {OverAllService} from '../overAll/overAll.service'; import {OverAllService} from '../overAll/overAll.service';
import {color, pageSize} from '../app.constants'; import {color, pageSize} from '../app.constants';
import {AlarmService} from '../alarm/alarm.service'; import {AlarmService} from '../alarm/alarm.service';
......
...@@ -3,7 +3,4 @@ export * from './error/error.route'; ...@@ -3,7 +3,4 @@ export * from './error/error.route';
export * from './main/main.component'; export * from './main/main.component';
export * from './footer/footer.component'; export * from './footer/footer.component';
export * from './navbar/navbar.component'; export * from './navbar/navbar.component';
export * from './profiles/page-ribbon.component';
export * from './profiles/profile.service';
export * from './profiles/profile-info.model';
export * from './sidebar/sidebar.component'; export * from './sidebar/sidebar.component';
...@@ -2,7 +2,6 @@ import {AfterViewChecked, Component, ElementRef, OnChanges, OnInit, ViewChild} f ...@@ -2,7 +2,6 @@ import {AfterViewChecked, Component, ElementRef, OnChanges, OnInit, ViewChild} f
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { ProfileService } from '../profiles/profile.service';
import { Principal, LoginService } from '../../shared'; import { Principal, LoginService } from '../../shared';
import {ThemeList, VERSION} from '../../app.constants'; import {ThemeList, VERSION} from '../../app.constants';
...@@ -49,7 +48,6 @@ export class NavbarComponent implements OnInit ,AfterViewChecked{ ...@@ -49,7 +48,6 @@ export class NavbarComponent implements OnInit ,AfterViewChecked{
constructor( constructor(
private loginService: LoginService, private loginService: LoginService,
private principal: Principal, private principal: Principal,
private profileService: ProfileService,
private router: Router, private router: Router,
private appSer:AppService, private appSer:AppService,
private $localStorage:LocalStorageService, private $localStorage:LocalStorageService,
......
...@@ -5,8 +5,6 @@ import locale from '@angular/common/locales/en'; ...@@ -5,8 +5,6 @@ import locale from '@angular/common/locales/en';
import { import {
BootappSharedLibsModule, BootappSharedLibsModule,
JhiAlertComponent,
JhiAlertErrorComponent
} from './'; } from './';
@NgModule({ @NgModule({
...@@ -14,8 +12,6 @@ import { ...@@ -14,8 +12,6 @@ import {
BootappSharedLibsModule BootappSharedLibsModule
], ],
declarations: [ declarations: [
JhiAlertComponent,
JhiAlertErrorComponent
], ],
providers: [ providers: [
Title, Title,
...@@ -26,8 +22,6 @@ import { ...@@ -26,8 +22,6 @@ import {
], ],
exports: [ exports: [
BootappSharedLibsModule, BootappSharedLibsModule,
JhiAlertComponent,
JhiAlertErrorComponent
] ]
}) })
export class BootappSharedCommonModule { export class BootappSharedCommonModule {
......
...@@ -9,7 +9,6 @@ import { ...@@ -9,7 +9,6 @@ import {
CSRFService, CSRFService,
AuthServerProvider, AuthServerProvider,
AccountService, AccountService,
UserService,
StateStorageService, StateStorageService,
LoginService, LoginService,
JhiLoginModalComponent, JhiLoginModalComponent,
...@@ -39,7 +38,6 @@ import {DisableControlDirective} from './common/disable-control.directive'; ...@@ -39,7 +38,6 @@ import {DisableControlDirective} from './common/disable-control.directive';
Principal, Principal,
CSRFService, CSRFService,
AuthServerProvider, AuthServerProvider,
UserService,
DatePipe, DatePipe,
EmitService, EmitService,
NgbActiveModal, NgbActiveModal,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment