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

View File

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

View File

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

View File

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

View File

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

View File

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