feat: unify project responsive layouts

This commit is contained in:
rain
2026-07-21 20:59:10 +08:00
parent a0d19f4aab
commit 5d99bae3f2
94 changed files with 2324 additions and 404 deletions
+9 -4
View File
@@ -18,6 +18,7 @@ $root = Split-Path -Parent $PSScriptRoot
$g08 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g08-join-application.vue') -Raw -Encoding utf8
$g09 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g09-my-applications.vue') -Raw -Encoding utf8
$g10 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g10-application-review.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 @($g08, $g09, $g10)) {
@@ -31,8 +32,8 @@ foreach ($required in @(
'join-state--form',
'join-state--success',
'join-state--error',
'g01-empty-panel-frame.png',
'g-form-field-frame.png',
'adaptive.adaptive-genealogy-state-panel',
'adaptive.adaptive-genealogy-form-field',
'a01-scroll-primary-v3.png',
'const genealogyPreview',
'query.genealogyId',
@@ -42,6 +43,9 @@ foreach ($required in @(
'/pages/genealogy/g09-my-applications',
'/pages/genealogy/g01-my-genealogies?genealogyId='
)) { Assert-Contains $g08 $required "Missing G08 join 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 ($nativeUi in @('uni.showToast', 'uni.showModal', 'uni.showLoading', 'uni.showActionSheet')) {
if ($g08 -match [regex]::Escape($nativeUi)) { throw "G08 must not use native UniApp UI: $nativeUi" }
}
@@ -54,7 +58,7 @@ foreach ($required in @(
'application-state--list',
'application-state--empty',
'application-state--error',
'list-slip-frame.png',
'adaptive.adaptive-genealogy-list-card',
'"PENDING"',
'"APPROVED"',
'"REJECTED"',
@@ -65,6 +69,7 @@ foreach ($required in @(
'<AppDialog',
'/pages/genealogy/g08-join-application?source=search&previous=rejected&genealogyId='
)) { Assert-Contains $g09 $required "Missing G09 application contract: $required" }
Assert-Contains $profiles 'list-slip-frame.png' 'Adaptive genealogy list profile must own the G09 card asset'
foreach ($nativeUi in @('uni.showToast', 'uni.showModal', 'uni.showLoading', 'uni.showActionSheet')) {
if ($g09 -match [regex]::Escape($nativeUi)) { throw "G09 must not use native UniApp UI: $nativeUi" }
}
@@ -74,7 +79,7 @@ foreach ($required in @(
'review-state--list',
'review-state--empty',
'review-state--error',
'list-slip-frame.png',
'adaptive.adaptive-genealogy-list-card',
'a01-scroll-primary-v3.png',
'a01-scroll-secondary-v3.png',
'const reviewSamples',