统一 Rust 与 TypeScript 格式化门禁

纳入 AGC Cargo workspace 的统一 rustfmt 检查与格式化入口

完成项目 TypeScript/Prettier 与 Rust 全量格式化

修复 Pingora expected executable 门禁的空白敏感误报

同步开发运维文档与 AGC skill pack 格式化忽略规则
This commit is contained in:
2026-09-01 16:26:20 +08:00
parent ae79d50b14
commit 071faa482c
1051 changed files with 28412 additions and 19834 deletions
+5 -4
View File
@@ -39,9 +39,7 @@ export function normalizePreloadImageUrl(rawUrl: string) {
}
const baseUrl =
typeof document === 'undefined'
? 'http://localhost/'
: document.baseURI;
typeof document === 'undefined' ? 'http://localhost/' : document.baseURI;
try {
return new URL(trimmedUrl, baseUrl).href;
@@ -84,7 +82,10 @@ export function hasCssImageUrlChange(mutation: MutationRecord) {
export function collectRouteImageUrls(root: HTMLElement) {
const urls = new Set<string>();
const elements = [root, ...Array.from(root.querySelectorAll<HTMLElement>('*'))];
const elements = [
root,
...Array.from(root.querySelectorAll<HTMLElement>('*')),
];
root.querySelectorAll<HTMLImageElement>('img').forEach((image) => {
addNormalizedImageUrl(urls, image.currentSrc);