mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-07 01:56:53 +00:00
perf(web): streamline table actions and destructive dialogs (#5645)
* perf(data-table): autosize action columns - exclude actions columns from shared table width calculations so action cells size to their content. - remove fixed size and w-* width overrides from feature action columns to preserve content-based layout. * perf(data-table): streamline row action controls - expose common edit and status actions directly while moving secondary actions into overflow menus. - add shared row action menu helpers so static and table rows use consistent action controls. - let action columns size to their content instead of relying on fixed widths. * fix(web): localize destructive dialog copy - route delete, reset, and batch update confirmation text through i18n. - add locale entries for affected channel, model, system settings, and user dialogs. * perf(web): unify destructive dialog actions - align delete and cleanup confirmation buttons with the shared destructive variant. - replace custom destructive color overrides with semantic button variants. - clean up lint errors in touched dialog files before committing. * fix(web): add user action success translations - add localized success messages for user delete, status, and role changes. - keep user management toast copy available across all frontend locales. * fix(data-table): prevent mobile badge clipping - expose badge cell slots so mobile card styles can target nested badge wrappers. - reset badge margins in card rows to keep provider icons fully visible on small screens.
This commit is contained in:
Vendored
+25
-1
@@ -24,6 +24,8 @@
|
||||
"{\"original-model\": \"replacement-model\"}": "{\"original-model\": \"replacement-model\"}",
|
||||
"{{category}} Models": "{{category}} 模型",
|
||||
"{{completed}}/{{total}} completed": "已完成 {{completed}}/{{total}}",
|
||||
"{{count}} announcements will be removed from the list.": "将从列表中移除 {{count}} 条公告。",
|
||||
"{{count}} API shortcuts will be removed from the list.": "将从列表中移除 {{count}} 个 API 快捷方式。",
|
||||
"{{count}} channel(s) deleted": "已删除 {{count}} 个渠道",
|
||||
"{{count}} channel(s) disabled": "已禁用 {{count}} 个渠道",
|
||||
"{{count}} channel(s) enabled": "已启用 {{count}} 个渠道",
|
||||
@@ -32,6 +34,7 @@
|
||||
"{{count}} days ago": "{{count}} 天前",
|
||||
"{{count}} days remaining": "剩余 {{count}} 天",
|
||||
"{{count}} disabled channel(s) deleted": "已删除 {{count}} 个已禁用的渠道",
|
||||
"{{count}} FAQ entries will be removed from the list.": "将从列表中移除 {{count}} 个 FAQ 条目。",
|
||||
"{{count}} hours ago": "{{count}} 小时前",
|
||||
"{{count}} incidents": "{{count}} 起事件",
|
||||
"{{count}} incidents in the last 24 hours": "最近 24 小时 {{count}} 个异常桶",
|
||||
@@ -44,6 +47,7 @@
|
||||
"{{count}} override": "{{count}} 个覆盖",
|
||||
"{{count}} selected targets available for bulk copy.": "已选择 {{count}} 个目标,可用于批量复制。",
|
||||
"{{count}} tiers": "{{count}} 档",
|
||||
"{{count}} Uptime Kuma groups will be removed from the list.": "将从列表中移除 {{count}} 个 Uptime Kuma 分组。",
|
||||
"{{count}} vendors": "{{count}} 家厂商",
|
||||
"{{count}} weeks ago": "{{count}} 周前",
|
||||
"{{field}} updated to {{value}}": "{{field}} 已更新为 {{value}}",
|
||||
@@ -414,7 +418,10 @@
|
||||
"Are you sure you want to delete": "您确定要删除吗",
|
||||
"Are you sure you want to delete {{count}} model(s)? This action cannot be undone.": "您确定要删除 {{count}} 个模型吗?此操作无法撤销。",
|
||||
"Are you sure you want to delete all auto-disabled keys? This action cannot be undone.": "您确定要删除所有自动禁用的密钥吗?此操作无法撤销。",
|
||||
"Are you sure you want to delete channel \"{{name}}\"? This action cannot be undone.": "确定要删除渠道 \"{{name}}\" 吗?此操作无法撤销。",
|
||||
"Are you sure you want to delete deployment \"{{name}}\"? This action cannot be undone.": "确定要删除部署 \"{{name}}\" 吗?此操作不可撤销。",
|
||||
"Are you sure you want to delete group \"{{name}}\"? This action cannot be undone.": "确定要删除分组 \"{{name}}\" 吗?此操作无法撤销。",
|
||||
"Are you sure you want to delete model \"{{name}}\"? This action cannot be undone.": "确定要删除模型 \"{{name}}\" 吗?此操作无法撤销。",
|
||||
"Are you sure you want to delete this key? This action cannot be undone.": "您确定要删除此密钥吗?此操作无法撤销。",
|
||||
"Are you sure you want to disable all enabled keys?": "您确定要禁用所有已启用的密钥吗?",
|
||||
"Are you sure you want to enable all keys?": "您确定要启用所有密钥吗?",
|
||||
@@ -1237,6 +1244,7 @@
|
||||
"Delete selected channels": "删除所选渠道",
|
||||
"Delete selected models": "删除选定的模型",
|
||||
"Deleted": "已注销",
|
||||
"Deleted \"{{name}}\"": "已删除 \"{{name}}\"",
|
||||
"Deleted ({{id}})": "已删除({{id}})",
|
||||
"Deleted {{count}} failed models": "已删除 {{count}} 个失败模型",
|
||||
"Deleted a custom OAuth provider": "删除了一个自定义 OAuth 提供方",
|
||||
@@ -1443,6 +1451,7 @@
|
||||
"Edit chat preset": "编辑聊天预设",
|
||||
"Edit discount tier": "编辑折扣档位",
|
||||
"Edit FAQ": "编辑常见问题",
|
||||
"Edit group": "编辑分组",
|
||||
"Edit group rate limit": "编辑组速率限制",
|
||||
"Edit JSON object directly. Suitable for simple parameter overrides.": "直接编辑 JSON 对象。适合简单覆盖参数的场景。",
|
||||
"Edit JSON text directly. Format will be validated on save.": "直接编辑 JSON 文本,保存时会校验格式。",
|
||||
@@ -1718,6 +1727,7 @@
|
||||
"Failed to delete channel": "删除渠道失败",
|
||||
"Failed to delete disabled channels": "删除已禁用渠道失败",
|
||||
"Failed to delete failed models": "删除失败模型失败",
|
||||
"Failed to delete group": "删除分组失败",
|
||||
"Failed to delete invalid redemption codes": "删除无效兑换码失败",
|
||||
"Failed to delete model": "删除模型失败",
|
||||
"Failed to delete provider": "删除提供商失败",
|
||||
@@ -3595,6 +3605,7 @@
|
||||
"Resend ({{seconds}}s)": "重新发送 ({{seconds}}s)",
|
||||
"Reset": "重置",
|
||||
"Reset 2FA": "重置 2FA",
|
||||
"Reset 2FA for {{username}}? The user must set up 2FA again to continue using it.": "要重置 {{username}} 的 2FA 吗?该用户必须重新设置 2FA 后才能继续使用。",
|
||||
"Reset all model prices?": "重置所有模型价格吗?",
|
||||
"Reset all model ratios?": "重置所有模型比例吗?",
|
||||
"Reset all settings to default values": "将所有设置重置为默认值",
|
||||
@@ -3610,6 +3621,7 @@
|
||||
"Reset failed": "重置失败",
|
||||
"Reset model ratios": "重置模型倍率",
|
||||
"Reset Passkey": "重置 Passkey",
|
||||
"Reset Passkey for {{username}}? The user will need to register a new Passkey before using passwordless login.": "要重置 {{username}} 的 Passkey 吗?该用户需要重新注册 Passkey 后才能使用无密码登录。",
|
||||
"Reset password": "重置密码",
|
||||
"Reset Period": "重置周期",
|
||||
"Reset prices": "重置价格",
|
||||
@@ -4259,6 +4271,8 @@
|
||||
"This action cannot be undone.": "此操作无法撤消。",
|
||||
"This action cannot be undone. This will permanently delete your account and remove all your data from our servers.": "此操作无法撤消。这将永久删除您的账户并从我们的服务器中移除您的所有数据。",
|
||||
"This action will permanently remove 2FA protection from your account.": "此操作将永久移除您账户的 2FA 保护。",
|
||||
"This announcement will be removed from the list.": "此公告将从列表中移除。",
|
||||
"This API shortcut will be removed from the list.": "此 API 快捷方式将从列表中移除。",
|
||||
"This channel has no configured models.": "该渠道没有配置模型。",
|
||||
"This channel is not an Ollama channel.": "该渠道不是 Ollama 渠道。",
|
||||
"This channel type does not support fetching models": "此渠道类型不支持获取模型",
|
||||
@@ -4269,6 +4283,7 @@
|
||||
"This device does not support Passkey": "此设备不支持 Passkey",
|
||||
"This device does not support Passkey verification.": "此设备不支持 Passkey 验证。",
|
||||
"This expression is too complex for the visual editor. Please switch to expression mode to edit.": "此表达式对可视化编辑器过于复杂,请切换到表达式模式进行编辑。",
|
||||
"This FAQ entry will be removed from the list.": "此 FAQ 条目将从列表中移除。",
|
||||
"This feature is experimental. Configuration format and behavior may change.": "此功能为实验性功能。配置格式和行为可能会发生变化。",
|
||||
"This feature requires server-side WeChat configuration": "此功能需要服务器端微信配置",
|
||||
"This identifier is sent to the payment backend when creating an order. Use alipay for Alipay, wxpay for WeChat Pay, stripe for Stripe. Custom values must be supported by your payment provider.": "创建订单时会把这个标识提交给支付后端。支付宝填 alipay,微信填 wxpay,Stripe 填 stripe。自定义值必须是支付服务支持的标识。",
|
||||
@@ -4288,6 +4303,7 @@
|
||||
"This site currently has {{count}} models enabled": "本站当前已启用模型,总计 {{count}} 个",
|
||||
"This tier catches any request that did not match earlier tiers.": "此阶梯会兜底处理未匹配前面阶梯的请求。",
|
||||
"this token group": "此令牌分组",
|
||||
"This Uptime Kuma group will be removed from the list.": "此 Uptime Kuma 分组将从列表中移除。",
|
||||
"this user group": "此用户分组",
|
||||
"This user has no bindings": "该用户无任何绑定",
|
||||
"This week": "本周",
|
||||
@@ -4297,11 +4313,14 @@
|
||||
"This will delete all channel affinity cache entries still in memory.": "这将删除内存中所有的渠道亲和性缓存条目。",
|
||||
"This will delete temporary cache files that have not been used for more than 10 minutes": "这将删除超过 10 分钟未使用的临时缓存文件",
|
||||
"This will extend the deployment by the specified hours.": "这将通过指定的小时数延长部署。",
|
||||
"This will permanently delete all manually and automatically disabled channels. This action cannot be undone.": "这将永久删除所有手动禁用和自动禁用的渠道。此操作无法撤销。",
|
||||
"This will permanently delete API key": "这将永久删除 API 密钥",
|
||||
"This will permanently delete redemption code": "这将永久删除兑换码",
|
||||
"This will permanently delete user": "这将永久删除用户",
|
||||
"This will permanently remove all log entries created before {{date}}.": "这将永久删除 {{date}} 之前创建的所有日志条目。",
|
||||
"This will permanently remove log entries before the selected timestamp.": "这将永久删除所选时间戳之前的日志条目。",
|
||||
"This will update the priority to {{value}} for all {{count}} channel(s) with tag \"{{tag}}\". Continue?": "这会将标签 \"{{tag}}\" 下所有 {{count}} 个渠道的优先级更新为 {{value}}。继续吗?",
|
||||
"This will update the weight to {{value}} for all {{count}} channel(s) with tag \"{{tag}}\". Continue?": "这会将标签 \"{{tag}}\" 下所有 {{count}} 个渠道的权重更新为 {{value}}。继续吗?",
|
||||
"This year": "本年",
|
||||
"Three steps to get started": "三步快速上手",
|
||||
"Throughput": "吞吐量",
|
||||
@@ -4545,7 +4564,7 @@
|
||||
"Updated system setting {{key}}": "修改系统设置 {{key}}",
|
||||
"Updated user {{username}} (ID: {{id}})": "更新用户 {{username}}(ID: {{id}})",
|
||||
"Updating all channel balances. This may take a while. Please refresh to see results.": "正在更新所有渠道余额。这可能需要一段时间。请刷新以查看结果。",
|
||||
"Updating...": "更新中...",
|
||||
"Updating...": "正在更新...",
|
||||
"Upgrade Group": "升级分组",
|
||||
"Upgrade plaintext SMTP connection with STARTTLS before authentication": "在身份验证前使用 STARTTLS 升级明文 SMTP 连接",
|
||||
"Upload": "上传",
|
||||
@@ -4638,6 +4657,10 @@
|
||||
"User Consumption Trend": "用户消耗趋势",
|
||||
"User created successfully": "用户创建成功",
|
||||
"User dashboard and quota controls.": "用户仪表板和配额控制。",
|
||||
"User deleted successfully": "用户删除成功",
|
||||
"User demoted to regular user successfully": "已成功降级为普通用户",
|
||||
"User disabled successfully": "用户禁用成功",
|
||||
"User enabled successfully": "用户启用成功",
|
||||
"User Exclusive Ratio": "专属倍率",
|
||||
"User group": "用户分组",
|
||||
"User Group": "用户分组",
|
||||
@@ -4653,6 +4676,7 @@
|
||||
"User Information": "用户信息",
|
||||
"User Menu": "用户菜单",
|
||||
"User personal functions": "用户个人功能",
|
||||
"User promoted to admin successfully": "已成功提升为管理员",
|
||||
"User selectable": "用户可选",
|
||||
"User Subscription Management": "用户订阅管理",
|
||||
"User updated successfully": "用户更新成功",
|
||||
|
||||
Reference in New Issue
Block a user