chore: update project files
This commit is contained in:
227
demo/frontend/src/locales/en.js
Normal file
227
demo/frontend/src/locales/en.js
Normal file
@@ -0,0 +1,227 @@
|
||||
export default {
|
||||
common: {
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
save: 'Save',
|
||||
delete: 'Delete',
|
||||
edit: 'Edit',
|
||||
search: 'Search',
|
||||
reset: 'Reset',
|
||||
view: 'View',
|
||||
loading: 'Loading...',
|
||||
searchPlaceholder: 'Search for content',
|
||||
welcome: 'Welcome',
|
||||
home: 'Home',
|
||||
profile: 'Profile',
|
||||
orders: 'Orders',
|
||||
payments: 'Payments',
|
||||
adminPanel: 'Admin Panel',
|
||||
login: 'Login',
|
||||
register: 'Register',
|
||||
logout: 'Logout',
|
||||
settings: 'Settings',
|
||||
userProfile: 'User Profile',
|
||||
points: 'Points',
|
||||
profileDevMsg: 'Profile feature under development',
|
||||
settingsDevMsg: 'Settings feature under development',
|
||||
noPermissionMsg: 'Insufficient permission, only administrators can access admin panel',
|
||||
logoutConfirm: 'Are you sure you want to logout?',
|
||||
logoutSuccess: 'Logout successful',
|
||||
tip: 'Tip'
|
||||
},
|
||||
|
||||
welcome: {
|
||||
textToVideo: 'Text to Video',
|
||||
imageToVideo: 'Image to Video',
|
||||
storyboardVideo: 'Storyboard Video',
|
||||
pricing: 'Pricing Plans',
|
||||
startExperience: 'Get Started',
|
||||
title1: 'Create',
|
||||
title2: 'Unlimited,',
|
||||
title3: 'Ideas',
|
||||
title4: 'Realized.',
|
||||
subtitle: 'Secure and convenient login with email verification',
|
||||
tryNow: 'Try Now',
|
||||
coreFeatures: 'Core Features',
|
||||
textToVideoDesc: 'Enter text description, AI automatically generates high-quality video content',
|
||||
imageToVideoDesc: 'Upload images, AI intelligently analyzes and generates dynamic videos',
|
||||
storyboardVideoDesc: 'Professional storyboarding for cinematic video effects',
|
||||
pricingDesc: 'Flexible pricing plans to meet different creative needs',
|
||||
startCreating: 'Start Creating'
|
||||
},
|
||||
|
||||
nav: {
|
||||
dashboard: 'Dashboard',
|
||||
members: 'Member Management',
|
||||
orders: 'Order Management',
|
||||
apiManagement: 'API Management',
|
||||
tasks: 'Task Records',
|
||||
systemSettings: 'System Settings',
|
||||
onlineUsers: 'Online Users',
|
||||
systemUptime: 'System Uptime'
|
||||
},
|
||||
|
||||
dashboard: {
|
||||
title: 'Dashboard',
|
||||
totalUsers: 'Total Users',
|
||||
paidUsers: 'Paid Users',
|
||||
todayRevenue: "Today's Revenue",
|
||||
dailyActive: 'Daily Active User Trend',
|
||||
conversionRate: 'User Conversion Rate',
|
||||
comparedToLastMonth: 'vs last month',
|
||||
year2025: '2025',
|
||||
year2024: '2024',
|
||||
year2023: '2023',
|
||||
userAvatar: 'User Avatar',
|
||||
month1: 'Jan',
|
||||
month2: 'Feb',
|
||||
month3: 'Mar',
|
||||
month4: 'Apr',
|
||||
month5: 'May',
|
||||
month6: 'Jun',
|
||||
month7: 'Jul',
|
||||
month8: 'Aug',
|
||||
month9: 'Sep',
|
||||
month10: 'Oct',
|
||||
month11: 'Nov',
|
||||
month12: 'Dec'
|
||||
},
|
||||
|
||||
orders: {
|
||||
title: 'Order Management',
|
||||
orderNumber: 'Order Number',
|
||||
username: 'Username',
|
||||
amount: 'Amount',
|
||||
paymentMethod: 'Payment Method',
|
||||
status: 'Status',
|
||||
createTime: 'Create Time',
|
||||
operation: 'Operation',
|
||||
allStatus: 'All Status',
|
||||
allTypes: 'All Types',
|
||||
pending: 'Pending',
|
||||
confirmed: 'Confirmed',
|
||||
paid: 'Paid',
|
||||
processing: 'Processing',
|
||||
shipped: 'Shipped',
|
||||
delivered: 'Delivered',
|
||||
completed: 'Completed',
|
||||
cancelled: 'Cancelled',
|
||||
refunded: 'Refunded',
|
||||
unpaid: 'Unpaid',
|
||||
alipay: 'Alipay',
|
||||
wechat: 'WeChat Pay',
|
||||
paypal: 'PayPal',
|
||||
selected: '{count} selected'
|
||||
},
|
||||
|
||||
tasks: {
|
||||
title: 'Task Records',
|
||||
taskId: 'Task ID',
|
||||
username: 'Username',
|
||||
type: 'Type',
|
||||
resources: 'Resources Used',
|
||||
status: 'Status',
|
||||
createTime: 'Create Time',
|
||||
operation: 'Operation',
|
||||
allStatus: 'All Status',
|
||||
completed: 'Completed',
|
||||
processing: 'Processing',
|
||||
failed: 'Failed',
|
||||
cancelled: 'Cancelled',
|
||||
textToVideo: 'Text to Video',
|
||||
imageToVideo: 'Image to Video',
|
||||
storyboardVideo: 'Storyboard Video'
|
||||
},
|
||||
|
||||
members: {
|
||||
title: 'Member List',
|
||||
userId: 'User ID',
|
||||
username: 'Username',
|
||||
level: 'Membership Level',
|
||||
points: 'Remaining Points',
|
||||
expiryDate: 'Expiry Date',
|
||||
operation: 'Edit',
|
||||
allLevels: 'All Levels',
|
||||
professional: 'Professional',
|
||||
standard: 'Standard',
|
||||
editMember: 'Edit Member',
|
||||
usernamePlaceholder: 'Enter username',
|
||||
levelPlaceholder: 'Select level',
|
||||
pointsPlaceholder: 'Enter points',
|
||||
expiryPlaceholder: 'Select expiry date'
|
||||
},
|
||||
|
||||
apiManagement: {
|
||||
title: 'API Management',
|
||||
apiKey: 'API Key',
|
||||
apiKeyPlaceholder: 'Enter API key',
|
||||
tokenExpiration: 'Token Expiration',
|
||||
tokenPlaceholder: 'Enter hours (1-720)',
|
||||
hours: 'hours',
|
||||
days: 'days',
|
||||
rangeHint: 'Range: 1-720 hours (1 hour - 30 days)',
|
||||
saveSuccess: 'Saved successfully',
|
||||
saveFailed: 'Save failed'
|
||||
},
|
||||
|
||||
systemSettings: {
|
||||
title: 'System Settings',
|
||||
membership: 'Membership Pricing',
|
||||
cleanup: 'Task Cleanup',
|
||||
membershipLevels: 'Membership Levels',
|
||||
editLevel: 'Edit Level',
|
||||
price: 'Price',
|
||||
description: 'Description',
|
||||
cleanupStats: 'Cleanup Statistics',
|
||||
manualCleanup: 'Manual Cleanup',
|
||||
autoCleanup: 'Auto Cleanup',
|
||||
// Membership pricing
|
||||
perMonth: '/month',
|
||||
includesPoints: 'Includes {points} points/month',
|
||||
// Cleanup stats
|
||||
cleanupStatsInfo: 'Cleanup Statistics',
|
||||
refresh: 'Refresh',
|
||||
currentTotalTasks: 'Current Total Tasks',
|
||||
completedTasks: 'Completed Tasks',
|
||||
failedTasks: 'Failed Tasks',
|
||||
archivedTasks: 'Archived Tasks',
|
||||
cleanupLogsCount: 'Cleanup Logs',
|
||||
retentionDays: 'Retention Days',
|
||||
days: 'days',
|
||||
// Cleanup actions
|
||||
cleanupActions: 'Cleanup Actions',
|
||||
performFullCleanup: 'Perform Full Cleanup',
|
||||
cleanupUserTasks: 'Cleanup User Tasks',
|
||||
fullCleanupDesc: 'Full Cleanup',
|
||||
fullCleanupDescDetail: 'Export successful tasks to archive, delete failed tasks',
|
||||
userCleanupDesc: 'User Cleanup',
|
||||
userCleanupDescDetail: 'Cleanup all tasks for specified user',
|
||||
// Cleanup config
|
||||
cleanupConfig: 'Cleanup Configuration',
|
||||
taskRetentionDays: 'Task Retention Days',
|
||||
taskRetentionTip: 'Days to retain completed tasks',
|
||||
archiveRetentionDays: 'Archive Retention Days',
|
||||
archiveRetentionTip: 'Days to retain archived data',
|
||||
// Edit membership dialog
|
||||
membershipLevel: 'Membership Level',
|
||||
selectLevelPlaceholder: 'Select membership level',
|
||||
freeMembership: 'Free Membership',
|
||||
standardMembership: 'Standard Membership',
|
||||
professionalMembership: 'Professional Membership',
|
||||
membershipPrice: 'Membership Price',
|
||||
resourcePointsAmount: 'Resource Points',
|
||||
validityPeriod: 'Validity Period',
|
||||
monthly: 'Monthly',
|
||||
quarterly: 'Quarterly',
|
||||
yearly: 'Yearly',
|
||||
// User cleanup dialog
|
||||
enterUsername: 'Enter username to cleanup',
|
||||
warning: 'Warning',
|
||||
cleanupWarning: 'This operation will cleanup all tasks for this user, including:',
|
||||
successTasksArchived: 'Successful tasks will be exported to archive',
|
||||
failedTasksLogged: 'Failed tasks will be logged to cleanup logs',
|
||||
originalTasksDeleted: 'Original task records will be deleted',
|
||||
irreversibleWarning: 'This operation is irreversible, please proceed with caution!',
|
||||
confirmCleanup: 'Confirm Cleanup'
|
||||
}
|
||||
}
|
||||
23
demo/frontend/src/locales/index.js
Normal file
23
demo/frontend/src/locales/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import zh from './zh'
|
||||
import en from './en'
|
||||
|
||||
// 从localStorage获取保存的语言设置,默认中文
|
||||
const savedLanguage = localStorage.getItem('language') || 'zh'
|
||||
|
||||
console.log('[i18n] 从 localStorage 读取的语言:', savedLanguage)
|
||||
console.log('[i18n] 可用的语言:', Object.keys({ zh, en }))
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false, // 使用Composition API模式
|
||||
locale: savedLanguage, // 默认语言
|
||||
fallbackLocale: 'zh', // 回退语言
|
||||
messages: {
|
||||
zh,
|
||||
en
|
||||
}
|
||||
})
|
||||
|
||||
console.log('[i18n] i18n 初始化完成,当前语言:', i18n.global.locale.value)
|
||||
|
||||
export default i18n
|
||||
227
demo/frontend/src/locales/zh.js
Normal file
227
demo/frontend/src/locales/zh.js
Normal file
@@ -0,0 +1,227 @@
|
||||
export default {
|
||||
common: {
|
||||
confirm: '确认',
|
||||
cancel: '取消',
|
||||
save: '保存',
|
||||
delete: '删除',
|
||||
edit: '编辑',
|
||||
search: '搜索',
|
||||
reset: '重置',
|
||||
view: '查看',
|
||||
loading: '加载中...',
|
||||
searchPlaceholder: '搜索你想要的内容',
|
||||
welcome: '欢迎页',
|
||||
home: '首页',
|
||||
profile: '个人主页',
|
||||
orders: '订单管理',
|
||||
payments: '支付记录',
|
||||
adminPanel: '后台管理',
|
||||
login: '登录',
|
||||
register: '注册',
|
||||
logout: '退出登录',
|
||||
settings: '设置',
|
||||
userProfile: '个人资料',
|
||||
points: '积分',
|
||||
profileDevMsg: '个人资料功能开发中',
|
||||
settingsDevMsg: '设置功能开发中',
|
||||
noPermissionMsg: '权限不足,只有管理员才能访问后台管理',
|
||||
logoutConfirm: '确定要退出登录吗?',
|
||||
logoutSuccess: '退出登录成功',
|
||||
tip: '提示'
|
||||
},
|
||||
|
||||
welcome: {
|
||||
textToVideo: '文生视频',
|
||||
imageToVideo: '图生视频',
|
||||
storyboardVideo: '分镜视频',
|
||||
pricing: '订阅套餐',
|
||||
startExperience: '开始体验',
|
||||
title1: '智创',
|
||||
title2: '无限,',
|
||||
title3: '灵感',
|
||||
title4: '变现。',
|
||||
subtitle: '使用邮箱验证码登录,安全便捷',
|
||||
tryNow: '立即体验',
|
||||
coreFeatures: '核心功能',
|
||||
textToVideoDesc: '输入文字描述,AI自动生成高质量视频内容',
|
||||
imageToVideoDesc: '上传图片,AI智能分析并生成动态视频',
|
||||
storyboardVideoDesc: '专业分镜制作,打造电影级视频效果',
|
||||
pricingDesc: '灵活的价格方案,满足不同创作需求',
|
||||
startCreating: '开始创作'
|
||||
},
|
||||
|
||||
nav: {
|
||||
dashboard: '数据仪表台',
|
||||
members: '会员管理',
|
||||
orders: '订单管理',
|
||||
apiManagement: 'API管理',
|
||||
tasks: '生成任务记录',
|
||||
systemSettings: '系统设置',
|
||||
onlineUsers: '当前在线用户',
|
||||
systemUptime: '系统运行时间'
|
||||
},
|
||||
|
||||
dashboard: {
|
||||
title: '数据仪表台',
|
||||
totalUsers: '用户总数',
|
||||
paidUsers: '付费用户数',
|
||||
todayRevenue: '今日收入',
|
||||
dailyActive: '日活用户趋势',
|
||||
conversionRate: '用户转化率',
|
||||
comparedToLastMonth: '较上月同期',
|
||||
year2025: '2025年',
|
||||
year2024: '2024年',
|
||||
year2023: '2023年',
|
||||
userAvatar: '用户头像',
|
||||
month1: '1月',
|
||||
month2: '2月',
|
||||
month3: '3月',
|
||||
month4: '4月',
|
||||
month5: '5月',
|
||||
month6: '6月',
|
||||
month7: '7月',
|
||||
month8: '8月',
|
||||
month9: '9月',
|
||||
month10: '10月',
|
||||
month11: '11月',
|
||||
month12: '12月'
|
||||
},
|
||||
|
||||
orders: {
|
||||
title: '订单管理',
|
||||
orderNumber: '订单编号',
|
||||
username: '用户名',
|
||||
amount: '金额',
|
||||
paymentMethod: '支付方式',
|
||||
status: '状态',
|
||||
createTime: '创建时间',
|
||||
operation: '操作',
|
||||
allStatus: '全部状态',
|
||||
allTypes: '全部类型',
|
||||
pending: '待支付',
|
||||
confirmed: '已确认',
|
||||
paid: '已支付',
|
||||
processing: '处理中',
|
||||
shipped: '已发货',
|
||||
delivered: '已送达',
|
||||
completed: '已完成',
|
||||
cancelled: '已取消',
|
||||
refunded: '已退款',
|
||||
unpaid: '未支付',
|
||||
alipay: '支付宝',
|
||||
wechat: '微信支付',
|
||||
paypal: 'PayPal',
|
||||
selected: '已选择{count}项'
|
||||
},
|
||||
|
||||
tasks: {
|
||||
title: '生成任务记录',
|
||||
taskId: '任务ID',
|
||||
username: '用户名',
|
||||
type: '类型',
|
||||
resources: '消耗资源',
|
||||
status: '状态',
|
||||
createTime: '创建时间',
|
||||
operation: '操作',
|
||||
allStatus: '全部状态',
|
||||
completed: '已完成',
|
||||
processing: '处理中',
|
||||
failed: '失败',
|
||||
cancelled: '已取消',
|
||||
textToVideo: '文生视频',
|
||||
imageToVideo: '图生视频',
|
||||
storyboardVideo: '分镜视频'
|
||||
},
|
||||
|
||||
members: {
|
||||
title: '会员列表',
|
||||
userId: '用户ID',
|
||||
username: '用户名',
|
||||
level: '会员等级',
|
||||
points: '剩余资源点',
|
||||
expiryDate: '到期时间',
|
||||
operation: '编辑',
|
||||
allLevels: '全部等级',
|
||||
professional: '专业会员',
|
||||
standard: '标准会员',
|
||||
editMember: '编辑会员信息',
|
||||
usernamePlaceholder: '请输入用户名',
|
||||
levelPlaceholder: '请选择会员等级',
|
||||
pointsPlaceholder: '请输入资源点',
|
||||
expiryPlaceholder: '请选择到期时间'
|
||||
},
|
||||
|
||||
apiManagement: {
|
||||
title: 'API管理',
|
||||
apiKey: 'API密钥',
|
||||
apiKeyPlaceholder: '请输入API密钥',
|
||||
tokenExpiration: 'Token过期时间',
|
||||
tokenPlaceholder: '请输入小时数(1-720)',
|
||||
hours: '小时',
|
||||
days: '天',
|
||||
rangeHint: '范围:1-720小时(1小时-30天)',
|
||||
saveSuccess: '保存成功',
|
||||
saveFailed: '保存失败'
|
||||
},
|
||||
|
||||
systemSettings: {
|
||||
title: '系统设置',
|
||||
membership: '会员收费标准',
|
||||
cleanup: '任务清理管理',
|
||||
membershipLevels: '会员等级',
|
||||
editLevel: '编辑等级',
|
||||
price: '价格',
|
||||
description: '描述',
|
||||
cleanupStats: '清理统计',
|
||||
manualCleanup: '手动清理',
|
||||
autoCleanup: '自动清理',
|
||||
// Membership pricing
|
||||
perMonth: '/月',
|
||||
includesPoints: '包含{points}资源点/月',
|
||||
// Cleanup stats
|
||||
cleanupStatsInfo: '清理统计信息',
|
||||
refresh: '刷新',
|
||||
currentTotalTasks: '当前任务总数',
|
||||
completedTasks: '已完成任务',
|
||||
failedTasks: '失败任务',
|
||||
archivedTasks: '已归档任务',
|
||||
cleanupLogsCount: '清理日志数',
|
||||
retentionDays: '保留天数',
|
||||
days: '天',
|
||||
// Cleanup actions
|
||||
cleanupActions: '清理操作',
|
||||
performFullCleanup: '执行完整清理',
|
||||
cleanupUserTasks: '清理指定用户任务',
|
||||
fullCleanupDesc: '完整清理',
|
||||
fullCleanupDescDetail: '将成功任务导出到归档表,删除失败任务',
|
||||
userCleanupDesc: '用户清理',
|
||||
userCleanupDescDetail: '清理指定用户的所有任务',
|
||||
// Cleanup config
|
||||
cleanupConfig: '清理配置',
|
||||
taskRetentionDays: '任务保留天数',
|
||||
taskRetentionTip: '任务完成后保留的天数',
|
||||
archiveRetentionDays: '归档保留天数',
|
||||
archiveRetentionTip: '归档数据保留的天数',
|
||||
// Edit membership dialog
|
||||
membershipLevel: '会员等级',
|
||||
selectLevelPlaceholder: '请选择会员等级',
|
||||
freeMembership: '免费版会员',
|
||||
standardMembership: '标准版会员',
|
||||
professionalMembership: '专业版会员',
|
||||
membershipPrice: '会员价格',
|
||||
resourcePointsAmount: '资源点数量',
|
||||
validityPeriod: '会员有效期',
|
||||
monthly: '月付',
|
||||
quarterly: '季付',
|
||||
yearly: '年付',
|
||||
// User cleanup dialog
|
||||
enterUsername: '请输入要清理的用户名',
|
||||
warning: '警告',
|
||||
cleanupWarning: '此操作将清理该用户的所有任务,包括:',
|
||||
successTasksArchived: '成功任务将导出到归档表',
|
||||
failedTasksLogged: '失败任务将记录到清理日志',
|
||||
originalTasksDeleted: '原始任务记录将被删除',
|
||||
irreversibleWarning: '此操作不可撤销,请谨慎操作!',
|
||||
confirmCleanup: '确认清理'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user