Fix CamelCase lint errors

This commit is contained in:
Matthias 2020-06-04 20:06:58 +02:00
parent 60545255d8
commit 878192b754
6 changed files with 18 additions and 18 deletions

View File

@ -8,7 +8,7 @@
<p v-if="balance.note">
<strong>{{ balance.note }}</strong>
</p>
<b-table class="table-sm" :items="balance.currencies" :fields="table_fields">
<b-table class="table-sm" :items="balance.currencies" :fields="tableFields">
<template slot="bottom-row">
<td><strong>Total</strong></td>
<td></td>
@ -29,7 +29,7 @@ export default {
name: 'Balance',
computed: {
...mapState('ftbot', ['balance']),
table_fields() {
tableFields() {
return [
{ key: 'currency', label: 'Currency' },
{ key: 'free', label: 'Available', formatter: 'formatCurrency' },

View File

@ -8,11 +8,11 @@
<button
class="btn-primary col-md-5 m-1"
v-if="botState.forcebuy_enabled"
@click="initiate_forcebuy"
@click="initiateForcebuy"
>
Forcebuy
</button>
<ForceBuyForm :modalShow="forcebuy_show" @close="this.$bvModal.hide('forcebuy-modal')" />
<ForceBuyForm :modalShow="forcebuyShow" @close="this.$bvModal.hide('forcebuy-modal')" />
</div>
</div>
</template>
@ -29,12 +29,12 @@ export default {
},
data() {
return {
forcebuy_show: false,
forcebuyShow: false,
};
},
methods: {
...mapActions('ftbot', ['startBot', 'stopBot', 'stopBuy', 'reloadConfig']),
initiate_forcebuy() {
initiateForcebuy() {
console.log('Forcebuy started');
this.$bvModal.show('forcebuy-modal');
},

View File

@ -5,7 +5,7 @@
<b-button class="float-right" size="sm" @click="getDaily">R</b-button>
</div>
<div>
<b-table class="table-sm" :items="dailyStats.data" :fields="daily_fields"> </b-table>
<b-table class="table-sm" :items="dailyStats.data" :fields="dailyFields"> </b-table>
</div>
</div>
</template>
@ -17,7 +17,7 @@ export default {
name: 'DailyStats',
computed: {
...mapState('ftbot', ['dailyStats']),
daily_fields() {
dailyFields() {
return [
{ key: 'date', label: 'Day' },
{ key: 'abs_profit', label: 'Profit' },

View File

@ -3,7 +3,7 @@
<div class="mb-2">
<h3>Performance</h3>
</div>
<b-table class="table-sm" :items="performanceStats" :fields="table_fields"></b-table>
<b-table class="table-sm" :items="performanceStats" :fields="tableFields"></b-table>
</div>
</template>
@ -17,7 +17,7 @@ export default {
},
data() {
return {
table_fields: [
tableFields: [
{ key: 'pair', label: 'Pair' },
{ key: 'profit', label: 'Profit' },
{ key: 'count', label: 'Count' },

View File

@ -5,7 +5,7 @@
<b-table
class="table-sm"
:items="trades"
:fields="table_fields"
:fields="tableFields"
@row-contextmenu="handleContextMenuEvent"
show-empty
:emptyText="emptyText"
@ -54,7 +54,7 @@ export default {
},
data() {
return {
table_fields: [
tableFields: [
{ key: 'trade_id', label: 'ID' },
{ key: 'pair', label: 'Pair' },
{ key: 'amount', label: 'Amount' },

View File

@ -95,8 +95,8 @@ export default {
data() {
return {
autoRefresh: true,
refresh_interval: null,
refresh_interval_slow: null,
refreshInterval: null,
refreshIntervalSlow: null,
};
},
computed: {
@ -109,18 +109,18 @@ export default {
startRefresh() {
console.log('Starting automatic refresh.');
this.refreshFrequent();
this.refresh_interval = setInterval(() => {
this.refreshInterval = setInterval(() => {
this.refreshFrequent();
}, 5000);
this.refreshSlow();
this.refresh_interval_slow = setInterval(() => {
this.refreshIntervalSlow = setInterval(() => {
this.refreshSlow();
}, 60000);
},
stopRefresh() {
console.log('Stopping automatic refresh.');
clearInterval(this.refresh_interval);
clearInterval(this.refresh_interval_slow);
clearInterval(this.refreshInterval);
clearInterval(this.refreshIntervalSlow);
},
},
mounted() {