feat: add static A01 A02 auth UI
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', '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'
|
||||
|
||||
Reference in New Issue
Block a user