mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-13 10:57:38 +08:00
✨ 联合黑名单支持
This commit is contained in:
parent
5913528d32
commit
b8375013a3
@ -123,12 +123,12 @@
|
|||||||
mottoAuthor.style.textAlign = 'right';
|
mottoAuthor.style.textAlign = 'right';
|
||||||
mottoDiv.appendChild(mottoAuthor);
|
mottoDiv.appendChild(mottoAuthor);
|
||||||
|
|
||||||
function getPieUsage(data){
|
function getPieUsage(data) {
|
||||||
let total = 0
|
let total = 0
|
||||||
let used = 0
|
let used = 0
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
total += item.value
|
total += item.value
|
||||||
if(item.name === 'FREE'){
|
if (item.name === 'FREE') {
|
||||||
used += item.value
|
used += item.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -191,7 +191,7 @@
|
|||||||
|
|
||||||
function getBarOption(title, percent) {
|
function getBarOption(title, percent) {
|
||||||
let fillet = 0
|
let fillet = 0
|
||||||
if (percent < 5){
|
if (percent < 5) {
|
||||||
fillet = 50
|
fillet = 50
|
||||||
}
|
}
|
||||||
// data为百分比,最大值为100
|
// data为百分比,最大值为100
|
||||||
|
Loading…
Reference in New Issue
Block a user