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