mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 12:05:16 +00:00
chore: Update internal component styles to PascalCase
This commit is contained in:
parent
6fe7757276
commit
f4e610bc99
|
@ -14,14 +14,14 @@
|
||||||
@click="botStore.selectBot(bot.botId)"
|
@click="botStore.selectBot(bot.botId)"
|
||||||
>
|
>
|
||||||
<i-mdi-reorder-horizontal v-if="!small" class="handle me-2 fs-4" />
|
<i-mdi-reorder-horizontal v-if="!small" class="handle me-2 fs-4" />
|
||||||
<bot-rename
|
<BotRename
|
||||||
v-if="editingBots.includes(bot.botId)"
|
v-if="editingBots.includes(bot.botId)"
|
||||||
:bot="bot"
|
:bot="bot"
|
||||||
@saved="stopEditBot(bot.botId)"
|
@saved="stopEditBot(bot.botId)"
|
||||||
@cancelled="stopEditBot(bot.botId)"
|
@cancelled="stopEditBot(bot.botId)"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<bot-entry
|
<BotEntry
|
||||||
v-else
|
v-else
|
||||||
:bot="bot"
|
:bot="bot"
|
||||||
:no-buttons="small"
|
:no-buttons="small"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="d-flex me-0">
|
<div class="d-flex me-0">
|
||||||
<div class="ms-1 ms-md-2 d-flex flex-wrap flex-md-nowrap align-items-center w-auto">
|
<div class="ms-1 ms-md-2 d-flex flex-wrap flex-md-nowrap align-items-center w-auto">
|
||||||
<span class="ms-md-2 text-nowrap">{{ strategyName }} | {{ timeframe || '' }}</span>
|
<span class="ms-md-2 text-nowrap">{{ strategyName }} | {{ timeframe || '' }}</span>
|
||||||
<v-select
|
<VSelect
|
||||||
v-model="botStore.activeBot.plotPair"
|
v-model="botStore.activeBot.plotPair"
|
||||||
class="ms-md-2"
|
class="ms-md-2"
|
||||||
:options="availablePairs"
|
:options="availablePairs"
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
:clearable="false"
|
:clearable="false"
|
||||||
@input="refresh"
|
@input="refresh"
|
||||||
>
|
>
|
||||||
</v-select>
|
</VSelect>
|
||||||
|
|
||||||
<b-button
|
<b-button
|
||||||
title="Refresh chart"
|
title="Refresh chart"
|
||||||
|
@ -85,11 +85,11 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<transition name="fade">
|
<Transition name="fade">
|
||||||
<div v-if="!plotConfigModal" v-show="showPlotConfig" class="w-25">
|
<div v-if="!plotConfigModal" v-show="showPlotConfig" class="w-25">
|
||||||
<PlotConfigurator :columns="datasetColumns" :is-visible="showPlotConfig ?? false" />
|
<PlotConfigurator :columns="datasetColumns" :is-visible="showPlotConfig ?? false" />
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<b-modal
|
<b-modal
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
import { usePlotConfigStore } from '@/stores/plotConfig';
|
import { usePlotConfigStore } from '@/stores/plotConfig';
|
||||||
import { useSettingsStore } from '@/stores/settings';
|
import { useSettingsStore } from '@/stores/settings';
|
||||||
import { ChartSliderPosition, LoadingStatus, PairHistory, Trade } from '@/types';
|
import { ChartSliderPosition, LoadingStatus, PairHistory, Trade } from '@/types';
|
||||||
import vSelect from 'vue-select';
|
import VSelect from 'vue-select';
|
||||||
|
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="columns">
|
<div v-if="columns">
|
||||||
<b-form-group label="Plot config name" label-for="idPlotConfigName">
|
<b-form-group label="Plot config name" label-for="idPlotConfigName">
|
||||||
<plot-config-select allow-edit></plot-config-select>
|
<PlotConfigSelect allow-edit></PlotConfigSelect>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
<div class="col-mb-3">
|
<div class="col-mb-3">
|
||||||
<hr />
|
<hr />
|
||||||
<b-form-group label="Target Plot" label-for="FieldSel">
|
<b-form-group label="Target Plot" label-for="FieldSel">
|
||||||
<edit-value
|
<EditValue
|
||||||
v-model="selSubPlot"
|
v-model="selSubPlot"
|
||||||
:allow-edit="!isMainPlot"
|
:allow-edit="!isMainPlot"
|
||||||
allow-add
|
allow-add
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
>
|
>
|
||||||
<b-form-select id="FieldSel" v-model="selSubPlot" :options="subplots" :select-size="5">
|
<b-form-select id="FieldSel" v-model="selSubPlot" :options="subplots" :select-size="5">
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
</edit-value>
|
</EditValue>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
|
@ -68,12 +68,7 @@
|
||||||
@indicator-selected="addNewIndicatorSelected"
|
@indicator-selected="addNewIndicatorSelected"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<plot-indicator
|
<PlotIndicator v-if="selIndicatorName" v-model="selIndicator" class="mt-1" :columns="columns" />
|
||||||
v-if="selIndicatorName"
|
|
||||||
v-model="selIndicator"
|
|
||||||
class="mt-1"
|
|
||||||
:columns="columns"
|
|
||||||
/>
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="d-flex flex-row">
|
<div class="d-flex flex-row">
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="d-flex flex-row">
|
<div class="d-flex flex-row">
|
||||||
<b-form-group class="flex-grow-1" :label="label" label-for="indicatorSelector">
|
<b-form-group class="flex-grow-1" :label="label" label-for="indicatorSelector">
|
||||||
<v-select
|
<VSelect
|
||||||
v-model="selAvailableIndicator"
|
v-model="selAvailableIndicator"
|
||||||
:options="columns"
|
:options="columns"
|
||||||
size="sm"
|
size="sm"
|
||||||
:clearable="false"
|
:clearable="false"
|
||||||
@option:selected="emitIndicator"
|
@option:selected="emitIndicator"
|
||||||
>
|
>
|
||||||
</v-select>
|
</VSelect>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
<b-button size="sm" title="Abort" class="ms-1 mt-auto" variant="secondary" @click="abort">
|
<b-button size="sm" title="Abort" class="ms-1 mt-auto" variant="secondary" @click="abort">
|
||||||
<i-mdi-close />
|
<i-mdi-close />
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import vSelect from 'vue-select';
|
import VSelect from 'vue-select';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: { required: false, default: '', type: String },
|
modelValue: { required: false, default: '', type: String },
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(profitOpen)="{ item }">
|
<template #cell(profitOpen)="{ item }">
|
||||||
<profit-pill
|
<ProfitPill
|
||||||
v-if="item.profitOpen && item.botId != 'Summary'"
|
v-if="item.profitOpen && item.botId != 'Summary'"
|
||||||
:profit-ratio="(item as unknown as ComparisonTableItems).profitOpenRatio"
|
:profit-ratio="(item as unknown as ComparisonTableItems).profitOpenRatio"
|
||||||
:profit-abs="(item as unknown as ComparisonTableItems).profitOpen"
|
:profit-abs="(item as unknown as ComparisonTableItems).profitOpen"
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(profitClosed)="{ item }">
|
<template #cell(profitClosed)="{ item }">
|
||||||
<profit-pill
|
<ProfitPill
|
||||||
v-if="item.profitClosed && item.botId != 'Summary'"
|
v-if="item.profitClosed && item.botId != 'Summary'"
|
||||||
:profit-ratio="(item as unknown as ComparisonTableItems).profitClosedRatio"
|
:profit-ratio="(item as unknown as ComparisonTableItems).profitClosedRatio"
|
||||||
:profit-abs="(item as unknown as ComparisonTableItems).profitClosed"
|
:profit-abs="(item as unknown as ComparisonTableItems).profitClosed"
|
||||||
|
|
|
@ -62,7 +62,7 @@ function handleForceEntry(item: Trade) {
|
||||||
:show="popoverOpen"
|
:show="popoverOpen"
|
||||||
placement="left"
|
placement="left"
|
||||||
>
|
>
|
||||||
<trade-actions
|
<TradeActions
|
||||||
:trade="trade"
|
:trade="trade"
|
||||||
:bot-api-version="botApiVersion"
|
:bot-api-version="botApiVersion"
|
||||||
:enable-force-entry="enableForceEntry"
|
:enable-force-entry="enableForceEntry"
|
||||||
|
|
|
@ -28,16 +28,16 @@
|
||||||
v-if="trade.is_open && trade.realized_profit && !trade.total_profit_abs"
|
v-if="trade.is_open && trade.realized_profit && !trade.total_profit_abs"
|
||||||
description="Realized Profit"
|
description="Realized Profit"
|
||||||
>
|
>
|
||||||
<trade-profit class="ms-2" :trade="trade" mode="realized" />
|
<TradeProfit class="ms-2" :trade="trade" mode="realized" />
|
||||||
</ValuePair>
|
</ValuePair>
|
||||||
<ValuePair v-if="trade.is_open && trade.total_profit_abs" description="Total Profit">
|
<ValuePair v-if="trade.is_open && trade.total_profit_abs" description="Total Profit">
|
||||||
<trade-profit class="ms-2" :trade="trade" mode="total" />
|
<TradeProfit class="ms-2" :trade="trade" mode="total" />
|
||||||
</ValuePair>
|
</ValuePair>
|
||||||
<ValuePair
|
<ValuePair
|
||||||
v-if="trade.profit_ratio && trade.profit_abs"
|
v-if="trade.profit_ratio && trade.profit_abs"
|
||||||
:description="`${trade.is_open ? 'Current Profit' : 'Close Profit'}`"
|
:description="`${trade.is_open ? 'Current Profit' : 'Close Profit'}`"
|
||||||
>
|
>
|
||||||
<trade-profit class="ms-2" :trade="trade" />
|
<TradeProfit class="ms-2" :trade="trade" />
|
||||||
</ValuePair>
|
</ValuePair>
|
||||||
<details>
|
<details>
|
||||||
<summary>Details</summary>
|
<summary>Details</summary>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
{{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }}
|
{{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }}
|
||||||
</template>
|
</template>
|
||||||
<template #cell(profit)="row">
|
<template #cell(profit)="row">
|
||||||
<trade-profit :trade="row.item as unknown as Trade" />
|
<TradeProfit :trade="row.item as unknown as Trade" />
|
||||||
</template>
|
</template>
|
||||||
<template #cell(open_timestamp)="row">
|
<template #cell(open_timestamp)="row">
|
||||||
<DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" />
|
<DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" />
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
<b-form-input id="trade-filter" v-model="filterText" type="text" placeholder="Filter" />
|
<b-form-input id="trade-filter" v-model="filterText" type="text" placeholder="Filter" />
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
</div>
|
</div>
|
||||||
<force-exit-form v-if="activeTrades" v-model="forceExitVisible" :trade="feTrade" />
|
<ForceExitForm v-if="activeTrades" v-model="forceExitVisible" :trade="feTrade" />
|
||||||
<ForceEntryForm
|
<ForceEntryForm
|
||||||
v-model="increasePosition.visible"
|
v-model="increasePosition.visible"
|
||||||
:pair="increasePosition.trade?.pair"
|
:pair="increasePosition.trade?.pair"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const alertStore = useAlertsStore();
|
const alertStore = useAlertsStore();
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<teleport to="body">
|
<Teleport to="body">
|
||||||
<div class="toast-container position-fixed p-3 top-0 mt-5 end-0">
|
<div class="toast-container position-fixed p-3 top-0 mt-5 end-0">
|
||||||
<BToast
|
<BToast
|
||||||
v-for="(alert, idx) in alertStore.activeMessages"
|
v-for="(alert, idx) in alertStore.activeMessages"
|
||||||
|
@ -15,7 +15,7 @@ const alertStore = useAlertsStore();
|
||||||
{{ alert.message }}
|
{{ alert.message }}
|
||||||
</BToast>
|
</BToast>
|
||||||
</div>
|
</div>
|
||||||
</teleport>
|
</Teleport>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
:class="isProfitable ? 'profit-pill-profit' : ''"
|
:class="isProfitable ? 'profit-pill-profit' : ''"
|
||||||
:title="profitDesc"
|
:title="profitDesc"
|
||||||
>
|
>
|
||||||
<profit-symbol :profit="(profitRatio || profitAbs) ?? 0" />
|
<ProfitSymbol :profit="(profitRatio || profitAbs) ?? 0" />
|
||||||
|
|
||||||
<div class="d-flex justify-content-center align-items-center flex-grow-1">
|
<div class="d-flex justify-content-center align-items-center flex-grow-1">
|
||||||
{{ profitRatio !== undefined ? formatPercent(profitRatio, 2) : '' }}
|
{{ profitRatio !== undefined ? formatPercent(profitRatio, 2) : '' }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<main>
|
<main>
|
||||||
<router-view />
|
<RouterView />
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<header>
|
<header>
|
||||||
<b-navbar toggleable="sm" dark variant="primary">
|
<b-navbar toggleable="sm" dark variant="primary">
|
||||||
<router-link class="navbar-brand" exact to="/">
|
<RouterLink class="navbar-brand" exact to="/">
|
||||||
<img class="logo" src="@/assets/freqtrade-logo.png" alt="Home Logo" />
|
<img class="logo" src="@/assets/freqtrade-logo.png" alt="Home Logo" />
|
||||||
<span class="navbar-brand-title d-sm-none d-md-inline">Freqtrade UI</span>
|
<span class="navbar-brand-title d-sm-none d-md-inline">Freqtrade UI</span>
|
||||||
</router-link>
|
</RouterLink>
|
||||||
|
|
||||||
<!-- TODO: For XS breakpoint, this should be here... -->
|
<!-- TODO: For XS breakpoint, this should be here... -->
|
||||||
<!-- <ReloadControl class="me-3" /> -->
|
<!-- <ReloadControl class="me-3" /> -->
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
to="/pairlist_config"
|
to="/pairlist_config"
|
||||||
>Pairlist Config</b-nav-item
|
>Pairlist Config</b-nav-item
|
||||||
>
|
>
|
||||||
<theme-select />
|
<ThemeSelect />
|
||||||
</b-navbar-nav>
|
</b-navbar-nav>
|
||||||
|
|
||||||
<!-- Right aligned nav items -->
|
<!-- Right aligned nav items -->
|
||||||
|
|
|
@ -3,46 +3,46 @@
|
||||||
<!-- Only visible on xs (phone) viewport! -->
|
<!-- Only visible on xs (phone) viewport! -->
|
||||||
<hr class="my-0" />
|
<hr class="my-0" />
|
||||||
<div class="d-flex flex-align-center justify-content-between px-2">
|
<div class="d-flex flex-align-center justify-content-between px-2">
|
||||||
<router-link
|
<RouterLink
|
||||||
v-if="!botStore.canRunBacktest"
|
v-if="!botStore.canRunBacktest"
|
||||||
class="nav-link navbar-nav align-items-center"
|
class="nav-link navbar-nav align-items-center"
|
||||||
to="/open_trades"
|
to="/open_trades"
|
||||||
>
|
>
|
||||||
<i-mdi-folder-open height="24" width="24" />
|
<i-mdi-folder-open height="24" width="24" />
|
||||||
Trades
|
Trades
|
||||||
</router-link>
|
</RouterLink>
|
||||||
<router-link
|
<RouterLink
|
||||||
v-if="!botStore.canRunBacktest"
|
v-if="!botStore.canRunBacktest"
|
||||||
class="nav-link navbar-nav align-items-center"
|
class="nav-link navbar-nav align-items-center"
|
||||||
to="/trade_history"
|
to="/trade_history"
|
||||||
>
|
>
|
||||||
<i-mdi-folder-lock height="24" width="24" />
|
<i-mdi-folder-lock height="24" width="24" />
|
||||||
History
|
History
|
||||||
</router-link>
|
</RouterLink>
|
||||||
<router-link
|
<RouterLink
|
||||||
v-if="!botStore.canRunBacktest"
|
v-if="!botStore.canRunBacktest"
|
||||||
class="nav-link navbar-nav align-items-center"
|
class="nav-link navbar-nav align-items-center"
|
||||||
to="/pairlist"
|
to="/pairlist"
|
||||||
>
|
>
|
||||||
<i-mdi-view-list height="24" width="24" />
|
<i-mdi-view-list height="24" width="24" />
|
||||||
Pairlist
|
Pairlist
|
||||||
</router-link>
|
</RouterLink>
|
||||||
<router-link
|
<RouterLink
|
||||||
v-if="!botStore.canRunBacktest"
|
v-if="!botStore.canRunBacktest"
|
||||||
class="nav-link navbar-nav align-items-center"
|
class="nav-link navbar-nav align-items-center"
|
||||||
to="/balance"
|
to="/balance"
|
||||||
>
|
>
|
||||||
<i-mdi-bank height="24" width="24" />
|
<i-mdi-bank height="24" width="24" />
|
||||||
Balance
|
Balance
|
||||||
</router-link>
|
</RouterLink>
|
||||||
<router-link
|
<RouterLink
|
||||||
v-if="!botStore.canRunBacktest"
|
v-if="!botStore.canRunBacktest"
|
||||||
class="nav-link navbar-nav align-items-center"
|
class="nav-link navbar-nav align-items-center"
|
||||||
to="/dashboard"
|
to="/dashboard"
|
||||||
>
|
>
|
||||||
<i-mdi-view-dashboard-outline height="24" width="24" />
|
<i-mdi-view-dashboard-outline height="24" width="24" />
|
||||||
Dashboard
|
Dashboard
|
||||||
</router-link>
|
</RouterLink>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
<i-mdi-chevron-right v-if="!showLeftBar" width="24" height="24" />
|
<i-mdi-chevron-right v-if="!showLeftBar" width="24" height="24" />
|
||||||
<i-mdi-chevron-left v-if="showLeftBar" width="24" height="24" />
|
<i-mdi-chevron-left v-if="showLeftBar" width="24" height="24" />
|
||||||
</b-button>
|
</b-button>
|
||||||
<transition name="fade">
|
<Transition name="fade">
|
||||||
<BacktestResultSelect
|
<BacktestResultSelect
|
||||||
v-if="showLeftBar"
|
v-if="showLeftBar"
|
||||||
:backtest-history="botStore.activeBot.backtestHistory"
|
:backtest-history="botStore.activeBot.backtestHistory"
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
@remove-result="botStore.activeBot.removeBacktestResultFromMemory"
|
@remove-result="botStore.activeBot.removeBacktestResultFromMemory"
|
||||||
@update-result="botStore.activeBot.saveBacktestResultMetadata"
|
@update-result="botStore.activeBot.saveBacktestResultMetadata"
|
||||||
/>
|
/>
|
||||||
</transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
<!-- End Left bar -->
|
<!-- End Left bar -->
|
||||||
<div class="d-flex flex-column flex-fill mw-100">
|
<div class="d-flex flex-column flex-fill mw-100">
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
drag-allow-from=".drag-header"
|
drag-allow-from=".drag-header"
|
||||||
>
|
>
|
||||||
<DraggableContainer header="Bot comparison">
|
<DraggableContainer header="Bot comparison">
|
||||||
<bot-comparison-list />
|
<BotComparisonList />
|
||||||
</DraggableContainer>
|
</DraggableContainer>
|
||||||
</grid-item>
|
</grid-item>
|
||||||
<grid-item
|
<grid-item
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<p class="h4">Ahhhhhhhh! The page you are looking for does not exist.</p>
|
<p class="h4">Ahhhhhhhh! The page you are looking for does not exist.</p>
|
||||||
<p>
|
<p>
|
||||||
Don't worry, you can head back to
|
Don't worry, you can head back to
|
||||||
<router-link to="/"> <span>the main page</span> </router-link>.
|
<RouterLink to="/"> <span>the main page</span> </RouterLink>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="home">
|
<div class="home">
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
<bot-list />
|
<BotList />
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<!-- <img alt="Freqtrade logo" src="../assets/freqtrade-logo.png" width="450px" class="my-5" /> -->
|
<!-- <img alt="Freqtrade logo" src="../assets/freqtrade-logo.png" width="450px" class="my-5" /> -->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user