mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 23:16:53 +00:00
Visual changes (#108)
* Basic dynamically added buy-sell component * Adds a basic component to display ticker info on the top right of the GUI * Dashboard with actual components * Adds AM charts * More fake component data Better handling of dashboard blocks * Attempting to make the dashboard scalable * Fixes dashboard sizing Adjusts dashboard widget margins * Gets a chart! * Buy sell updates * Sprucing the buy sell components Updates material Fix up git Pr issues
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
<mat-card class="orders-card" flex="33">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Orders</mat-card-title>
|
||||
</mat-card-header>
|
||||
</mat-card>
|
||||
<div class="mat-row-container">
|
||||
<div class="mat-table">
|
||||
<div class="mat-header-row">
|
||||
<div class="mat-header-cell">Count</div>
|
||||
<div class="mat-header-cell">Amount</div>
|
||||
<div class="mat-header-cell">Total</div>
|
||||
<div class="mat-header-cell">Price</div>
|
||||
</div>
|
||||
<div class="mat-row" *ngFor="let order of orders">
|
||||
<div class="mat-cell">{{order.count}}</div>
|
||||
<div class="mat-cell">{{order.amount}}</div>
|
||||
<div class="mat-cell">{{order.total}}</div>
|
||||
<div class="mat-cell">{{order.price}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -6,10 +6,54 @@ import { Component, OnInit } from '@angular/core';
|
||||
styleUrls: ['./orders.component.scss']
|
||||
})
|
||||
export class OrdersComponent implements OnInit {
|
||||
|
||||
public orders:Order[] = [];
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
var item = new Order();
|
||||
item.amount = 12;
|
||||
item.price = 23;
|
||||
item.total = 3;
|
||||
item.count = 3;
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
this.orders.push(item);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export class Order {
|
||||
public count:number;
|
||||
public total:number;
|
||||
public price:number;
|
||||
public amount:number;
|
||||
}
|
||||
Reference in New Issue
Block a user