feat: provide update

parent 4db738bf
......@@ -486,6 +486,11 @@
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU="
},
"angular2-layer": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/angular2-layer/-/angular2-layer-2.0.7.tgz",
"integrity": "sha1-EHIFRgc7HfaW7j0gsD6nrZlAojI="
},
"angular2-logger": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/angular2-logger/-/angular2-logger-0.6.0.tgz",
......@@ -7072,6 +7077,11 @@
"resolved": "https://registry.npmjs.org/ngx-contextmenu/-/ngx-contextmenu-4.1.1.tgz",
"integrity": "sha512-XSmZxFUV1+sedMwRGvSvzZAAiOCuhb9jtzBNRjoVn5nDFx70IrjalIUiZUsWiDjj0TUMTNpAY8g9+glOdsjnCg=="
},
"ngx-logger": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/ngx-logger/-/ngx-logger-1.1.2.tgz",
"integrity": "sha1-//QiCP9KTHqmIf7z9nOgCHW9Yts="
},
"ngx-progressbar": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ngx-progressbar/-/ngx-progressbar-2.1.1.tgz",
......
......@@ -22,6 +22,7 @@
"@angular/platform-browser": "^4.2.4",
"@angular/platform-browser-dynamic": "^4.2.4",
"@angular/router": "^4.2.4",
"angular2-layer": "^2.0.7",
"angular2-logger": "^0.6.0",
"animate.css": "^3.5.2",
"body-parser": "^1.18.2",
......@@ -46,6 +47,7 @@
"ng2-cookies": "^1.0.12",
"ngx-bootstrap": "^1.6.6",
"ngx-contextmenu": "^4.1.1",
"ngx-logger": "^1.1.2",
"ngx-progressbar": "^2.1.1",
"node": "^9.3.0",
"npm": "^5.6.0",
......
......@@ -13,8 +13,6 @@ import {DataStore, User} from '../globals';
selector: 'app-controllpage',
templateUrl: './controlpage.component.html',
styleUrls: ['./controlpage.component.css'],
providers: [AppService]
})
export class ControlPageComponent implements OnInit {
DataStore = DataStore;
......
......@@ -13,7 +13,6 @@ import {User} from '../globals';
selector: 'app-index-page',
templateUrl: './index-page.component.html',
styleUrls: ['./index-page.component.css'],
providers: [AppService]
})
export class IndexPageComponent implements OnInit {
User = User;
......
......@@ -13,7 +13,6 @@ import {DataStore} from './globals';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
providers: [AppService, HttpService],
// directives: [LeftbarComponent, TermComponent]
})
......
......@@ -48,6 +48,7 @@ import {LinuxComponent} from './monitor-page/linux/linux.component';
import {WindowsComponent} from './monitor-page/windows/windows.component';
import {BrowserXhr} from '@angular/http';
import {NgProgressModule, NgProgressBrowserXhr} from 'ngx-progressbar';
import {AppService, HttpService} from './app.service';
@NgModule({
imports: [
......@@ -91,6 +92,8 @@ import {NgProgressModule, NgProgressBrowserXhr} from 'ngx-progressbar';
providers: [
{provide: Options, useValue: {store: false, level: LoggerLevel.WARN}},
{provide: BrowserXhr, useClass: NgProgressBrowserXhr},
AppService,
HttpService,
Logger
]
})
......
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