chore: 在 lint 中添加类型检查并新增加载图标

- 在 Makefile 的 lint 目标中增加 `pnpm typecheck`
- 添加带渐变效果的旋转加载 SVG 图标
This commit is contained in:
xfy 2026-07-03 11:36:24 +08:00
parent 188fc464e2
commit 740afca05a
2 changed files with 15 additions and 1 deletions

View File

@ -115,7 +115,7 @@ test:
# JS + Rust 一次性检查(不改动文件)。
lint:
@echo "==> Biome check (libs)"
@cd libs && pnpm exec biome check .
@cd libs && pnpm exec biome check . && pnpm typecheck
@echo "==> Cargo clippy (Rust)"
@cargo clippy --all-targets --all-features -- -D warnings

View File

@ -0,0 +1,14 @@
<svg fill="hsl(228, 97%, 42%)" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="RadialGradient8932"><stop offset="0%" stop-color="currentColor" stop-opacity="1"/><stop offset="100%" stop-color="currentColor" stop-opacity="0.25"/></linearGradient></defs><style>@keyframes spin8932 {
to {
transform: rotate(360deg);
}
}
#circle8932 {
transform-origin: 50% 50%;
stroke: url(#RadialGradient8932);
fill: none;
animation: spin8932 .5s infinite linear;
:
}</style><circle cx="10" cy="10" r="8" id="circle8932" stroke-width="2"/></svg>

After

Width:  |  Height:  |  Size: 685 B