完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
-17
View File
@@ -79,23 +79,6 @@ foreach ($file in $referenceFiles) {
}
}
# ModulePage 的两个路径由四个受控模块名动态展开;这里验证模板和有限集合,禁止扫描器漏掉动态消费者。
$modulePagePath = Join-Path $root 'components/ModulePage.vue'
$modulePage = Get-Content -Raw -Encoding UTF8 -LiteralPath $modulePagePath
foreach ($template in @(
'/static/assets/modules/${assetModule.value}/transparent/module-content-frame.png',
'/static/assets/modules/${assetModule.value}/transparent/module-field-frame.png'
)) {
if (-not $modulePage.Contains($template)) { throw "ModulePage 动态资产模板漂移:$template" }
}
foreach ($module in @('family', 'records', 'notification', 'profile')) {
foreach ($fileName in @('module-content-frame.png', 'module-field-frame.png')) {
$assetPath = "static/assets/modules/$module/transparent/$fileName"
if (-not $owned.ContainsKey($assetPath)) { throw "ModulePage 动态资产没有 owner$assetPath" }
$referenceCounts[$assetPath]++
}
}
$orphanedOutputs = @($referenceCounts.Keys | Where-Object { $referenceCounts[$_] -eq 0 })
if ($orphanedOutputs.Count -gt 0) {
throw "资产清单保留了没有运行时消费者的输出:$($orphanedOutputs -join ', ')"