完成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
+6 -7
View File
@@ -18,7 +18,6 @@ $root = Split-Path -Parent $PSScriptRoot
$g11 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g11-genealogy-settings.vue') -Raw -Encoding utf8
$g12 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g12-generation-poems.vue') -Raw -Encoding utf8
$profiles = Get-Content -LiteralPath (Join-Path $root 'styles/adaptive-frame-profiles.scss') -Raw -Encoding utf8
$catalog = Get-Content -LiteralPath (Join-Path $root 'data/page-catalog.js') -Raw -Encoding utf8
foreach ($page in @($g11, $g12)) {
if ($page -match '<ModulePage') { throw 'G11-G12 must not retain the generic ModulePage shell' }
@@ -39,9 +38,12 @@ foreach ($required in @(
'a01-scroll-primary-v3.png',
'const genealogyDraft',
'query.genealogyId',
'"MEMBER_ONLY"',
'"PUBLIC_APPLY"'
'GENEALOGY_ACCESS_PRESET,',
'GENEALOGY_ACCESS_PRESET_OPTIONS,'
)) { Assert-Contains $g11 $required "Missing G11 settings contract: $required" }
foreach ($forbidden in @('value: "MEMBER_ONLY"', 'value: "PUBLIC_APPLY"', 'accessNote')) {
if ($g11.Contains($forbidden)) { throw "G11 retains a duplicate or unsupported settings contract: $forbidden" }
}
foreach ($required in @(
'const poemState = ref("loading")',
@@ -56,7 +58,7 @@ foreach ($required in @(
'a01-scroll-primary-v3.png',
'a01-scroll-secondary-v3.png',
'const poemRows',
'stopMissingOldGeneration',
'disableMissing',
'query.genealogyId'
)) { Assert-Contains $g12 $required "Missing G12 generation-poem contract: $required" }
foreach ($assetName in @('g01-empty-panel-frame.png', 'g-form-field-frame.png')) {
@@ -73,7 +75,4 @@ foreach ($className in @('settings-panel', 'settings-action', 'poem-row', 'poem-
foreach ($page in @($g11, $g12)) { Assert-NoCssSurface $page $className }
}
foreach ($entry in @('g11:', 'g12:')) {
if ($catalog -match [regex]::Escape($entry)) { throw "Page catalog must remove migrated generic entry: $entry" }
}
Write-Output 'G11-G12-SETTINGS-POEMS-CONTRACT PASS'