mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Remove botKPI's from dashboard
This commit is contained in:
parent
f3477d9edf
commit
f6505166fc
|
@ -11,7 +11,6 @@ export enum TradeLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum DashboardLayout {
|
export enum DashboardLayout {
|
||||||
KPI = 'g-kpi',
|
|
||||||
dailyChart = 'g-dailyChart',
|
dailyChart = 'g-dailyChart',
|
||||||
botComparison = 'g-botComparison',
|
botComparison = 'g-botComparison',
|
||||||
allOpenTrades = 'g-allOpenTrades',
|
allOpenTrades = 'g-allOpenTrades',
|
||||||
|
@ -51,21 +50,19 @@ const DEFAULT_TRADING_LAYOUT: GridItemData[] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const DEFAULT_DASHBOARD_LAYOUT: GridItemData[] = [
|
const DEFAULT_DASHBOARD_LAYOUT: GridItemData[] = [
|
||||||
{ i: DashboardLayout.KPI, x: 0, y: 0, w: 4, h: 6 },
|
{ i: DashboardLayout.botComparison, x: 0, y: 0, w: 8, h: 6 } /* Bot Comparison */,
|
||||||
{ i: DashboardLayout.dailyChart, x: 4, y: 0, w: 4, h: 6 },
|
{ i: DashboardLayout.dailyChart, x: 8, y: 0, w: 4, h: 6 },
|
||||||
{ i: DashboardLayout.botComparison, x: 0, y: 6, w: 6, h: 6 } /* Bot Comparison */,
|
{ i: DashboardLayout.allOpenTrades, x: 0, y: 6, w: 8, h: 6 },
|
||||||
{ i: DashboardLayout.allOpenTrades, x: 6, y: 6, w: 6, h: 6 },
|
{ i: DashboardLayout.cumChartChart, x: 8, y: 6, w: 4, h: 6 },
|
||||||
{ i: DashboardLayout.cumChartChart, x: 8, y: 0, w: 4, h: 6 },
|
|
||||||
{ i: DashboardLayout.tradesLogChart, x: 0, y: 12, w: 12, h: 4 },
|
{ i: DashboardLayout.tradesLogChart, x: 0, y: 12, w: 12, h: 4 },
|
||||||
];
|
];
|
||||||
|
|
||||||
const DEFAULT_DASHBOARD_LAYOUT_SM: GridItemData[] = [
|
const DEFAULT_DASHBOARD_LAYOUT_SM: GridItemData[] = [
|
||||||
{ i: DashboardLayout.KPI, x: 0, y: 0, w: 12, h: 6 },
|
{ i: DashboardLayout.botComparison, x: 0, y: 0, w: 12, h: 6 } /* Bot Comparison */,
|
||||||
{ i: DashboardLayout.botComparison, x: 0, y: 6, w: 12, h: 6 } /* Bot Comparison */,
|
{ i: DashboardLayout.allOpenTrades, x: 0, y: 6, w: 12, h: 8 },
|
||||||
{ i: DashboardLayout.allOpenTrades, x: 0, y: 12, w: 12, h: 8 },
|
{ i: DashboardLayout.dailyChart, x: 0, y: 14, w: 12, h: 6 },
|
||||||
{ i: DashboardLayout.dailyChart, x: 0, y: 20, w: 12, h: 6 },
|
{ i: DashboardLayout.cumChartChart, x: 0, y: 20, w: 12, h: 6 },
|
||||||
{ i: DashboardLayout.cumChartChart, x: 0, y: 26, w: 12, h: 6 },
|
{ i: DashboardLayout.tradesLogChart, x: 0, y: 26, w: 12, h: 4 },
|
||||||
{ i: DashboardLayout.tradesLogChart, x: 0, y: 32, w: 12, h: 4 },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const STORE_DASHBOARD_LAYOUT = 'ftDashboardLayout';
|
const STORE_DASHBOARD_LAYOUT = 'ftDashboardLayout';
|
||||||
|
|
|
@ -13,55 +13,6 @@
|
||||||
@layout-updated="layoutUpdated"
|
@layout-updated="layoutUpdated"
|
||||||
@breakpoint-changed="breakpointChanged"
|
@breakpoint-changed="breakpointChanged"
|
||||||
>
|
>
|
||||||
<GridItem
|
|
||||||
:i="gridLayoutKPI.i"
|
|
||||||
:x="gridLayoutKPI.x"
|
|
||||||
:y="gridLayoutKPI.y"
|
|
||||||
:w="gridLayoutKPI.w"
|
|
||||||
:h="gridLayoutKPI.h"
|
|
||||||
:min-w="3"
|
|
||||||
:min-h="4"
|
|
||||||
drag-allow-from=".drag-header"
|
|
||||||
>
|
|
||||||
<DraggableContainer header="Bot KPI">
|
|
||||||
<b-card-group deck>
|
|
||||||
<b-card header="Open / Total trades">
|
|
||||||
<b-card-text>
|
|
||||||
<span class="text-primary">{{ openTrades.length }}</span> /
|
|
||||||
<span class="text">{{ profit.trade_count }}</span>
|
|
||||||
</b-card-text>
|
|
||||||
</b-card>
|
|
||||||
<b-card header="Won / lost trades">
|
|
||||||
<b-card-text>
|
|
||||||
<span class="text-profit">{{ profit.winning_trades }}</span> /
|
|
||||||
<span class="text-loss">{{ profit.losing_trades }}</span>
|
|
||||||
</b-card-text>
|
|
||||||
</b-card>
|
|
||||||
<b-card header="Last trade">
|
|
||||||
<b-card-text>{{ profit.latest_trade_date }}</b-card-text>
|
|
||||||
</b-card>
|
|
||||||
</b-card-group>
|
|
||||||
<b-card-group deck class="mt-2">
|
|
||||||
<b-card header="Best performing">
|
|
||||||
<b-card-text>{{ profit.best_pair }}</b-card-text>
|
|
||||||
</b-card>
|
|
||||||
<b-card header="Total Balance">
|
|
||||||
<b-card-text
|
|
||||||
>{{
|
|
||||||
formatPrice(balance.total, botState ? botState.stake_currency_decimals || 8 : 8)
|
|
||||||
}}
|
|
||||||
{{ dailyStats.stake_currency }}</b-card-text
|
|
||||||
>
|
|
||||||
</b-card>
|
|
||||||
<b-card v-if="profit.profit_closed_fiat" header="Total profit">
|
|
||||||
<b-card-text
|
|
||||||
>{{ formatPrice(profit.profit_closed_fiat, 2) }}
|
|
||||||
{{ dailyStats.fiat_display_currency }}</b-card-text
|
|
||||||
>
|
|
||||||
</b-card>
|
|
||||||
</b-card-group>
|
|
||||||
</DraggableContainer>
|
|
||||||
</GridItem>
|
|
||||||
<GridItem
|
<GridItem
|
||||||
:i="gridLayoutDaily.i"
|
:i="gridLayoutDaily.i"
|
||||||
:x="gridLayoutDaily.x"
|
:x="gridLayoutDaily.x"
|
||||||
|
@ -218,8 +169,6 @@ export default class Dashboard extends Vue {
|
||||||
|
|
||||||
@ftbot.Action getOpenTrades;
|
@ftbot.Action getOpenTrades;
|
||||||
|
|
||||||
@ftbot.Action getBalance;
|
|
||||||
|
|
||||||
@ftbot.Action getProfit;
|
@ftbot.Action getProfit;
|
||||||
|
|
||||||
formatPrice = formatPrice;
|
formatPrice = formatPrice;
|
||||||
|
@ -256,10 +205,6 @@ export default class Dashboard extends Vue {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get gridLayoutKPI(): GridItemData {
|
|
||||||
return findGridLayout(this.gridLayout, DashboardLayout.KPI);
|
|
||||||
}
|
|
||||||
|
|
||||||
get gridLayoutDaily(): GridItemData {
|
get gridLayoutDaily(): GridItemData {
|
||||||
return findGridLayout(this.gridLayout, DashboardLayout.dailyChart);
|
return findGridLayout(this.gridLayout, DashboardLayout.dailyChart);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user