fengxiang
2018-07-11 a3a8c23b196980732a795713a5eb5fe0c7075bf9
Revert "提交"

This reverts commit 1a30ba4211462589698d26688ec24319e48b740c.
3 files deleted
5 files modified
90 ■■■■■ changed files
package.json 1 ●●●● patch | view | raw | blame | history
src/app/app.module.ts 4 ●●●● patch | view | raw | blame | history
src/app/routes/home-page/home-page.component.html 37 ●●●●● patch | view | raw | blame | history
src/app/routes/home-page/home-page.component.less patch | view | raw | blame | history
src/app/routes/home-page/home-page.component.ts 36 ●●●●● patch | view | raw | blame | history
src/app/routes/routes-routing.module.ts 2 ●●●●● patch | view | raw | blame | history
src/app/routes/routes.module.ts 5 ●●●● patch | view | raw | blame | history
src/app/routes/widgets/widgets/widgets.component.ts 5 ●●●●● patch | view | raw | blame | history
package.json
@@ -21,6 +21,7 @@
    "scaffold"
  ],
  "scripts": {
    "precommit": "npm run lint-staged",
    "ng": "ng",
    "start": "ng serve -o",
    "hmr": "ng serve -c=hmr",
src/app/app.module.ts
@@ -8,8 +8,8 @@
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { DelonModule } from './delon.module';
import { CoreModule } from '@core/core.module';
import { SharedModule } from '@shared/shared.module';
import { CoreModule } from './core/core.module';
import { SharedModule } from './shared/shared.module';
import { AppComponent } from './app.component';
import { RoutesModule } from './routes/routes.module';
import { LayoutModule } from './layout/layout.module';
src/app/routes/home-page/home-page.component.html
File was deleted
src/app/routes/home-page/home-page.component.less
src/app/routes/home-page/home-page.component.ts
File was deleted
src/app/routes/routes-routing.module.ts
@@ -20,7 +20,6 @@
import { Exception403Component } from './exception/403.component';
import { Exception404Component } from './exception/404.component';
import { Exception500Component } from './exception/500.component';
import { HomePageComponent } from './home-page/home-page.component';
const routes: Routes = [
  {
@@ -30,7 +29,6 @@
      { path: '', redirectTo: 'dashboard/v1', pathMatch: 'full' },
      { path: 'dashboard', redirectTo: 'dashboard/v1', pathMatch: 'full' },
      { path: 'dashboard/v1', component: DashboardV1Component },
      { path: 'home-page', component: HomePageComponent },
      { path: 'dashboard/analysis', component: DashboardAnalysisComponent },
      { path: 'dashboard/monitor', component: DashboardMonitorComponent },
      { path: 'dashboard/workplace', component: DashboardWorkplaceComponent },
src/app/routes/routes.module.ts
@@ -17,7 +17,6 @@
import { Exception403Component } from './exception/403.component';
import { Exception404Component } from './exception/404.component';
import { Exception500Component } from './exception/500.component';
import { HomePageComponent } from './home-page/home-page.component';
const COMPONENTS = [
  DashboardV1Component,
@@ -33,9 +32,7 @@
  CallbackComponent,
  Exception403Component,
  Exception404Component,
  Exception500Component,
  // moral pages
  HomePageComponent
  Exception500Component
];
const COMPONENTS_NOROUNT = [];
src/app/routes/widgets/widgets/widgets.component.ts
@@ -55,11 +55,6 @@
  dislike = false;
  constructor(public msg: NzMessageService, private http: _HttpClient) {
    this.http.get('/user-context').subscribe(
      res => {
         console.log(res);
      }
    );
    this.http.get('/chart/visit').subscribe((res: any[]) => {
      this.data = res;
      this.smallData = res.slice(0, 6);