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
+8 -8
View File
@@ -17,8 +17,8 @@ $root = Split-Path -Parent $PSScriptRoot
$pages = Get-Content -LiteralPath (Join-Path $root 'pages.json') -Raw -Encoding utf8 | ConvertFrom-Json
$paths = @($pages.pages.path)
$g06 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g06-search-genealogies.vue') -Raw -Encoding utf8
$profiles = Get-Content -LiteralPath (Join-Path $root 'styles/adaptive-frame-profiles.scss') -Raw -Encoding utf8
$g07 = Join-Path $root 'pages/genealogy/g07-search-result.vue'
$titleStripPath = Join-Path $root 'static/assets/modules/genealogy/opaque/g06-search-title-strip.png'
$inputSkinPath = Join-Path $root 'static/assets/modules/genealogy/opaque/g06-search-input-wide.png'
$buttonSkinPath = Join-Path $root 'static/assets/modules/genealogy/opaque/g06-search-button.png'
@@ -45,10 +45,8 @@ foreach ($required in @(
'/pages/genealogy/g08-join-application?source=invite&genealogyId=',
'/pages/genealogy/g05-genealogy-overview?mode=public&genealogyId=',
'search-page__header',
'g06-search-input-wide.png',
'g06-search-button.png',
'g06-search-title-strip.png',
'search-title-strip',
'adaptive.adaptive-g06-search-field',
'adaptive.adaptive-g06-search-action',
'section-divider.png',
'root-header-hall.png',
'search-controls',
@@ -59,8 +57,11 @@ foreach ($required in @(
)) {
Assert-Contains -Content $g06 -Expected $required -Message "Missing G06 flow contract: $required"
}
foreach ($assetName in @('g06-search-input-wide.png', 'g06-search-button.png')) {
Assert-Contains $profiles $assetName "Adaptive G06 profile must own: $assetName"
}
foreach ($forbidden in @("from '@/utils/api.js'", 'appApi.', 'uni.showToast', 'uni.showModal', 'uni.showLoading', 'uni.showActionSheet')) {
foreach ($forbidden in @("from '@/utils/api.js'", 'appApi.', 'uni.showToast', 'uni.showModal', 'uni.showLoading', 'uni.showActionSheet', 'search-title-strip', 'g06-search-title-strip.png')) {
if ($g06 -match [regex]::Escape($forbidden)) { throw "G06 retains forbidden implementation: $forbidden" }
}
@@ -69,7 +70,7 @@ if ($g06 -match [regex]::Escape('g06-search-panel-v2.png')) { throw 'G06 must no
if ($g06 -match [regex]::Escape('search-hero')) { throw 'G06 must replace the floating hero with the selected title-strip hierarchy' }
if ($g06 -match [regex]::Escape('g06-search-input.png')) { throw 'G06 must use the wide selected-design input skin instead of the tall legacy skin' }
foreach ($className in @('search-title-strip', 'search-field', 'search-action')) {
foreach ($className in @('search-field', 'search-action')) {
Assert-NoCssSurface -Content $g06 -ClassName $className
}
@@ -84,7 +85,6 @@ if ($g06 -notmatch '(?s)\.status-retry\s*\{[^}]*width:\s*300rpx;[^}]*height:\s*7
Add-Type -AssemblyName System.Drawing
foreach ($asset in @(
@{ Path = $titleStripPath; Width = 1122; Height = 220; Label = 'search-title-strip' },
@{ Path = $inputSkinPath; Width = 1120; Height = 248; Label = 'search-input' },
@{ Path = $buttonSkinPath; Width = 300; Height = 132; Label = 'search-button' }
)) {