mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-05 13:10:07 +00:00
💄 修复主题错误
This commit is contained in:
2
resource/template/theme-daynight/home.html
vendored
2
resource/template/theme-daynight/home.html
vendored
@@ -246,7 +246,7 @@
|
||||
},
|
||||
formatByteSize(bs) {
|
||||
const x = this.readableBytes(bs)
|
||||
return x != "NaN undefined" ? x : '0 KB'
|
||||
return x != "NaN undefined" ? x : '0B'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
2
resource/template/theme-default/home.html
vendored
2
resource/template/theme-default/home.html
vendored
@@ -215,7 +215,7 @@
|
||||
},
|
||||
formatByteSize(bs) {
|
||||
const x = readableBytes(bs)
|
||||
return x != "NaN undefined" ? x : '0 KB'
|
||||
return x != "NaN undefined" ? x : '0B'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
4
resource/template/theme-hotaru/home.html
vendored
4
resource/template/theme-hotaru/home.html
vendored
@@ -211,6 +211,10 @@
|
||||
sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
||||
return parseFloat((bytes / Math.pow(1024, i)).toFixed(2)) + sizes[i];
|
||||
},
|
||||
formatByteSize(bs) {
|
||||
const x = this.readableBytes(bs)
|
||||
return x != "NaN undefined" ? x : '0B'
|
||||
},
|
||||
troggleDarkMode() {
|
||||
const hour = new Date(Date.now()).getHours()
|
||||
if (hour > 17 || hour < 4) {
|
||||
|
||||
Reference in New Issue
Block a user