From 40947a1fe5cf0b3c5c49b8d11258e71805abdc9d Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 21 Jul 2026 11:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8F=96=E8=AE=A4=E8=AF=81=E9=A1=B5?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E8=87=AA=E9=80=82=E5=BA=94=E9=AA=A8=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AuthPageShell.vue | 72 +++++++++ ...026-07-21-auth-pages-adaptive-migration.md | 4 +- pages/auth/a01-entry.vue | 138 +++++------------- tests/a01-a02-ui-contract.ps1 | 22 +-- tests/a01-responsive-runtime-smoke.js | 8 +- tests/auth-page-shell-contract.ps1 | 10 +- 6 files changed, 134 insertions(+), 120 deletions(-) create mode 100644 components/AuthPageShell.vue diff --git a/components/AuthPageShell.vue b/components/AuthPageShell.vue new file mode 100644 index 0000000..de7fbb9 --- /dev/null +++ b/components/AuthPageShell.vue @@ -0,0 +1,72 @@ + + + diff --git a/docs/superpowers/plans/2026-07-21-auth-pages-adaptive-migration.md b/docs/superpowers/plans/2026-07-21-auth-pages-adaptive-migration.md index c38b48c..224198a 100644 --- a/docs/superpowers/plans/2026-07-21-auth-pages-adaptive-migration.md +++ b/docs/superpowers/plans/2026-07-21-auth-pages-adaptive-migration.md @@ -28,7 +28,7 @@ - Test: `tests/auth-page-shell-contract.ps1` **Interfaces:** -- Produces: `AuthPageShell` 的单一职责合同,以及 A01/A04/A05/A06 禁止旧画布的合同 +- Produces: `AuthPageShell` 的单一职责合同,以及首个消费者 A01 禁止旧画布的合同;其余页面由各自任务的合同接管 - [ ] **Step 1: 写入失败合同** @@ -50,7 +50,7 @@ foreach ($required in @( 'min-height: var(--app-viewport-height);' )) { Assert-Contains $shell $required "AuthPageShell is missing: $required" } -foreach ($pageName in @('a01-entry.vue','a04-register.vue','a05-reset-password.vue','a06-auth-status.vue')) { +foreach ($pageName in @('a01-entry.vue')) { $page = Get-Content -LiteralPath (Join-Path $root "pages/auth/$pageName") -Raw -Encoding utf8 Assert-Contains $page ' +