完成50%
This commit is contained in:
@@ -3,7 +3,6 @@ function Read-Utf8([string]$Path) { [System.IO.File]::ReadAllText((Join-Path (Jo
|
||||
function Assert-Contains([string]$Content,[string]$Expected) { if (-not $Content.Contains($Expected)) { throw "R02 contract missing: $Expected" } }
|
||||
$page = Read-Utf8 'pages/records/r02-person-detail.vue'
|
||||
$profiles = Read-Utf8 'styles/adaptive-frame-profiles.scss'
|
||||
$catalog = Read-Utf8 'data/page-catalog.js'
|
||||
foreach ($expected in @(
|
||||
'class="person-detail-page"','person-detail-state--','class="person-identity-card"',
|
||||
'class="person-edit-action"','class="person-save-action"','class="person-cancel-action"',
|
||||
@@ -12,7 +11,6 @@ foreach ($expected in @(
|
||||
'ModulePageBackground','PageHeader','AppButton','AppLoading','AppToast'
|
||||
)) { Assert-Contains $page $expected }
|
||||
foreach ($forbidden in @('<ModulePage page-id="r02"','import ModulePage from')) { if ($page.Contains($forbidden)) { throw "R02 retains forbidden dependency: $forbidden" } }
|
||||
if ($catalog -match '(?m)^\s*r02\s*:') { throw 'R02 obsolete page-catalog owner must be removed' }
|
||||
foreach ($forbidden in @('<image class="person-card-skin"','.person-card-skin')) {
|
||||
if ($page.Contains($forbidden)) { throw "R02 must use container backgrounds instead of positioned decorative skins: $forbidden" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user