Review changes batch 6 of 6

This commit is contained in:
2026-07-20 06:52:33 +08:00
parent db97d3da27
commit 5a31a75da0
160 changed files with 9206 additions and 572 deletions
+17 -8
View File
@@ -6,14 +6,14 @@ if (-not (Test-Path -LiteralPath $componentPath)) { throw 'Missing shared module
$component = Get-Content -LiteralPath $componentPath -Raw -Encoding utf8
foreach ($anchor in @(
"const moduleState = ref('ready')",
'module-state--ready',
'module-state--empty',
'module-state--success',
'module-state--error',
'g03-create-flow-panel.png',
'g06-search-input-wide.png',
'application-status-card.png',
"const moduleState = ref(['loading', 'empty', 'success', 'error'].includes(query.state) ? query.state : 'ready')",
'module-state--${moduleState}',
'empty: { eyebrow:',
'success: { eyebrow:',
'error: { eyebrow:',
'module-content-frame.png',
'module-field-frame.png',
'<AppLoading',
'<AppButton',
'<AppToast',
'<ModulePageBackground',
@@ -22,6 +22,15 @@ foreach ($anchor in @(
if ($component -notmatch [regex]::Escape($anchor)) { throw "ModulePage is missing high-spec anchor: $anchor" }
}
foreach ($forbidden in @(
'class="page-intro"',
'g03-create-flow-panel.png',
'g06-search-input-wide.png',
'application-status-card.png'
)) {
if ($component -match [regex]::Escape($forbidden)) { throw "ModulePage must not keep obsolete shared surface: $forbidden" }
}
foreach ($className in @('module-panel', 'form-row', 'list-card', 'detail-card', 'timeline-row', 'settings-row', 'status-card')) {
foreach ($property in @('border', 'background', 'border-radius', 'box-shadow', 'background-image')) {
if ($component -match "(?s)\.$className\s*\{[^}]*\b$property\s*:") {