完成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
+4 -7
View File
@@ -9,14 +9,15 @@ function Assert-Contains([string]$Content, [string]$Expected, [string]$Message)
}
$page = Read-Utf8 'pages/family/f10-video-list.vue'
$catalog = Read-Utf8 'data/page-catalog.js'
foreach ($expected in @(
'class="video-status-page"',
'class="video-status-card"',
'class="video-return-action"',
'const returnToFamily = () =>',
'/pages/family/f01-family-feed',
'genealogyId.value = String(query.genealogyId || "");',
'returnTo("F01", { genealogyId: genealogyId.value })',
'getGenealogyFixtureAccess',
'ModulePageBackground',
'PageHeader',
'AppButton',
@@ -26,7 +27,7 @@ foreach ($expected in @(
Assert-Contains $page $expected "F10 contract missing: $expected"
}
foreach ($forbidden in @('<ModulePage page-id="f10"', 'import ModulePage from', 'class="video-status-card__skin"', 'module-content-frame.png')) {
foreach ($forbidden in @('<ModulePage page-id="f10"', 'import ModulePage from', 'class="video-status-card__skin"', 'module-content-frame.png', 'uni.reLaunch', '/pages/')) {
if ($page.Contains($forbidden)) { throw "F10 retains forbidden dependency: $forbidden" }
}
@@ -41,8 +42,4 @@ foreach ($selector in @('.video-status-lead text')) {
}
}
if ($catalog -match '(?m)^\s*f10\s*:') {
throw 'F10 obsolete page-catalog owner must be removed'
}
Write-Output 'F10-VIDEO-STATUS-CONTRACT PASS'