Add more pages in the WebUI

This commit is contained in:
Jorge Gonzalez 2019-09-10 14:40:05 +02:00 committed by Traefiker Bot
parent 2b828765e3
commit fcc1109e76
82 changed files with 5005 additions and 249 deletions

View file

@ -5,6 +5,9 @@
<div class="col">
<div class="text-h6 text-weight-bold">{{getName}}</div>
</div>
<div class="col-auto">
<q-btn :to="getUrl" color="accent" dense flat icon-right="eva-arrow-forward-outline" no-caps label="Explore" size="md" class="text-weight-bold"/>
</div>
</div>
</q-card-section>
<q-card-section>
@ -104,7 +107,7 @@ export default {
} else {
result = num
}
return isNaN(result) ? 0 : result
return isNaN(result) || result < 0 ? 0 : result
},
getWarnings (inPercent = false) {
const num = this.data.warnings
@ -114,7 +117,7 @@ export default {
} else {
result = num
}
return isNaN(result) ? 0 : result
return isNaN(result) || result < 0 ? 0 : result
},
getErrors (inPercent = false) {
const num = this.data.errors
@ -124,7 +127,7 @@ export default {
} else {
result = num
}
return isNaN(result) ? 0 : result
return isNaN(result) || result < 0 ? 0 : result
},
getData () {
return [this.getSuccess(), this.getWarnings(), this.getErrors()]