chore: standardize project comments in English

This commit is contained in:
eezd committed 2026-10-26 22:52:12 +08:00
1 parent a874a39ea5
commit ccb16acbea
167 files changed
+820 -820

No files matched your search

+4 -4
View File
@@ -9,16 +9,16 @@ import (
"regexp"
)
// Dist 在开发模式下直接读取磁盘上的 web/dist(未构建时为空,页面由 Vite 开发服务器提供),
// 因此无需先构建前端即可 go run
// Dist reads web/dist from disk in development (empty before building; Vite serves pages),
// so go run does not require a frontend build first.
func Dist() fs.FS {
return os.DirFS("web/dist")
}
// 开发环境由 Vite 提供页面,不依赖 web/dist 中可能过期的构建产物。
// Vite serves development pages without relying on potentially stale web/dist output.
func BuildVersion() (string, error) { return "dev", nil }
// FontStorage 按 Vite 构建使用的 fonts.css 统计可选字体,不包含 Maple 与 KaTeX。
// FontStorage counts optional fonts from fonts.css as used by Vite, excluding Maple and KaTeX.
func FontStorage() (int64, error) {
root := filepath.Join("web", "src", "common", "appearance")
css, err := os.ReadFile(filepath.Join(root, "fonts.css"))