clean up for review, fix eslint/prettier conflict problem

This commit is contained in:
Kyle Zsembery 2020-09-08 14:05:22 +10:00
parent 28370cb714
commit ff49d6c1a5
7 changed files with 6 additions and 43 deletions

View File

@ -1,3 +1,5 @@
// Must be included inside .stylintrc, otherwise will conflict and cause weird
// linting errors
module.exports = {
printWidth: 120
};

View File

@ -31,5 +31,6 @@
"universal": "never",
"valid": true,
"zeroUnits": "never",
"zIndexNormalize": false
"zIndexNormalize": false,
"printWidth": 120
}

View File

@ -1,31 +0,0 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"loose": false,
"useBuiltIns": "usage"
}
],
[
"@babel/preset-stage-2",
{
"modules": false,
"loose": false,
"useBuiltIns": true,
"decoratorsLegacy": true
}
]
],
"plugins": [
[
"@babel/transform-runtime",
{
"polyfill": false,
"regenerator": false
}
]
],
"comments": false
}

View File

@ -419,8 +419,6 @@ export class Daemon {
});
}
// Get the latest service node data, used to do it in background
// so no user feedback required
updateServiceNodes() {
const service_nodes = {
fetching: true

View File

@ -1,8 +1,6 @@
<template>
<div class="service-node-stake-tab">
<div class="q-pa-md">
<!-- use placeholder with the i18n here -->
<div class="row align-items sn-contribution-info">
<div class="col-md-8">
<div class="header">{{ $t("titles.availableForContribution") }}</div>
@ -66,13 +64,12 @@ export default {
this.scrollToTop();
const key = node.service_node_pubkey;
const minContribution = node.minContribution;
// close the popup if it's open
// close the detail popup if it's open
this.$refs.serviceNodeDetailsContribute.isVisible = false;
this.$emit("contribute", key, minContribution);
this.$q.notify({
type: "positive",
timeout: 1000,
// translate
message: this.$t("notification.positive.serviceNodeInfoFilled")
});
},

View File

@ -49,7 +49,7 @@
</div>
<ServiceNodeContribute class="contribute" @contribute="fillStakingFields" />
<q-inner-loading :showing="stake_status.sending || tx_status.sending" :dark="theme == 'dark'">
<q-spinner color="red" size="30" />
<q-spinner color="primary" size="30" />
</q-inner-loading>
</div>
</template>

View File

@ -48,10 +48,6 @@ export default {
menuItems
};
},
created() {
const showing = this.unlock_status.sending || this.fetching;
console.log("is the fetching bar showing?" + showing);
},
computed: mapState({
theme: state => state.gateway.app.config.appearance.theme,
unlock_status: state => state.gateway.service_node_status.unlock,