修改完成

This commit is contained in:
2026-07-21 07:53:03 +08:00
parent 01d246c47b
commit ff60119277
172 changed files with 7982 additions and 2999 deletions
+13 -4
View File
@@ -26,14 +26,14 @@ foreach ($expected in @(
'const photos = [',
'const openPreview = (index) =>',
'const closePreview = () =>',
'const showUploadNotice = () =>',
'const toUpload = () =>',
'/pages/family/f09-media-upload?albumId=${albumId.value}',
'query.state === "empty"',
'query.state === "preview"',
'query.state === "expired"',
'class="album-empty-state"',
'class="album-expired-state"',
'class="album-preview__position"',
':message="uploadNoticeMessage"',
'f08-reunion-hero.png',
'f08-family-portrait.png',
'f08-reunion-table.png',
@@ -42,8 +42,7 @@ foreach ($expected in @(
':alt="photo.alt"',
'ModulePageBackground',
'PageHeader',
'AppButton',
'AppToast'
'AppButton'
)) {
Assert-Contains $page $expected "F08 contract missing: $expected"
}
@@ -52,6 +51,16 @@ foreach ($forbidden in @('<ModulePage page-id="f08"', 'import ModulePage from',
if ($page.Contains($forbidden)) { throw "F08 retains forbidden dependency: $forbidden" }
}
foreach ($requiredPosition in @(
'(?s)\.album-photo-tile\s*\{[^}]*position:\s*relative;',
'(?s)\.album-hero-photo,\s*\.album-photo-tile__image\s*\{[^}]*position:\s*absolute;',
'(?s)\.album-photo-tile__caption\s*\{[^}]*position:\s*absolute;',
'(?s)\.album-preview\s*\{[^}]*position:\s*fixed;'
)) {
if ($page -notmatch $requiredPosition) { throw "F08 required local overlay boundary missing: $requiredPosition" }
}
if ([regex]::Matches($page, 'position\s*:').Count -ne 4) { throw 'F08 must keep only its photo-tile overlays and full-screen preview positioned' }
if ($catalog -match '(?m)^\s*f08\s*:') {
throw 'F08 obsolete page-catalog owner must be removed'
}