完成50%
This commit is contained in:
@@ -2,7 +2,6 @@ $ErrorActionPreference = 'Stop'
|
||||
|
||||
$activeFiles = @(
|
||||
'pages/genealogy/g01-my-genealogies.vue',
|
||||
'pages/genealogy/g03-create-genealogy.vue',
|
||||
'pages/genealogy/g06-search-genealogies.vue'
|
||||
)
|
||||
|
||||
@@ -19,11 +18,12 @@ foreach ($file in $activeFiles) {
|
||||
}
|
||||
|
||||
$g01 = Get-Content 'pages/genealogy/g01-my-genealogies.vue' -Raw -Encoding UTF8
|
||||
$g03 = Get-Content 'pages/genealogy/g03-create-genealogy.vue' -Raw -Encoding UTF8
|
||||
$g06 = Get-Content 'pages/genealogy/g06-search-genealogies.vue' -Raw -Encoding UTF8
|
||||
|
||||
if ($g01 -notmatch 'query\?\.state') { throw 'G01 must normalize presentation state from onLoad query' }
|
||||
if ($g03 -notmatch 'query\?\.step\s*===\s*"ancestor"') { throw 'G03 must whitelist the ancestor step from onLoad query' }
|
||||
if ($g06 -notmatch 'query\?\.mode\s*===\s*"invite"') { throw 'G06 must whitelist invite mode from onLoad query' }
|
||||
|
||||
$g03 = Get-Content 'pages/genealogy/g03-create-genealogy.vue' -Raw -Encoding UTF8
|
||||
if ($g03 -match 'onLoad\s*\(|query\?\.(?:step|genealogyId)|step=ancestor') { throw 'G03 has no route parameters; its ancestor transition must remain internal' }
|
||||
|
||||
Write-Output 'NATIVE-ROUTE-QUERY-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user