From 9f78b70a87996ac27146b115b569ea001ed4c879 Mon Sep 17 00:00:00 2001 From: mini Date: Sun, 19 Apr 2026 22:53:40 +0800 Subject: [PATCH] fix(auth): RegisterView fidelity port from design zip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port A-group deltas from design zip (excluding bonus/pricing which are explicitly out of scope): - Narrative: N (not 5) 个订阅; add '// 5 分钟开始用' n-kicker; SVG hexagon logo (was emoji); n-bottom live status bar - Add 3-step onboarding panel (创建账户 → 绑定订阅 → 生成 key) in narrative, active-step highlighted - Add password strength meter (4 bars + text label 弱/中/强/极强) - Add confirm-password field with live // matched/mismatch hint - Add Terms & Privacy consent checkbox (submit gated) - New i18n keys: confirmPasswordLabel/Placeholder, passwordsDoNotMatch All existing Vue logic preserved (OAuth/Turnstile/verify code/ invitation+promo codes). Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/i18n/locales/zh.ts | 1 + frontend/src/views/auth/RegisterView.vue | 299 ++++++++++++++++++++++- 2 files changed, 287 insertions(+), 13 deletions(-) diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 93a319b7..ca242070 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -504,6 +504,7 @@ export default { puroLoginSub: '用你的 PURO AI 账户继续', puroRegisterTitle: '创建账户', puroRegisterSub: '5 分钟开始用 PURO AI', + confirmPasswordLabel: '确认密码', }, // Dashboard diff --git a/frontend/src/views/auth/RegisterView.vue b/frontend/src/views/auth/RegisterView.vue index de780ea8..da1e1bab 100644 --- a/frontend/src/views/auth/RegisterView.vue +++ b/frontend/src/views/auth/RegisterView.vue @@ -2,10 +2,18 @@ @@ -125,6 +157,38 @@

{{ t('auth.passwordHint') }}

+ +
+ + + + +
+
+ // strength · + {{ pwScoreLabel }} +
+ + + +
+ +
+
+ +
+ +
+
+ // {{ pwMatchLabel }} +
@@ -231,6 +295,14 @@ + +
+ +
+