完成全项目响应式审核与换机交接
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$source = Get-Content 'pages/notification/n01-message-center.vue' -Raw -Encoding UTF8
|
||||
$profiles = Get-Content 'styles/adaptive-frame-profiles.scss' -Raw -Encoding UTF8
|
||||
$unread = [string]([char]0x672A) + [char]0x8BFB
|
||||
$read = [string]([char]0x5DF2) + [char]0x8BFB
|
||||
$markAllRead = [string]([char]0x5168) + [char]0x90E8 + $read
|
||||
$goToReview = [string]([char]0x524D) + [char]0x5F80 + [char]0x5165 + [char]0x8C31 + [char]0x5BA1 + [char]0x6838
|
||||
$required = @(
|
||||
'n01-notice-card.png',
|
||||
'@include adaptive.adaptive-notification-content;',
|
||||
'AppLoading',
|
||||
'AppToast',
|
||||
'notice-state--loading',
|
||||
@@ -35,11 +36,11 @@ if ($source -match '<image\s+(?:[^>]*\s)?class="notice-(?:card|state-card)__skin
|
||||
if ($source -match 'position\s*:') {
|
||||
throw 'N01 must keep ordinary content in document flow'
|
||||
}
|
||||
foreach ($background in @(
|
||||
'background: url("/static/assets/modules/notification/transparent/n01-notice-card.png") center / 100% 100% no-repeat',
|
||||
'background: url("/static/assets/modules/notification/transparent/n01-notice-card.png") top center / 100% 220rpx no-repeat'
|
||||
)) {
|
||||
if (-not $source.Contains($background)) { throw "N01 missing document-flow background: $background" }
|
||||
if ($profiles -notmatch '(?s)@mixin\s+adaptive-notification-content\s*\{.*?n01-notice-card\.png') {
|
||||
throw 'The adaptive profile owner must retain the N01 notice-card artwork'
|
||||
}
|
||||
if ($source -match '100%\s+100%\s+no-repeat|border-image-slice\s*:') {
|
||||
throw 'N01 must consume adaptive frame geometry without page-local stretching or slicing'
|
||||
}
|
||||
|
||||
Write-Output 'N01-MODULE-BASELINE-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user