feat: 适配5.x后端,重构前端架构
主要变更: 1. 重构API目录结构,采用模块化设计,适配5.x后端接口规范 2. 优化布局组件,提升用户界面体验 3. 增强国际化支持,完善多语言配置 4. 新增权限控制功能,支持前端路由权限管理 5. 优化认证流程,支持JWT认证机制 6. 新增中间件和插件,提升系统扩展性 7. 优化状态管理,采用更清晰的模块化设计 8. 新增搜索框、广告等组件,丰富页面功能 9. 更改包管理工具从npm到pnpm,提升依赖管理效率 10. 完善配置系统,支持多环境配置 适配5.x后端特性: - 采用新的API接口规范 - 支持JWT认证机制 - 适配后端权限控制体系 - 支持后端国际化接口 - 优化数据交互方式
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"title": "Forgot Password",
|
||||
"tip": "Please enter your email, we will send a verification code to your email",
|
||||
"step2_title": "Set New Password",
|
||||
"step2_tip": "Please enter your new password",
|
||||
"email_placeholder": "Please enter email",
|
||||
"email_error": "Please enter a valid email",
|
||||
"captcha_placeholder": "Please enter image verification code",
|
||||
"email_code_placeholder": "Please enter email verification code",
|
||||
"code_placeholder": "Please enter verification code",
|
||||
"send_code": "Send Code",
|
||||
"code_sent": "Verification code sent",
|
||||
"new_password_placeholder": "Please enter new password",
|
||||
"confirm_password_placeholder": "Please confirm password",
|
||||
"confirm_password_error": "Passwords do not match",
|
||||
"reset": "Reset Password",
|
||||
"resetting": "Resetting",
|
||||
"reset_success": "Password reset successfully",
|
||||
"back_to_login": "Back to login",
|
||||
"next_step": "Next Step",
|
||||
"prev_step": "Previous Step",
|
||||
"verifying": "Verifying",
|
||||
"captcha_alt": "Verification code",
|
||||
"reset_title": "Reset Password",
|
||||
"verification_sent": "Verification code has been sent to {email}",
|
||||
"verification_instruction": "Please enter the verification code to complete password reset",
|
||||
"password_placeholder": "Password",
|
||||
"verification_code_placeholder": "Enter verification code",
|
||||
"resend_code": "Resend",
|
||||
"reset_password": "Reset Password",
|
||||
"email_required": "Please enter email",
|
||||
"email_invalid": "Invalid email format",
|
||||
"captcha_required": "Please enter image verification code",
|
||||
"password_required": "Please enter password",
|
||||
"confirm_password_required": "Please confirm password",
|
||||
"password_mismatch": "Passwords do not match",
|
||||
"verification_code_required": "Please enter verification code",
|
||||
"code_sent_check_email": "Verification code has been sent, please check your email",
|
||||
"login": "Login"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"login": "Login",
|
||||
"logining": "Logging in",
|
||||
"username_placeholder": "Please enter username",
|
||||
"password_placeholder": "Please enter password",
|
||||
"resetpwd": "Forgot Password",
|
||||
"no_account": "Don't have an account",
|
||||
"to_register": "Register",
|
||||
"and": "and",
|
||||
"agree_tips": "By logging in, you agree to",
|
||||
"username_login": "Password Login",
|
||||
"mobile_login": "SMS Code Login",
|
||||
"mobile_placeholder": "Please enter mobile number",
|
||||
"wechat_scan_login": "Scan QR Code Login",
|
||||
"wechat_scan_tips": "Please scan QR code with WeChat to login",
|
||||
"qrcode_generate_failed": "Failed to generate QR code, please refresh and try again",
|
||||
"click_refresh": "Click to refresh",
|
||||
"wechat_scan_tip": "Please scan QR code with WeChat to login",
|
||||
"wechat_login_not_available": "WeChat scan login is not available"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"title": "Register",
|
||||
"username_register": "Username Register",
|
||||
"mobile_register": "Mobile Register",
|
||||
"username_placeholder": "Please enter username",
|
||||
"email_placeholder": "Please enter email",
|
||||
"email_required": "Please enter email",
|
||||
"email_error": "Invalid email format",
|
||||
"password_placeholder": "Please enter password",
|
||||
"confirm_password_placeholder": "Please confirm password",
|
||||
"confirm_password_error": "Passwords do not match",
|
||||
"mobile_placeholder": "Please enter mobile phone",
|
||||
"mobile_error": "Invalid mobile phone format",
|
||||
"code_placeholder": "Please enter verification code",
|
||||
"captcha_placeholder": "Please enter verification code",
|
||||
"register": "Register",
|
||||
"registering": "Registering",
|
||||
"have_account": "Already have an account",
|
||||
"to_login": "Go to login",
|
||||
"register_agree_tips": "Registering means you agree to",
|
||||
"user_agreement": "User Agreement",
|
||||
"privacy_agreement": "Privacy Agreement",
|
||||
"and": "and",
|
||||
"is_agree_tips": "Please read and agree to the User Agreement and Privacy Agreement"
|
||||
}
|
||||
+40
-2
@@ -1,3 +1,41 @@
|
||||
{
|
||||
"language": "语言en"
|
||||
}
|
||||
"language": "Language",
|
||||
"logout_login": "Logout",
|
||||
"member_center": "Member Center",
|
||||
"login": "Login",
|
||||
"register": "Register",
|
||||
"user": "User",
|
||||
"get_sms_code": "Get SMS Code",
|
||||
"sms_code_change_text": "seconds to resend",
|
||||
"captcha_title": "Please complete security verification",
|
||||
"confirm": "Confirm",
|
||||
"cancel": "Cancel",
|
||||
"siteClose": "Site Closed",
|
||||
"setting": {
|
||||
"config": {
|
||||
"common": {
|
||||
"title": "Common Config",
|
||||
"description": "Common Config - Key-Value format with hierarchical data support",
|
||||
"noData": "No Data",
|
||||
"viewData": "View Data"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request": {
|
||||
"unknownError": "Unknown Error",
|
||||
"400": "Bad Request",
|
||||
"401": "Please Login Again",
|
||||
"403": "Access Denied",
|
||||
"404": "Request Error",
|
||||
"405": "Method Not Allowed",
|
||||
"408": "Request Timeout",
|
||||
"409": "Request Cross-Origin",
|
||||
"500": "Server Error, Reason:",
|
||||
"501": "Network Not Implemented",
|
||||
"502": "Network Error",
|
||||
"503": "Service Unavailable",
|
||||
"504": "Network Timeout",
|
||||
"505": "HTTP Version Not Supported",
|
||||
"timeout": "Network Request Timeout!"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"title": "Home"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"page_title": "Balance Record",
|
||||
"current_balance": "Current Balance",
|
||||
"total_transaction": "Total Transaction",
|
||||
"record_id": "Record ID",
|
||||
"type": "Type",
|
||||
"type_income": "Income",
|
||||
"type_expense": "Expense",
|
||||
"amount": "Amount",
|
||||
"description": "Description",
|
||||
"time": "Time",
|
||||
"loading": "Loading",
|
||||
"no_data": "No Data",
|
||||
"recharge": "Recharge",
|
||||
"withdraw": "Withdraw"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"page_title": "Change Password",
|
||||
"current_password": "Current Password",
|
||||
"current_password_placeholder": "Please enter current password",
|
||||
"new_password": "New Password",
|
||||
"new_password_placeholder": "Please enter new password",
|
||||
"confirm_password": "Confirm New Password",
|
||||
"confirm_password_placeholder": "Please confirm new password",
|
||||
"password_error": "Passwords do not match",
|
||||
"submit_button": "Submit",
|
||||
"reset_button": "Reset",
|
||||
"success": "Password changed successfully",
|
||||
"failed": "Password change failed",
|
||||
"validation": {
|
||||
"current_password_required": "Please enter current password",
|
||||
"new_password_required": "Please enter new password",
|
||||
"new_password_min_length": "Password must be at least 6 characters",
|
||||
"confirm_password_required": "Please confirm new password",
|
||||
"confirm_password_mismatch": "Passwords do not match"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"page_title": "Points Record",
|
||||
"current_points": "Current Points",
|
||||
"monthly_points": "This Month Earned",
|
||||
"total_points": "Total Earned",
|
||||
"record_id": "Record ID",
|
||||
"type": "Type",
|
||||
"type_earn": "Earned",
|
||||
"type_deduct": "Deducted",
|
||||
"points": "Points",
|
||||
"reason": "Reason",
|
||||
"time": "Time",
|
||||
"loading": "Loading",
|
||||
"no_data": "No Data"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"page_title": "Profile",
|
||||
"username": "Username",
|
||||
"email": "Email",
|
||||
"email_placeholder": "Please enter email",
|
||||
"phone": "Mobile Number",
|
||||
"nickname": "Nickname",
|
||||
"nickname_placeholder": "Please enter nickname",
|
||||
"gender": "Gender",
|
||||
"gender_male": "Male",
|
||||
"gender_female": "Female",
|
||||
"gender_other": "Other",
|
||||
"birthday": "Birthday",
|
||||
"birthday_placeholder": "Please select birthday",
|
||||
"bio": "Bio",
|
||||
"bio_placeholder": "Please enter bio",
|
||||
"save_button": "Save",
|
||||
"reset_button": "Reset",
|
||||
"avatar": "Avatar",
|
||||
"upload_avatar": "Upload Avatar",
|
||||
"update_success": "Profile saved successfully",
|
||||
"update_failed": "Save failed",
|
||||
"validation": {
|
||||
"nickname_required": "Please enter nickname",
|
||||
"email_format": "Please enter correct email address"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"page_title": "User Settings",
|
||||
"account_info": "Account Information",
|
||||
"login_phone": "Login Mobile",
|
||||
"change_phone": "Change Number",
|
||||
"email": "Email",
|
||||
"change_email": "Change Email",
|
||||
"login_password": "Login Password",
|
||||
"change_password": "Change Password",
|
||||
"third_party_bind": "Third Party Account Binding",
|
||||
"bind": "Bind",
|
||||
"bind_time": "Bind Time",
|
||||
"status": "Status",
|
||||
"options": "Options",
|
||||
"unbind": "Unbind",
|
||||
"bind_success": "Binding successful",
|
||||
"unbind_success": "Unbinding successful",
|
||||
"bind_failed": "Binding failed",
|
||||
"unbind_failed": "Unbinding failed",
|
||||
"confirm_unbind": "Are you sure you want to unbind {name}?",
|
||||
"wechat": "WeChat",
|
||||
"qq": "QQ",
|
||||
"weibo": "Weibo",
|
||||
"douyin": "Douyin",
|
||||
"using": "Using",
|
||||
"not_bound": "Not Bound",
|
||||
"phone_bind": "Mobile Number Binding",
|
||||
"phone_bind_dialog": "Change Mobile Number",
|
||||
"old_phone": "Old Mobile Number",
|
||||
"old_phone_placeholder": "Please enter old mobile number",
|
||||
"new_phone": "New Mobile Number",
|
||||
"new_phone_placeholder": "Please enter new mobile number",
|
||||
"verification_code": "Verification Code",
|
||||
"verification_code_placeholder": "Please enter verification code",
|
||||
"get_code": "Get Code",
|
||||
"confirm": "Confirm",
|
||||
"cancel": "Cancel",
|
||||
"email_bind": "Email Binding",
|
||||
"email_bind_dialog": "Change Email",
|
||||
"new_email": "New Email",
|
||||
"new_email_placeholder": "Please enter new email",
|
||||
"qr_bind_title": "Bind {name}",
|
||||
"qr_generating": "Generating QR code...",
|
||||
"qr_expired": "QR code expired",
|
||||
"qr_regenerate": "Regenerate",
|
||||
"qr_success": "Binding successful!",
|
||||
"qr_tip": "Please scan QR code with {name} to bind",
|
||||
"phone_update_success": "Mobile number updated successfully",
|
||||
"phone_update_failed": "Mobile number update failed",
|
||||
"email_update_success": "Email updated successfully",
|
||||
"email_update_failed": "Email update failed",
|
||||
"code_send_success": "Verification code sent successfully",
|
||||
"code_send_failed": "Verification code send failed",
|
||||
"please_enter_phone": "Please enter new mobile number",
|
||||
"please_enter_email": "Please enter email",
|
||||
"please_enter_old_phone": "Please enter old mobile number",
|
||||
"please_enter_code": "Please enter verification code",
|
||||
"confirm_unbind_title": "Confirm",
|
||||
"cancel_unbind": "Unbinding cancelled",
|
||||
"opening_app": "Opening {name}...",
|
||||
"open_app_failed": "Failed to open {name}, please ensure {name} client is installed",
|
||||
"please_bind": "Please click to bind {name}",
|
||||
"qr_generate_failed": "Failed to generate QR code",
|
||||
"validation": {
|
||||
"old_phone_required": "Please enter old mobile number",
|
||||
"new_phone_required": "Please enter new mobile number",
|
||||
"code_required": "Please enter verification code",
|
||||
"email_required": "Please enter email",
|
||||
"new_email_required": "Please enter new email",
|
||||
"new_email_code_required": "Please enter verification code"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"page_title": "Daily Check-in",
|
||||
"sign_rules": "Check-in Rules",
|
||||
"sign_button": "Check in",
|
||||
"signed": "Already Checked in",
|
||||
"consecutive_days": "Consecutive Check-in",
|
||||
"days": "days",
|
||||
"tomorrow_points": "Continue check-in tomorrow to get {points} points~",
|
||||
"sign_success": "Check-in successful! Got {points} points",
|
||||
"sign_failed": "Check-in failed",
|
||||
"get_sign_status_failed": "Failed to get check-in status",
|
||||
"get_sign_calendar_failed": "Failed to get check-in calendar",
|
||||
"rules_content": "Check-in Rules:\n1. Daily check-in can get 1-5 points\n2. The more consecutive check-in days, the more points you get\n3. Consecutive check-in for 7 days can get extra rewards"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"pages": {
|
||||
"index": "Index",
|
||||
"code": {
|
||||
"code": "Code"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user