feat: unify project responsive layouts
This commit is contained in:
@@ -17,12 +17,13 @@ function Assert-NoCssSurface {
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$g11 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g11-genealogy-settings.vue') -Raw -Encoding utf8
|
||||
$g12 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g12-generation-poems.vue') -Raw -Encoding utf8
|
||||
$profiles = Get-Content -LiteralPath (Join-Path $root 'styles/adaptive-frame-profiles.scss') -Raw -Encoding utf8
|
||||
$catalog = Get-Content -LiteralPath (Join-Path $root 'data/page-catalog.js') -Raw -Encoding utf8
|
||||
|
||||
foreach ($page in @($g11, $g12)) {
|
||||
if ($page -match '<ModulePage') { throw 'G11-G12 must not retain the generic ModulePage shell' }
|
||||
Assert-Contains $page '<GenealogyPageBackground />' 'G11-G12 must use the accepted shared genealogy background'
|
||||
Assert-Contains $page 'g01-empty-panel-frame.png' 'G11-G12 forms must reuse the complete genealogy paper panel'
|
||||
Assert-Contains $page 'adaptive.adaptive-genealogy-state-panel' 'G11-G12 forms must reuse the adaptive genealogy paper panel profile'
|
||||
if ($page -match "@/utils/api\.js|\bappApi\b") { throw 'G11-G12 design phase must not connect the API layer' }
|
||||
}
|
||||
|
||||
@@ -34,7 +35,7 @@ foreach ($required in @(
|
||||
'settings-state--no-permission',
|
||||
'const nameError = ref',
|
||||
'class="settings-feedback"',
|
||||
'g-form-field-frame.png',
|
||||
'adaptive.adaptive-genealogy-form-field',
|
||||
'a01-scroll-primary-v3.png',
|
||||
'const genealogyDraft',
|
||||
'query.genealogyId',
|
||||
@@ -51,13 +52,16 @@ foreach ($required in @(
|
||||
'poem-state--no-permission',
|
||||
'const poemError = ref',
|
||||
'class="poem-feedback"',
|
||||
'g-form-field-frame.png',
|
||||
'adaptive.adaptive-genealogy-form-field',
|
||||
'a01-scroll-primary-v3.png',
|
||||
'a01-scroll-secondary-v3.png',
|
||||
'const poemRows',
|
||||
'stopMissingOldGeneration',
|
||||
'query.genealogyId'
|
||||
)) { Assert-Contains $g12 $required "Missing G12 generation-poem contract: $required" }
|
||||
foreach ($assetName in @('g01-empty-panel-frame.png', 'g-form-field-frame.png')) {
|
||||
Assert-Contains $profiles $assetName "Adaptive genealogy profile must own: $assetName"
|
||||
}
|
||||
|
||||
foreach ($page in @($g11, $g12)) {
|
||||
foreach ($nativeUi in @('uni.showToast', 'uni.showModal', 'uni.showLoading', 'uni.showActionSheet')) {
|
||||
|
||||
Reference in New Issue
Block a user