接口开始5%
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
function ConvertFrom-Utf8Base64 {
|
||||
param([string]$Value)
|
||||
@@ -55,6 +55,17 @@ if ($pages.pages.Count -ne 52) {
|
||||
throw "Expected 52 active routes after the A02 merge and A06 archive, found $($pages.pages.Count)."
|
||||
}
|
||||
|
||||
# A01 是 A02 退役边界的唯一所有者;所有仍保留的认证源码都不得重新引用旧登录页。
|
||||
foreach ($relativePath in @(
|
||||
'pages/auth/a01-entry.vue',
|
||||
'pages/auth/a04-register.vue',
|
||||
'pages/auth/a05-reset-password.vue',
|
||||
'pages/auth/a06-auth-status.vue'
|
||||
)) {
|
||||
$authSource = Get-Content -LiteralPath (Join-Path $root $relativePath) -Raw -Encoding utf8
|
||||
Assert-NotContains -Content $authSource -Unexpected '/pages/auth/a02-login' -Message "Legacy A02 navigation remains in $relativePath."
|
||||
}
|
||||
|
||||
$entry = Get-Content -LiteralPath $entryPath -Raw -Encoding utf8
|
||||
$shell = Get-Content -LiteralPath $shellPath -Raw -Encoding utf8
|
||||
$globalStyles = Get-Content -LiteralPath $globalStylesPath -Raw -Encoding utf8
|
||||
@@ -168,7 +179,7 @@ foreach ($obsoleteVisualAsset in @(
|
||||
'a01-login-header-exact-v2.png',
|
||||
'a01-login-scroll-frame-v1.png',
|
||||
'a01-vnext-scroll-v1.png',
|
||||
'auth-ink-scenery.png'
|
||||
'auth-ink-scenery.png',
|
||||
'a01-title-divider-v2.png',
|
||||
'a01-primary-button-v2.png',
|
||||
'a01-secondary-button-v2.png',
|
||||
@@ -183,7 +194,7 @@ if ($buttonSkinTags.Count -ne 2) {
|
||||
}
|
||||
foreach ($buttonSkinTag in $buttonSkinTags) {
|
||||
Assert-Contains -Content $buttonSkinTag.Value -Expected 'mode="aspectFit"' -Message 'A01 button skins must use uniform aspectFit rendering.'
|
||||
Assert-NotContains -Content $buttonSkinTag.Value -Unexpected '/opaque/' -Message 'A01 visible button skins must use cleaned transparent v2 assets.'
|
||||
Assert-NotContains -Content $buttonSkinTag.Value -Unexpected '/opaque/' -Message 'A01 visible button skins must use the current transparent v3 assets.'
|
||||
Assert-NotContains -Content $buttonSkinTag.Value -Unexpected 'mode="scaleToFill"' -Message 'A01 button skins must not distort fixed artwork with scaleToFill.'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user