💄 修复主题错误
This commit is contained in:
parent
557cccd770
commit
02f0f25d9c
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) {
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
pb "github.com/naiba/nezha/proto"
|
||||
)
|
||||
|
||||
var Version = "v0.8.5" // !!记得修改 README 中的 badge 版本!!
|
||||
var Version = "v0.8.6" // !!记得修改 README 中的 badge 版本!!
|
||||
|
||||
var (
|
||||
Conf *model.Config
|
||||
|
Loading…
Reference in New Issue
Block a user