refactor Add sign-in form component with OAuth integration, Zod validation, i18n support, and password visibility toggle following REQ0016 requirements
```
This commit is contained in:
2025-05-16 11:14:38 +08:00
parent 2371e40ad2
commit 6e16b2e87d
11 changed files with 315 additions and 464 deletions

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="currentColor" d="M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38c0-.27.01-1.13.01-2.2c0-.75-.25-1.23-.54-1.48c1.78-.2 3.65-.88 3.65-3.95c0-.88-.31-1.59-.82-2.15c.08-.2.36-1.02-.08-2.12c0 0-.67-.22-2.2.82c-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82c-.44 1.1-.16 1.92-.08 2.12c-.51.56-.82 1.28-.82 2.15c0 3.06 1.86 3.75 3.64 3.95c-.23.2-.44.55-.51 1.07c-.46.21-1.61.55-2.33-.66c-.15-.24-.6-.83-1.23-.82c-.67.01-.27.38.01.53c.34.19.73.9.82 1.13c.16.45.68 1.31 2.69.94c0 .67.01 1.3.01 1.49c0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8"/></svg>

After

Width:  |  Height:  |  Size: 695 B

View File

@@ -0,0 +1,31 @@
{
"sign-in": "Sign in / 登入",
"dont-have-an-account": "Don't have an account ?",
"continue-with_fh": "以",
"continue-with_sh": "繼續",
"forgot-password": "Forgot password",
"user": "用戶名稱",
"password": "密碼",
"email-address": "用戶電郵",
"first-name-is-required": "名字是必填项",
"last-name-is-required": "姓氏不能为空",
"email-is-required": "邮箱不能为空",
"password-should-be-at-least-6-characters": "密码至少需要6个字符",
"you-must-accept-the-terms-and-conditions": "您必须接受条款和条件",
"sign-up": "注册",
"already-have-an-account": "已有账号?",
"or": "或",
"create-account": "创建账号",
"created-users-are-not-persisted": "已创建的用户不会被保存",
"i-have-read-the": "我已阅读",
"terms-and-conditions": "用户协议和隐私政策",
"e.g.": "例如:",
"first-name": "名",
"last-name": "姓",
"hello": "world",
"welcome-title": "Welcome to devias kit pro",
"welcome-notes": "A professional template that comes with ready-to-use MUI components developed with one common goal in mind, help you build faster & beautiful applications.",
"reset-password": "重置密码",
"back-to-login": "返回登录",
"send-recovery-link": "发送恢复链接"
}