diff --git a/ui/langs.json b/ui/langs.json index 68ad465..ab859d2 100644 --- a/ui/langs.json +++ b/ui/langs.json @@ -6,6 +6,32 @@ "auth.password": "Password", "auth.register": "Register", "auth.username": "Username", + "auth.confirm_password": "Confirm Password", + "auth.username_or_email": "Username or Email", + "auth.email_or_phone": "Email or Phone", + "auth.verification_code": "Verification Code", + "auth.username_login": "Username", + "auth.code_login": "Code", + "auth.create_account": "Create Account", + "auth.use_info_register": "or use your info to register", + "auth.use_account": "or use your account", + "auth.welcome_back": "Welcome Back!", + "auth.keep_connected": "Keep connected with your personal info", + "auth.hello_friend": "Hello, Friend!", + "auth.start_journey": "Enter your personal details and start your journey", + "auth.have_account": "Already have an account?", + "auth.no_account": "Don't have an account?", + "auth.forgot_password": "Forgot password?", + "auth.fill_all_fields": "Please fill in all required fields", + "auth.username_too_short": "Username must be at least 3 characters", + "auth.password_too_short": "Password must be at least 8 characters", + "auth.passwords_not_match": "Passwords do not match", + "auth.login_success": "Login successful", + "auth.login_failed": "Login failed", + "auth.register_success": "Registration successful", + "auth.register_failed": "Registration failed", + "auth.invalid_response": "Invalid server response", + "auth.oauth_not_ready": "{provider} login is not ready yet", "common.actions": "Actions", "common.back": "Back", "common.cancel": "Cancel", @@ -43,6 +69,32 @@ "auth.password": "密码", "auth.register": "注册", "auth.username": "用户名", + "auth.confirm_password": "确认密码", + "auth.username_or_email": "用户名或邮箱", + "auth.email_or_phone": "邮箱或手机号", + "auth.verification_code": "验证码", + "auth.username_login": "用户名", + "auth.code_login": "验证码", + "auth.create_account": "创建账户", + "auth.use_info_register": "或使用您的信息进行注册", + "auth.use_account": "或使用您的账户", + "auth.welcome_back": "欢迎回来!", + "auth.keep_connected": "请使用您的个人信息登录,保持连接", + "auth.hello_friend": "你好,朋友!", + "auth.start_journey": "输入您的个人信息,开始您的旅程", + "auth.have_account": "已有账户?", + "auth.no_account": "还没有账户?", + "auth.forgot_password": "忘记密码?", + "auth.fill_all_fields": "请填写所有必填字段", + "auth.username_too_short": "用户名至少3个字符", + "auth.password_too_short": "密码至少8个字符", + "auth.passwords_not_match": "两次输入的密码不一致", + "auth.login_success": "登录成功", + "auth.login_failed": "登录失败", + "auth.register_success": "注册成功", + "auth.register_failed": "注册失败", + "auth.invalid_response": "服务器响应异常", + "auth.oauth_not_ready": "{provider} 登录暂未开放", "common.actions": "操作", "common.back": "返回", "common.cancel": "取消", diff --git a/ui/page/auth/login.html b/ui/page/auth/login.html index 2639421..260b095 100644 --- a/ui/page/auth/login.html +++ b/ui/page/auth/login.html @@ -2,69 +2,726 @@ - - {{ $t('auth.login') }} + + + {{ isSignUp ? $t('auth.register') : $t('auth.login') }} -

{{ $t('auth.login') }}

+
+
+
+ +
+ +
+
+

{{ $t('auth.create_account') }}

+ + {{ $t('auth.use_info_register') }} + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
{{ signUpError }}
+ + -
{{ error }}
+
+ {{ $t('auth.have_account') }} {{ $t('auth.login') }} +
+
+
-
- - + +
+ diff --git a/ui/page/auth/register.html b/ui/page/auth/register.html deleted file mode 100644 index 08479be..0000000 --- a/ui/page/auth/register.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - {{ $t('auth.register') }} - - - -

{{ $t('auth.register') }}

- -
{{ error }}
- -
- - - - - - {{ $t('auth.register') }} -
- - - - - diff --git a/ui/routes.js b/ui/routes.js index 2e469be..34d3fbe 100644 --- a/ui/routes.js +++ b/ui/routes.js @@ -1,7 +1,6 @@ const routes = [ // Public - { path: '/login', component: '/page/auth/login.html', layout: 'public' }, - { path: '/register', component: '/page/auth/register.html', layout: 'public' }, + { path: '/login', component: '/page/auth/login.html' }, // Dashboard (Default Layout) {