修改完成
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path $PSScriptRoot -Parent
|
||||
$page = [System.IO.File]::ReadAllText((Join-Path $root 'pages/family/f02-publish-feed.vue'), [System.Text.Encoding]::UTF8)
|
||||
|
||||
foreach ($expected in @(
|
||||
'background: url("/static/assets/modules/family/transparent/module-content-frame.png") center / 100% 100% no-repeat',
|
||||
'background: url("/static/assets/modules/family/transparent/module-field-frame.png") center / 100% 100% no-repeat',
|
||||
'min-height: min(640px, calc((100vw - 16px) * 1.48))'
|
||||
)) {
|
||||
if (-not $page.Contains($expected)) { throw "F02 document-flow contract missing: $expected" }
|
||||
}
|
||||
if ($page -match '<image\s+(?:[^>]*\s)?class="publish-panel__skin"|publish-field[^>]*>\s*<image') { throw 'F02 decorative frames must be container backgrounds' }
|
||||
if ($page -match 'position\s*:') { throw 'F02 must keep panel, form, result, and field in document flow' }
|
||||
|
||||
Write-Output 'F02-DOCUMENT-FLOW-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user