完成全项目响应式审核与换机交接
This commit is contained in:
@@ -4,9 +4,14 @@ $page = Get-Content -LiteralPath (Join-Path $root 'pages/tree/t03-member-profile
|
||||
$style = [regex]::Match($page, '(?s)<style[^>]*>(.*?)</style>').Groups[1].Value
|
||||
if ([regex]::IsMatch($style, '(?m)\bposition\s*:')) { throw 'T03 member profile must use document flow throughout' }
|
||||
foreach ($required in @(
|
||||
'background: url("/static/assets/modules/tree/transparent/t01-state-panel.png")',
|
||||
'background: url("/static/assets/modules/genealogy/transparent/current-seal-frame.png")',
|
||||
'background: url("/static/assets/modules/tree/transparent/t07-search-input-frame.png")',
|
||||
'background: url("/static/assets/foundation/transparent/a01-scroll-primary-v3.png")'
|
||||
)) { if ($page -notmatch [regex]::Escape($required)) { throw "T03 is missing real asset background: $required" } }
|
||||
'@include adaptive.adaptive-tree-panel;',
|
||||
'@include adaptive.adaptive-tree-field;',
|
||||
'@include adaptive.adaptive-genealogy-list-card;',
|
||||
'@include adaptive.adaptive-scroll-button(primary);',
|
||||
'background: url("/static/assets/modules/genealogy/transparent/current-seal-frame.png")'
|
||||
)) { if ($page -notmatch [regex]::Escape($required)) { throw "T03 is missing adaptive asset surface: $required" } }
|
||||
$memberPanelStyle = [regex]::Match($style, '(?ms)^\s*\.member-panel\s*\{(?<body>.*?)\}').Groups['body'].Value
|
||||
if ($memberPanelStyle -match '\bmin-height\s*:') {
|
||||
throw 'T03 member panel height must be driven by its current content'
|
||||
}
|
||||
Write-Output 'T03-DOCUMENT-FLOW-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user