From ec7293d69aa644acadc10b5560b4523005412a56 Mon Sep 17 00:00:00 2001 From: kevincolyer Date: Mon, 5 Sep 2022 19:07:34 +0100 Subject: [PATCH] removed table lines --- node-polo.demo.js | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/node-polo.demo.js b/node-polo.demo.js index 26c8356..11fecbe 100644 --- a/node-polo.demo.js +++ b/node-polo.demo.js @@ -363,12 +363,35 @@ if (SAVEDATA) { }) } + + ///////////////////////////////////////////////// // tableOfMarkets // an example // // instantiate var tableOfMarkets = new Table({ + chars: { + 'top': '', + 'top-mid': '', + 'top-left': '', + 'top-right': '', + 'bottom': '', + 'bottom-mid': '', + 'bottom-left': '', + 'bottom-right': '', + 'left': '', + 'left-mid': '', + 'mid': '', + 'mid-mid': '', + 'right': '', + 'right-mid': '', + 'middle': ' ' + }, + style: { + 'padding-left': 0, + 'padding-right': 0 + }, head: ['Market', 'Price', 'Changed Daily %'], colWidths: [20, 20, 20], colAligns: ['left', 'right', 'right'] @@ -396,6 +419,27 @@ for (const symbol of interestingMarkets) { ////////////////////////////////////////////// // tableOfOrders var tableOfOrders = new Table({ + chars: { + 'top': '', + 'top-mid': '', + 'top-left': '', + 'top-right': '', + 'bottom': '', + 'bottom-mid': '', + 'bottom-left': '', + 'bottom-right': '', + 'left': '', + 'left-mid': '', + 'mid': '', + 'mid-mid': '', + 'right': '', + 'right-mid': '', + 'middle': ' ' + }, + style: { + 'padding-left': 0, + 'padding-right': 0 + }, head: ['Order', 'Prox %', '24hrs %', 'Type', 'Rate', 'Amount', 'Value'], colWidths: [13, 12, 10, 6, 15, 15, 15], colAligns: ['left', 'right', 'right', 'right', 'right', 'right', 'right'] @@ -426,6 +470,27 @@ tableOfOrders.push(['', '', '', '', '', 'TOTAL', moneydollar(total)]) // var tableOfCoins = new Table({ + chars: { + 'top': '', + 'top-mid': '', + 'top-left': '', + 'top-right': '', + 'bottom': '', + 'bottom-mid': '', + 'bottom-left': '', + 'bottom-right': '', + 'left': '', + 'left-mid': '', + 'mid': '', + 'mid-mid': '', + 'right': '', + 'right-mid': '', + 'middle': ' ' + }, + style: { + 'padding-left': 0, + 'padding-right': 0 + }, head: ['Coin', 'Avail', 'Hold', 'Total', 'Value USD', 'Value BTC'], colWidths: [10, 18, 18, 18, 15, 15], colAligns: ['left', 'right', 'right', 'right', 'right', 'right']