接口开始5%

This commit is contained in:
rain
2026-07-22 17:31:33 +08:00
parent eced3d1e6e
commit 9b0ad62df4
426 changed files with 20111 additions and 28472 deletions
-14
View File
@@ -1,6 +1,4 @@
$ErrorActionPreference = 'Stop'
Add-Type -AssemblyName System.Drawing
$root = Split-Path -Parent $PSScriptRoot
$requiredAssets = @(
'static/assets/foundation/transparent/brand-seal.png',
@@ -27,8 +25,6 @@ $requiredAssets = @(
'static/assets/modules/genealogy/transparent/list-slip-frame.png',
'static/assets/modules/genealogy/transparent/g01-dialog-close.png',
'static/assets/modules/genealogy/transparent/g01-add-sheet-background-v3.png',
'static/assets/modules/auth/transparent/a01-paper-transition-v1.png',
'static/assets/foundation/opaque/page-paper.jpg',
'static/assets/foundation/opaque/root-header-cinnabar.jpg',
'static/assets/modules/genealogy/opaque/genealogy-page-background-long.png',
'static/assets/modules/genealogy/transparent/section-divider.png'
@@ -198,16 +194,6 @@ $backgroundComponent = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'compone
if ($backgroundComponent -notmatch 'mode="widthFix"') { throw 'G shared background must preserve the complete C artwork without horizontal cropping.' }
if ($backgroundComponent -match 'aspectFill|scaleToFill') { throw 'G shared background must not crop or stretch the selected C artwork.' }
if ($backgroundComponent -notmatch '(?s)\.genealogy-page-background\s*\{.*?position:\s*fixed;.*?inset:\s*0;.*?background:\s*#e7ded1;') { throw 'G shared background must extend the selected C artwork with the approved paper color.' }
$backgroundPath = Join-Path $root 'static/assets/modules/genealogy/opaque/genealogy-page-background-long.png'
$backgroundImage = [System.Drawing.Image]::FromFile($backgroundPath)
try {
if ($backgroundImage.Width -ne 1440 -or $backgroundImage.Height -ne 3600) { throw "G-01 approved long runtime background must be 1440x3600, got $($backgroundImage.Width)x$($backgroundImage.Height)." }
}
finally {
$backgroundImage.Dispose()
}
$backgroundHash = (Get-FileHash -LiteralPath $backgroundPath -Algorithm SHA256).Hash.ToLowerInvariant()
if ($backgroundHash -ne '9aa9ebdd231eddbc151e238ba340a00f8603f23143117ad8c93009947dcca2e2') { throw 'G-01 runtime background must be the user-selected flagship long output.' }
if ($page -match 'background:\s*rgba\(255,\s*249,\s*238,\s*\.88\)') { throw 'G-01 current genealogy card retains a rectangular pale backing behind its transparent corners.' }
$card = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'components/GenealogyCard.vue')