refactor: drop two unmaintained dependencies, rename the byte size helpers (#39083)

This commit is contained in:
silverwind
2026-08-27 17:31:20 +02:00
committed by GitHub
parent 3b6ce586a7
commit 66c672d0b7
33 changed files with 197 additions and 180 deletions
+4 -4
View File
@@ -56,10 +56,10 @@ func newFuncMapWebPage() template.FuncMap {
// -----------------------------------------------------------------
// time / number / format
"ShortSha": base.ShortSha,
"FileSize": base.FileSize,
"CountFmt": countFmt,
"Sec2Hour": util.SecToHours,
"ShortSha": base.ShortSha,
"FormatByteSize": util.FormatByteSize,
"CountFmt": countFmt,
"Sec2Hour": util.SecToHours,
"TimeEstimateString": timeEstimateString,
+2 -2
View File
@@ -87,8 +87,8 @@ func mailBodyFuncMap() template.FuncMap {
"JsonUtils": NewJsonUtils,
// time / number / format
"ShortSha": base.ShortSha,
"FileSize": base.FileSize,
"ShortSha": base.ShortSha,
"FormatByteSize": util.FormatByteSize,
// setting
"AppName": func() string {