feat: add static A01 A02 auth UI

This commit is contained in:
rain
2026-07-13 14:31:19 +08:00
parent 89dd20cec0
commit 134ae75c2b
8 changed files with 708 additions and 84 deletions
+1 -8
View File
@@ -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', 'utils/md5.js', 'pages/auth/login.vue', '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/lineage/first-person.vue', 'pages/content/list.vue', 'pages/content/editor.vue')
foreach ($file in $requiredFiles) {
if (-not (Test-Path (Join-Path $root $file))) {
throw "Missing core-flow file: $file"
@@ -45,13 +45,6 @@ if ($api -notmatch 'getProfile') {
throw 'Missing current-user profile API method'
}
$login = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/auth/login.vue')
foreach ($token in @('calcMD5', 'loginWithPassword', 'password', 'isSubmitting')) {
if ($login -notmatch [regex]::Escape($token)) {
throw "Missing password login behavior: $token"
}
}
$pages = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages.json')
if ($pages -notmatch 'pages/lineage/first-person') {
throw 'Missing first-person page route'