Browse Source

📝 docs(Table): simplify table description for cleaner UI

t0ng7u 5 months ago
parent
commit
6a827fc7b9

+ 1 - 1
i18n/zh-cn.json

@@ -70,7 +70,7 @@
   "关于": "关于",
   "注销成功!": "注销成功!",
   "个人设置": "个人设置",
-  "API令牌": "API令牌",
+  "令牌管理": "令牌管理",
   "退出": "退出",
   "关闭侧边栏": "关闭侧边栏",
   "打开侧边栏": "打开侧边栏",

+ 1 - 1
web/src/components/layout/HeaderBar.js

@@ -336,7 +336,7 @@ const HeaderBar = ({ onMobileMenuToggle, drawerOpen }) => {
               >
                 <div className="flex items-center gap-2">
                   <IconKey size="small" className="text-gray-500 dark:text-gray-400" />
-                  <span>{t('API令牌')}</span>
+                  <span>{t('令牌管理')}</span>
                 </div>
               </Dropdown.Item>
               <Dropdown.Item

+ 1 - 1
web/src/components/layout/SiderBar.js

@@ -56,7 +56,7 @@ const SiderBar = ({ onNavigate = () => { } }) => {
             : 'tableHiddle',
       },
       {
-        text: t('API令牌'),
+        text: t('令牌管理'),
         itemKey: 'token',
         to: '/token',
       },

+ 1 - 1
web/src/components/table/redemptions/RedemptionsDescription.jsx

@@ -10,7 +10,7 @@ const RedemptionsDescription = ({ compactMode, setCompactMode, t }) => {
     <div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full">
       <div className="flex items-center text-orange-500">
         <Ticket size={16} className="mr-2" />
-        <Text>{t('兑换码可以批量生成和分发,适合用于推广活动或批量充值。')}</Text>
+        <Text>{t('兑换码管理')}</Text>
       </div>
 
       <CompactModeToggle

+ 1 - 1
web/src/components/table/tokens/TokensDescription.jsx

@@ -10,7 +10,7 @@ const TokensDescription = ({ compactMode, setCompactMode, t }) => {
     <div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full">
       <div className="flex items-center text-blue-500">
         <Key size={16} className="mr-2" />
-        <Text>{t('令牌用于API访问认证,可以设置额度限制和模型权限。')}</Text>
+        <Text>{t('令牌管理')}</Text>
       </div>
 
       <CompactModeToggle

+ 1 - 1
web/src/components/table/users/UsersDescription.jsx

@@ -10,7 +10,7 @@ const UsersDescription = ({ compactMode, setCompactMode, t }) => {
     <div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full">
       <div className="flex items-center text-blue-500">
         <IconUserAdd className="mr-2" />
-        <Text>{t('用户管理页面,可以查看和管理所有注册用户的信息、权限和状态。')}</Text>
+        <Text>{t('用户管理')}</Text>
       </div>
       <CompactModeToggle
         compactMode={compactMode}

+ 2 - 4
web/src/i18n/locales/en.json

@@ -584,7 +584,7 @@
   "确定是否要修复数据库一致性?": "Are you sure you want to repair database consistency?",
   "进行该操作时,可能导致渠道访问错误,请仅在数据库出现问题时使用": "When performing this operation, it may cause channel access errors. Please only use it when there is a problem with the database.",
   "当前没有可用的启用令牌,请确认是否有令牌处于启用状态!": "There are currently no enablement tokens available, please confirm if one is enabled!",
-  "API令牌": "API Token",
+  "令牌管理": "Token Management",
   "使用日志": "Usage log",
   "Midjourney日志": "Midjourney",
   "数据看板": "Dashboard",
@@ -1480,7 +1480,6 @@
   "100个": "100 items",
   "Midjourney 任务记录": "Midjourney Task Records",
   "任务记录": "Task Records",
-  "兑换码可以批量生成和分发,适合用于推广活动或批量充值。": "Redemption codes can be batch generated and distributed, suitable for promotion activities or bulk recharge.",
   "剩余": "Remaining",
   "已用": "Used",
   "调用": "Calls",
@@ -1488,7 +1487,7 @@
   "收益": "Earnings",
   "无邀请人": "No Inviter",
   "邀请人": "Inviter",
-  "用户管理页面,可以查看和管理所有注册用户的信息、权限和状态。": "User management page, you can view and manage all registered user information, permissions, and status.",
+  "兑换码管理": "Redemption Code Management",
   "设置兑换码的基本信息": "Set redemption code basic information",
   "设置兑换码的额度和数量": "Set redemption code quota and quantity",
   "编辑用户": "Edit User",
@@ -1683,7 +1682,6 @@
   "设置保存失败": "Settings save failed",
   "已新增 {{count}} 个模型:{{list}}": "Added {{count}} models: {{list}}",
   "未发现新增模型": "No new models were added",
-  "令牌用于API访问认证,可以设置额度限制和模型权限。": "Tokens are used for API access authentication, and can set quota limits and model permissions.",
   "清除失效兑换码": "Clear invalid redemption codes",
   "确定清除所有失效兑换码?": "Are you sure you want to clear all invalid redemption codes?",
   "将删除已使用、已禁用及过期的兑换码,此操作不可撤销。": "This will delete all used, disabled, and expired redemption codes, this operation cannot be undone.",