Skip to content

Commit

Permalink
Updated position of icons and columns in orders grid.
Browse files Browse the repository at this point in the history
████ ███  To request new features or in case this commit breaks something for you,
████ ███  please, create a new github issue with all possible information for me,
▓███▀█▄   but never share your API Keys!
▒▓██ ███
░▒▓█ ███  Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
 _________________________________________
/ Hello, WORLD!                           \
|                                         |
\ pssst.. 1.00000000 BTC = 62303.63 EUR.  /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
  • Loading branch information
ctubio committed Oct 16, 2024
1 parent b909fdb commit f7dc0d9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 39 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ K ?= K.sh
MAJOR = 0
MINOR = 7
PATCH = 0
BUILD = 38
BUILD = 39

OBLIGATORY = DISCLAIMER: This is strict non-violent software: \n$\
if you hurt other living creatures, please stop; \n$\
Expand Down
59 changes: 30 additions & 29 deletions src/bin/+portfolios/+portfolios.client/Orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,40 +76,14 @@ export class OrdersComponent {
!this.filter || node.data.symbol == this.filter
),
columnDefs: [{
width: 30,
width: 20,
field: "cancel",
flex: 0,
headerName: 'cxl',
suppressSizeToFit: true,
cellRenderer: (params) => `<button type="button" class="btn btn-danger btn-xs">
<span data-action-type="remove"'>&times;</span>
</button>`
}, {
width: 82,
field: 'time',
headerName: 'time',
suppressSizeToFit: true,
cellRenderer: (params) => {
var d = new Date(params.value||0);
return (d.getHours()+'')
.padStart(2, "0")+':'+(d.getMinutes()+'')
.padStart(2, "0")+':'+(d.getSeconds()+'')
.padStart(2, "0")+','+(d.getMilliseconds()+'')
.padStart(3, "0");
}
}, {
width: 40,
field: 'side',
headerName: 'side',
suppressSizeToFit: true,
cellClassRules: {
'sell': 'data.side == "Ask"',
'buy': 'data.side == "Bid"'
},
cellRenderer: (params) => (
params.value == "Ask"
? '<span style="transform: rotate(180deg);display: inline-block;">&#10140;</span>'
: '<span style="display: inline-block;">&#10140;</span>'
) + params.value
}, {
width: 74,
field: 'price',
Expand All @@ -124,7 +98,7 @@ export class OrdersComponent {
showStepperButtons: true
} };
},
cellRenderer: (params) => '<span style="display: inline-block;">&#9998;</span>' + Shared.str(params.value, params.data.pricePrecision),
cellRenderer: (params) => Shared.str(params.value, params.data.pricePrecision) + ' <span style="transform: rotate(90deg);display: inline-block;">&#9998;</span>',
cellClassRules: {
'sell': 'data.side == "Ask"',
'buy': 'data.side == "Bid"'
Expand All @@ -139,6 +113,20 @@ export class OrdersComponent {
'sell': 'data.side == "Ask"',
'buy': 'data.side == "Bid"'
}
}, {
width: 40,
field: 'side',
headerName: 'side',
suppressSizeToFit: true,
cellClassRules: {
'sell': 'data.side == "Ask"',
'buy': 'data.side == "Bid"'
},
cellRenderer: (params) => (
params.value == "Ask"
? '<span style="transform: rotate(+90deg);display: inline-block;">&#10140;</span>'
: '<span style="transform: rotate(-90deg);display: inline-block;">&#10140;</span>'
) + params.value
}, {
width: 74,
field: 'value',
Expand All @@ -148,6 +136,19 @@ export class OrdersComponent {
'sell': 'data.side == "Ask"',
'buy': 'data.side == "Bid"'
}
}, {
width: 82,
field: 'time',
headerName: 'time',
suppressSizeToFit: true,
cellRenderer: (params) => {
var d = new Date(params.value||0);
return (d.getHours()+'')
.padStart(2, "0")+':'+(d.getMinutes()+'')
.padStart(2, "0")+':'+(d.getSeconds()+'')
.padStart(2, "0")+','+(d.getMilliseconds()+'')
.padStart(3, "0");
}
}, {
width: 55,
field: 'type',
Expand Down
16 changes: 8 additions & 8 deletions src/lib/Krypto.ninja-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@ beacons:
export define PACKAGE_JSON
{
"dependencies": {
"@angular/common": "^18.2.7",
"@angular/compiler": "^18.2.7",
"@angular/core": "^18.2.7",
"@angular/forms": "^18.2.7",
"@angular/platform-browser": "^18.2.7",
"@angular/platform-browser-dynamic": "^18.2.7",
"@angular/router": "^18.2.7",
"@angular/common": "^18.2.8",
"@angular/compiler": "^18.2.8",
"@angular/core": "^18.2.8",
"@angular/forms": "^18.2.8",
"@angular/platform-browser": "^18.2.8",
"@angular/platform-browser-dynamic": "^18.2.8",
"@angular/router": "^18.2.8",
"@types/node": "^22.7.5",
"ag-grid-angular": "^32.2.2",
"ag-grid-community": "^32.2.2",
"esbuild": "^0.24.0",
"highcharts": "^11.4.8",
"highcharts-angular": "^4.0.1",
"rxjs": "^7.8.1",
"sass": "^1.79.4",
"sass": "^1.79.5",
"typescript": "^5.6.3",
"uglify-js": "^3.19.3",
"zone.js": "^0.14.10"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ V_CURL = 8.10.1
V_SQL = 3460100
V_JSON = 3.11.3
V_CATCH = 2.13.10
V_UV = 1.49.0
V_UV = 1.49.1

KBUILD := $(abspath ../../build-$(KHOST))

Expand Down

0 comments on commit f7dc0d9

Please sign in to comment.