完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
+15 -5
View File
@@ -14,11 +14,15 @@ $required = @(
'a01-icon-lock-v1.png',
'notice.png',
'AppButton',
'/pages/profile/m02-edit-profile',
'/pages/notification/n01-message-center',
'/pages/profile/m03-security-settings',
'/pages/profile/m06-help-center',
'/pages/profile/m10-about-settings'
'import { openPage } from "@/utils/navigation.js";',
'routeKey: "M03"',
'routeKey: "M06"',
'routeKey: "M10"',
'routeKey: "M08"',
'routeKey: "M09"',
'openPage("M02", {}, "M01")',
'openPage("N01", {}, "M01")',
'openPage(item.routeKey, {}, "M01")'
)
foreach ($token in $required) {
@@ -27,6 +31,12 @@ foreach ($token in $required) {
}
}
foreach ($forbiddenNavigation in @('uni.navigateTo', 'uni.navigateBack', 'uni.redirectTo', 'uni.reLaunch', 'getCurrentPages(', '<navigator', '/pages/')) {
if ($source.Contains($forbiddenNavigation)) {
throw "M01 must use the registered navigation gateway: $forbiddenNavigation"
}
}
foreach ($forbidden in @('m01-profile-notice-card.png', 'm01-profile-menu-frame.png', 'g03-create-flow-panel.png', 'application-status-card.png', 'g06-search-input-wide.png')) {
if ($source.Contains($forbidden)) {
throw "M01 must not reuse opaque business asset: $forbidden"