2017-09-08 13:09:23 +01:00
|
|
|
import { Component } from '@angular/core';
|
2017-04-27 15:29:31 +01:00
|
|
|
import { Router } from '@angular/router';
|
2017-08-30 12:35:43 +01:00
|
|
|
import { GraphWidget } from '../widgets/graph-widget.component';
|
2017-09-07 15:12:49 +01:00
|
|
|
import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component';
|
2017-09-08 13:09:23 +01:00
|
|
|
import { GraphPanel } from '../panels/graph-panel.component';
|
2017-09-07 13:32:59 +01:00
|
|
|
import { DataType } from '../shared/data-types.enum';
|
2017-04-27 15:29:31 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
templateUrl: 'dashboard.component.html'
|
|
|
|
})
|
2017-09-08 13:09:23 +01:00
|
|
|
export class DashboardComponent {
|
2017-04-27 15:29:31 +01:00
|
|
|
|
2017-08-30 12:35:43 +01:00
|
|
|
public widgetList = [
|
|
|
|
{
|
|
|
|
type: 'graph',
|
|
|
|
name: 'customers_last_7_days',
|
|
|
|
icon: 'icon-people',
|
|
|
|
title: 'Customers Last 7 Days',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'graph',
|
|
|
|
name: 'customers_last_30_days',
|
|
|
|
icon: 'icon-people',
|
|
|
|
title: 'Customers Last 30 Days',
|
|
|
|
},
|
2017-09-05 12:04:36 +01:00
|
|
|
{
|
|
|
|
type: 'graph',
|
|
|
|
name: 'sales_last_7_days',
|
|
|
|
icon: 'icon-diamond',
|
|
|
|
title: 'Sales Last 7 Days',
|
2017-09-07 13:32:59 +01:00
|
|
|
dataType: DataType.currency,
|
2017-09-05 12:04:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'graph',
|
|
|
|
name: 'sales_last_30_days',
|
|
|
|
icon: 'icon-diamond',
|
|
|
|
title: 'Sales Last 30 Days',
|
2017-09-07 13:32:59 +01:00
|
|
|
dataType: DataType.currency,
|
2017-09-05 12:04:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'graph',
|
|
|
|
name: 'purchases_last_7_days',
|
|
|
|
title: 'Purchases Last 7 Days',
|
2017-09-07 13:32:59 +01:00
|
|
|
dataType: DataType.currency,
|
2017-09-05 12:04:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'graph',
|
|
|
|
name: 'purchases_last_30_days',
|
|
|
|
title: 'Purchases Last 30 Days',
|
2017-09-07 13:32:59 +01:00
|
|
|
dataType: DataType.currency,
|
2017-09-05 12:04:36 +01:00
|
|
|
},
|
2017-08-30 12:35:43 +01:00
|
|
|
];
|
|
|
|
|
2017-09-08 13:09:23 +01:00
|
|
|
constructor() { }
|
2017-04-27 15:29:31 +01:00
|
|
|
}
|