-
-
-
{t('日志记录帮助您了解使用情况和排查问题')}
+
+
+
+
+
+
+
+
+
{t('消耗额度')}
+
{renderQuota(stat.quota)}
+
+
+
+
+
+
+
+
+
+
+
RPM
+
{stat.rpm || 0}
+
+
+
+
+
+
+
+
+
+
+
TPM
+
{stat.tpm || 0}
+
+
+
-
-
-
-
-
💰
-
-
{t('消耗额度')}
-
{renderQuota(stat.quota)}
-
-
-
-
-
📊
-
-
RPM
-
{stat.rpm || 0}
-
-
-
-
-
⚡
-
-
TPM
-
{stat.tpm || 0}
-
-
-
-
-
+
diff --git a/web/src/components/TokensTable.js b/web/src/components/TokensTable.js
index 2a6fd857..1b17aef2 100644
--- a/web/src/components/TokensTable.js
+++ b/web/src/components/TokensTable.js
@@ -14,15 +14,13 @@ import {
Card,
Dropdown,
Modal,
- Popconfirm,
- Popover,
Space,
SplitButtonGroup,
Table,
Tag,
- Typography,
Input,
Divider,
+ Avatar,
} from '@douyinfe/semi-ui';
import {
@@ -36,13 +34,14 @@ import {
IconStop,
IconPlay,
IconMore,
+ IconMoneyExchangeStroked,
+ IconHistogram,
+ IconRotate,
} from '@douyinfe/semi-icons';
import EditToken from '../pages/Token/EditToken';
import { useTranslation } from 'react-i18next';
import { UserContext } from '../context/User';
-const { Text } = Typography;
-
function renderTimestamp(timestamp) {
return <>{timestamp2string(timestamp)}>;
}
@@ -197,7 +196,7 @@ const TokensTable = () => {
showError(t('聊天链接配置错误,请联系管理员'));
}
}
-
+
// 创建更多操作的下拉菜单项
const moreMenuItems = [
{
@@ -230,7 +229,7 @@ const TokensTable = () => {
},
}
];
-
+
// 动态添加启用/禁用按钮
if (record.status === 1) {
moreMenuItems.push({
@@ -253,7 +252,7 @@ const TokensTable = () => {
},
});
}
-
+
return (
{
>
-
+
}
theme='light'
@@ -307,7 +306,7 @@ const TokensTable = () => {
>
{t('复制')}
-
+
}
theme='light'
@@ -321,7 +320,7 @@ const TokensTable = () => {
>
{t('编辑')}
-
+
{
const renderHeader = () => (
-
-
-
-
- {t('令牌无法精确控制使用额度,只允许自用,请勿直接将令牌分发给他人。')}
-
-
-
-
-
💰
-
-
{t('当前余额')}
-
{renderQuota(userState?.user?.quota)}
-
-
-
-
-
📊
-
-
{t('累计消费')}
-
{renderQuota(userState?.user?.used_quota)}
-
-
-
-
-
🔄
-
-
{t('请求次数')}
-
{userState?.user?.request_count || 0}
-
+
+
+
+
+
+
+
+
{t('当前余额')}
+
{renderQuota(userState?.user?.quota)}
-
+
+
+
+
+
+
+
+
+
{t('累计消费')}
+
{renderQuota(userState?.user?.used_quota)}
+
+
+
+
+
+
+
+
+
+
+
{t('请求次数')}
+
{userState?.user?.request_count || 0}
+
+
+
diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json
index 21738a79..cd05644e 100644
--- a/web/src/i18n/locales/en.json
+++ b/web/src/i18n/locales/en.json
@@ -170,7 +170,6 @@
"充值": "Recharge",
"用户": "Users",
"日志": "Logs",
- "日志记录帮助您了解使用情况和排查问题": "Log records help you understand usage and troubleshoot issues",
"设置": "Settings",
"关于": "About",
"价格": "Pricing",