修改未完成
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$requiredFiles = @('utils/config.js', 'utils/session.js', 'utils/genealogy-context.js', 'utils/api.js', 'pages/lineage/first-person.vue', 'pages/content/list.vue', 'pages/content/editor.vue')
|
||||
$requiredFiles = @('utils/config.js', 'utils/session.js', 'utils/genealogy-context.js', 'utils/api.js', 'pages/genealogy/g04-first-ancestor.vue', 'pages/skeleton/content-list-skeleton.vue', 'pages/family/f02-publish-feed.vue')
|
||||
foreach ($file in $requiredFiles) {
|
||||
if (-not (Test-Path (Join-Path $root $file))) {
|
||||
throw "Missing core-flow file: $file"
|
||||
@@ -46,16 +46,16 @@ if ($api -notmatch 'getProfile') {
|
||||
}
|
||||
|
||||
$pages = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages.json')
|
||||
if ($pages -notmatch 'pages/lineage/first-person') {
|
||||
if ($pages -notmatch 'pages/genealogy/g04-first-ancestor') {
|
||||
throw 'Missing first-person page route'
|
||||
}
|
||||
foreach ($route in @('pages/content/list', 'pages/content/editor')) {
|
||||
foreach ($route in @('pages/skeleton/content-list-skeleton', 'pages/family/f02-publish-feed')) {
|
||||
if ($pages -notmatch [regex]::Escape($route)) {
|
||||
throw "Missing content page route: $route"
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($pageFile in @('pages/genealogy/detail.vue', 'pages/tree/index.vue', 'pages/member/detail.vue')) {
|
||||
foreach ($pageFile in @('pages/genealogy/g05-genealogy-overview.vue', 'pages/tree/t01-tree-overview.vue', 'pages/tree/t03-member-profile.vue')) {
|
||||
$page = Get-Content -Raw -Encoding UTF8 (Join-Path $root $pageFile)
|
||||
if ($page -match "id=1001|id=3") {
|
||||
throw "Hard-coded route ID remains in $pageFile"
|
||||
@@ -71,33 +71,33 @@ foreach ($method in @('markNotificationRead', 'markAllNotificationsRead')) {
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($pageFile in @('pages/genealogy/applications.vue', 'pages/notification/index.vue')) {
|
||||
foreach ($pageFile in @('pages/genealogy/g10-application-review.vue', 'pages/notification/n01-message-center.vue')) {
|
||||
$page = Get-Content -Raw -Encoding UTF8 (Join-Path $root $pageFile)
|
||||
if ($page -match '1001') {
|
||||
throw "Hard-coded genealogy ID remains in $pageFile"
|
||||
}
|
||||
}
|
||||
|
||||
$applications = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/genealogy/applications.vue')
|
||||
$applications = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/genealogy/g10-application-review.vue')
|
||||
if ($applications -notmatch 'genealogyContext') {
|
||||
throw 'Missing genealogy context in applications page'
|
||||
}
|
||||
|
||||
$notifications = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/notification/index.vue')
|
||||
$notifications = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/notification/n01-message-center.vue')
|
||||
foreach ($method in @('markNotificationRead', 'markAllNotificationsRead')) {
|
||||
if ($notifications -notmatch [regex]::Escape($method)) {
|
||||
throw "Notification page does not use $method"
|
||||
}
|
||||
}
|
||||
|
||||
$family = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/family/index.vue')
|
||||
foreach ($token in @('genealogyContext', 'openSection', 'pages/content/list', 'pages/content/editor')) {
|
||||
$family = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/family/f01-family-feed.vue')
|
||||
foreach ($token in @('genealogyContext', 'openSection', 'pages/skeleton/content-list-skeleton', 'pages/family/f02-publish-feed')) {
|
||||
if ($family -notmatch [regex]::Escape($token)) {
|
||||
throw "Missing family content flow: $token"
|
||||
}
|
||||
}
|
||||
|
||||
$profile = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/profile/index.vue')
|
||||
$profile = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/profile/m01-profile-home.vue')
|
||||
foreach ($token in @('appApi', 'getProfile', 'profile.name')) {
|
||||
if ($profile -notmatch [regex]::Escape($token)) {
|
||||
throw "Missing dynamic profile behavior: $token"
|
||||
|
||||
Reference in New Issue
Block a user