fix: 订阅模式登录验证、永久会员类型区分、动态代码HTTP返回值修复、侧边栏滚动位置保持

- 修复订阅模式登录时错误检查余额的问题
- 区分无限余额和永久订阅两种永久会员类型
- 修复动态代码HTTP请求返回值在JS中无法正确访问的问题
- 添加侧边栏滚动位置保持功能
- 移除developer角色相关代码,统一使用admin
- 添加缺失的i18n翻译key
This commit is contained in:
2026-05-01 16:39:31 +08:00
parent c0edb32614
commit ea8ffb6c74
69 changed files with 554 additions and 369 deletions
+71 -11
View File
@@ -27,6 +27,7 @@
"ban": "Ban",
"unban": "Unban",
"cancel": "Cancel",
"confirm": "Confirm",
"refresh": "Refresh",
"loading": "Loading...",
"totalRecords": "{count} records in total",
@@ -194,7 +195,7 @@
"activeRate": "Active Rate",
"searchPlaceholder": "Search username, email, device ID...",
"allRoles": "All Roles",
"developer": "Admin",
"admin": "Admin",
"agent": "Agent",
"allStatus": "All Status",
"active": "Active",
@@ -219,6 +220,15 @@
"password": "Password",
"passwordPlaceholder": "Leave empty to keep current",
"passwordHint": "Leave empty to keep current password",
"preview": "Preview",
"app": "Application",
"usernameLabel": "Username",
"emailLabel": "Email",
"saveBtn": "Save Changes",
"cancel": "Cancel",
"usernameRequired": "Please enter username",
"emailRequired": "Please enter email",
"applicationRequired": "Please select application",
"deviceId": "Device ID",
"deviceIdPlaceholder": "Device ID (optional)",
"preview": "Preview",
@@ -259,6 +269,35 @@
"balanceUpdateFailed": "Failed to update",
"invalidAmount": "Please enter a valid value"
},
"create": {
"title": "Create User",
"description": "Create a new user account for an application with basic information and application association",
"basicInfo": "Basic Information",
"basicInfoDesc": "Fill in user basic information",
"application": "Application",
"selectApplication": "Select application",
"username": "Username",
"usernamePlaceholder": "Enter username",
"email": "Email",
"emailPlaceholder": "Enter email",
"password": "Password",
"passwordPlaceholder": "Enter password",
"preview": "Preview",
"app": "Application",
"usernameLabel": "Username",
"emailLabel": "Email",
"submit": "Create User",
"cancel": "Cancel",
"usernameRequired": "Please enter username",
"emailRequired": "Please enter email",
"passwordRequired": "Please enter password",
"applicationRequired": "Please select application",
"success": "User created successfully",
"failed": "Failed to create user",
"saveBtn": "Save Changes"
},
"editFailed": "Failed to load user info",
"editSuccess": "User updated successfully",
"resetPassword": "Reset Password",
"resetPasswordDesc": "Set a new password for user \"{username}\"",
"newPassword": "New Password",
@@ -561,7 +600,7 @@
"totalOrders": "Total Orders",
"totalRevenue": "Total Revenue",
"onlineUsers": "Online Users",
"totalDevelopers": "Admins",
"totalAdmins": "Admins",
"totalApps": "Applications",
"totalVisitors": "Visitors",
"totalKeys": "Keys",
@@ -580,7 +619,7 @@
"loading": "Loading...",
"charts": {
"userGrowth": "User Growth",
"userGrowthDesc": "Showing user and developer growth trends",
"userGrowthDesc": "Showing user and admin growth trends",
"orderTrend": "Order Trend",
"orderTrendDesc": "Showing order count and revenue trends",
"selectTimeRange": "Select time range",
@@ -900,7 +939,7 @@
}
},
"welcomeBack": "Welcome back",
"developer": "Admin",
"adminRole": "Admin",
"loading": "Loading",
"totalApplications": "Total Applications",
"totalCards": "Total Cards",
@@ -995,7 +1034,7 @@
"loginPolicy": "Login Policy",
"loginPolicyDesc": "Set user login verification policy",
"looseMode": "Loose Mode",
"looseModeDesc": "Expired users can login, developer controls features",
"looseModeDesc": "Expired users can login, admin controls features",
"strictMode": "Strict Mode",
"strictModeDesc": "Must be unexpired to login",
"hybridMode": "Hybrid Mode",
@@ -1081,8 +1120,11 @@
"batchUpdateSuccess": "Batch updated successfully",
"batchUpdateFailed": "Failed to batch update",
"select": "Select",
"editFailed": "Failed to load card type",
"editSuccess": "Card type updated successfully",
"create": {
"title": "Create Card Type",
"description": "Create a new card type with basic information and recharge configuration",
"basicInfo": "Basic Information",
"basicInfoDesc": "Fill in the basic information of the card type",
"billingConfig": "Billing Configuration",
@@ -1127,7 +1169,22 @@
"createFailed": "Failed to create",
"saveSuccess": "Saved successfully",
"saveFailed": "Failed to save",
"editTitle": "Edit Card Type"
"editTitle": "Edit Card Type",
"rechargeConfig": "Recharge Configuration",
"rechargeConfigDesc": "Set card recharge type and amount",
"rechargeType": "Recharge Type",
"balanceRecharge": "Balance Recharge",
"balanceRechargeDesc": "Recharge account balance, suitable for time/count mode",
"subscriptionRecharge": "Subscription Recharge",
"subscriptionRechargeDesc": "Recharge membership duration, suitable for subscription mode",
"permanentLabel": "Permanent Member",
"permanentLabelDesc": "When enabled, users with this card will become permanent members",
"rechargeAmount": "Recharge Amount",
"rechargeAmountDesc": "Balance amount user receives after recharge",
"rechargeDuration": "Recharge Duration",
"durationUnit": "Duration Unit",
"saveBtn": "Save Changes",
"passwordHint": "Leave empty to keep current password"
},
"columns": {
"cardKey": "Card Key",
@@ -1872,9 +1929,9 @@
"permissionTitle": "Write Permission",
"permissionDesc": "Set who can modify this variable's value",
"writePermission": "Write Permission",
"developerOnly": "Developer Only",
"developerOnlyDesc": "Only developers can modify this variable's value via API or dashboard",
"developerOnlyAppDesc": "Only developers can modify this global variable's value via API or dashboard",
"adminOnly": "Admin Only",
"adminOnlyDesc": "Only admins can modify this variable's value via API or dashboard",
"adminOnlyAppDesc": "Only admins can modify this global variable's value via API or dashboard",
"userWritable": "User Writable",
"userWritableDesc": "Users can modify their own variable values via client API",
"userWritableAppDesc": "Users can modify this global variable value via client API, changes affect all users",
@@ -1921,6 +1978,9 @@
"batchUpdateSuccess": "Batch update successful",
"batchUpdateFailed": "Batch update failed",
"select": "Select",
"edit": "Edit",
"editSuccess": "Updated successfully",
"editFailed": "Failed to fetch cloud function",
"columns": {
"name": "Name",
"application": "Application",
@@ -1951,6 +2011,7 @@
"status": "Status",
"preview": "Preview",
"submitBtn": "Submit",
"saveBtn": "Save",
"cancelBtn": "Cancel",
"submitSuccess": "Created successfully",
"submitFailed": "Failed to create"
@@ -2248,9 +2309,8 @@
"smsSettings": "SMS Service",
"paymentSettings": "Payment Settings",
"profile": "Profile",
"developerDashboard": "Admin Dashboard",
"agentDashboard": "Agent Dashboard",
"adminDashboard": "Admin Dashboard",
"agentDashboard": "Agent Dashboard",
"logout": "Logout",
"login": "Login",
"register": "Register",