clean up for review, fix eslint/prettier conflict problem
This commit is contained in:
parent
28370cb714
commit
ff49d6c1a5
|
@ -1,3 +1,5 @@
|
||||||
|
// Must be included inside .stylintrc, otherwise will conflict and cause weird
|
||||||
|
// linting errors
|
||||||
module.exports = {
|
module.exports = {
|
||||||
printWidth: 120
|
printWidth: 120
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,5 +31,6 @@
|
||||||
"universal": "never",
|
"universal": "never",
|
||||||
"valid": true,
|
"valid": true,
|
||||||
"zeroUnits": "never",
|
"zeroUnits": "never",
|
||||||
"zIndexNormalize": false
|
"zIndexNormalize": false,
|
||||||
|
"printWidth": 120
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
|
@ -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() {
|
updateServiceNodes() {
|
||||||
const service_nodes = {
|
const service_nodes = {
|
||||||
fetching: true
|
fetching: true
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="service-node-stake-tab">
|
<div class="service-node-stake-tab">
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<!-- use placeholder with the i18n here -->
|
|
||||||
|
|
||||||
<div class="row align-items sn-contribution-info">
|
<div class="row align-items sn-contribution-info">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="header">{{ $t("titles.availableForContribution") }}</div>
|
<div class="header">{{ $t("titles.availableForContribution") }}</div>
|
||||||
|
@ -66,13 +64,12 @@ export default {
|
||||||
this.scrollToTop();
|
this.scrollToTop();
|
||||||
const key = node.service_node_pubkey;
|
const key = node.service_node_pubkey;
|
||||||
const minContribution = node.minContribution;
|
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.$refs.serviceNodeDetailsContribute.isVisible = false;
|
||||||
this.$emit("contribute", key, minContribution);
|
this.$emit("contribute", key, minContribution);
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
type: "positive",
|
type: "positive",
|
||||||
timeout: 1000,
|
timeout: 1000,
|
||||||
// translate
|
|
||||||
message: this.$t("notification.positive.serviceNodeInfoFilled")
|
message: this.$t("notification.positive.serviceNodeInfoFilled")
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
<ServiceNodeContribute class="contribute" @contribute="fillStakingFields" />
|
<ServiceNodeContribute class="contribute" @contribute="fillStakingFields" />
|
||||||
<q-inner-loading :showing="stake_status.sending || tx_status.sending" :dark="theme == 'dark'">
|
<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>
|
</q-inner-loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -48,10 +48,6 @@ export default {
|
||||||
menuItems
|
menuItems
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
const showing = this.unlock_status.sending || this.fetching;
|
|
||||||
console.log("is the fetching bar showing?" + showing);
|
|
||||||
},
|
|
||||||
computed: mapState({
|
computed: mapState({
|
||||||
theme: state => state.gateway.app.config.appearance.theme,
|
theme: state => state.gateway.app.config.appearance.theme,
|
||||||
unlock_status: state => state.gateway.service_node_status.unlock,
|
unlock_status: state => state.gateway.service_node_status.unlock,
|
||||||
|
|
Loading…
Reference in New Issue