2017-11-16 18:07:27 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
|
|
import { ServerService } from '../../app/services/server.service';
|
2017-12-14 17:43:57 +01:00
|
|
|
import { RestBase } from '../../app/services/rest-base';
|
2017-11-16 15:27:40 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'homepage',
|
|
|
|
templateUrl: './homepage.component.html',
|
|
|
|
styleUrls: ['./homepage.component.css'],
|
|
|
|
providers: []
|
|
|
|
})
|
2017-11-16 18:07:27 +01:00
|
|
|
export class HomepageComponent implements OnInit{
|
|
|
|
|
|
|
|
private userInfo: any;
|
|
|
|
|
2017-12-14 17:43:57 +01:00
|
|
|
constructor(private serverService: ServerService, private route: ActivatedRoute, private router: Router, private restbase: RestBase){
|
2017-11-16 18:07:27 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
this.serverService.whoami().subscribe(
|
|
|
|
userInfo => {
|
|
|
|
this.userInfo = userInfo;
|
|
|
|
},
|
|
|
|
error => {
|
|
|
|
|
|
|
|
}
|
2017-12-14 17:43:57 +01:00
|
|
|
);
|
|
|
|
|
2017-11-16 18:07:27 +01:00
|
|
|
}
|
|
|
|
|
2017-12-14 17:43:57 +01:00
|
|
|
getStatistics(){
|
|
|
|
return this.restbase.get("datasetprofile/getAll");
|
|
|
|
}
|
2017-11-16 18:07:27 +01:00
|
|
|
|
|
|
|
}
|