统一 Rust 与 TypeScript 格式化门禁
纳入 AGC Cargo workspace 的统一 rustfmt 检查与格式化入口 完成项目 TypeScript/Prettier 与 Rust 全量格式化 修复 Pingora expected executable 门禁的空白敏感误报 同步开发运维文档与 AGC skill pack 格式化忽略规则
This commit is contained in:
@@ -82,7 +82,7 @@ export function isSeedanceReferenceAudioFile(file: File) {
|
||||
file.type === 'audio/mpeg' ||
|
||||
file.type === 'audio/mp3' ||
|
||||
file.type === '') &&
|
||||
hasAllowedExtension(file, SEEDANCE_AUDIO_EXTENSIONS)
|
||||
hasAllowedExtension(file, SEEDANCE_AUDIO_EXTENSIONS)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,9 @@ export function isEditorAssetVideoFile(file: File) {
|
||||
|
||||
export function isEditorAssetAudioFile(file: File) {
|
||||
return (
|
||||
(file.type === 'audio/mpeg' || file.type === 'audio/mp3' || file.type === '') &&
|
||||
(file.type === 'audio/mpeg' ||
|
||||
file.type === 'audio/mp3' ||
|
||||
file.type === '') &&
|
||||
hasAllowedExtension(file, EDITOR_ASSET_AUDIO_EXTENSIONS)
|
||||
);
|
||||
}
|
||||
@@ -335,9 +337,7 @@ function hasSupportedImageHeaderSignature(buffer: ArrayBuffer) {
|
||||
);
|
||||
}
|
||||
|
||||
function normalizeImageFileDimensions(
|
||||
dimensions: ImageFileDimensions | null,
|
||||
) {
|
||||
function normalizeImageFileDimensions(dimensions: ImageFileDimensions | null) {
|
||||
if (
|
||||
!dimensions ||
|
||||
dimensions.width <= 0 ||
|
||||
|
||||
Reference in New Issue
Block a user