Skip to content

Commit

Permalink
chore: update ui copy
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jan 7, 2024
1 parent 1227877 commit fbc1e21
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const ProfileSection = () => {
<ListItemIcon>
<IconLogout stroke={1.5} size="1.3rem" />
</ListItemIcon>
<ListItemText primary={<Typography variant="body2">Logout</Typography>} />
<ListItemText primary={<Typography variant="body2">登出</Typography>} />
</ListItemButton>
</List>
</MainCard>
Expand Down
6 changes: 3 additions & 3 deletions web/berry/src/menu-items/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const panel = {
children: [
{
id: 'dashboard',
title: 'Dashboard',
title: '总览',
type: 'item',
url: '/panel/dashboard',
icon: icons.IconDashboard,
Expand All @@ -40,7 +40,7 @@ const panel = {
},
{
id: 'token',
title: 'Token',
title: '令牌',
type: 'item',
url: '/panel/token',
icon: icons.IconKey,
Expand Down Expand Up @@ -82,7 +82,7 @@ const panel = {
},
{
id: 'profile',
title: '个人设置',
title: '我的',
type: 'item',
url: '/panel/profile',
icon: icons.IconUserScan,
Expand Down
8 changes: 4 additions & 4 deletions web/berry/src/views/Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Dashboard = () => {
<Grid item lg={4} xs={12}>
<StatisticalLineChartCard
isLoading={isLoading}
title="今日Token"
title="今日 token"
chartData={tokenChart?.chartData}
todayValue={tokenChart?.todayValue}
/>
Expand All @@ -87,19 +87,19 @@ const Dashboard = () => {
<UserCard>
<Grid container spacing={gridSpacing} justifyContent="center" alignItems="center" paddingTop={'20px'}>
<Grid item xs={4}>
<Typography variant="h4">余 额:</Typography>
<Typography variant="h4">余额:</Typography>
</Grid>
<Grid item xs={8}>
<Typography variant="h3"> {users?.quota ? '$' + calculateQuota(users.quota) : '未知'}</Typography>
</Grid>
<Grid item xs={4}>
<Typography variant="h4">已使用:</Typography>
<Typography variant="h4">已使用</Typography>
</Grid>
<Grid item xs={8}>
<Typography variant="h3"> {users?.used_quota ? '$' + calculateQuota(users.used_quota) : '未知'}</Typography>
</Grid>
<Grid item xs={4}>
<Typography variant="h4">调用次数:</Typography>
<Typography variant="h4">调用次数</Typography>
</Grid>
<Grid item xs={8}>
<Typography variant="h3"> {users?.request_count || '未知'}</Typography>
Expand Down
2 changes: 1 addition & 1 deletion web/berry/src/views/Profile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default function Profile() {
{status.github_oauth && !inputs.github_id && (
<Grid xs={12} md={4}>
<Button variant="contained" onClick={() => onGitHubOAuthClicked(status.github_client_id, true)}>
绑定GitHub账号
绑定 GitHub 账号
</Button>
</Grid>
)}
Expand Down
6 changes: 3 additions & 3 deletions web/berry/src/views/Token/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function Token() {
return (
<>
<Stack direction="row" alignItems="center" justifyContent="space-between" mb={5}>
<Typography variant="h4">Token</Typography>
<Typography variant="h4">令牌</Typography>

<Button
variant="contained"
Expand All @@ -152,12 +152,12 @@ export default function Token() {
}}
startIcon={<IconPlus />}
>
新建Token
新建令牌
</Button>
</Stack>
<Stack mb={5}>
<Alert severity="info">
将OpenAI API基础地址https://api.openai.com替换为<b>{siteInfo.server_address}</b>,复制下面的密钥即可使用
将 OpenAI API 基础地址 https://api.openai.com 替换为 <b>{siteInfo.server_address}</b>,复制下面的密钥即可使用
</Alert>
</Stack>
<Card>
Expand Down
2 changes: 1 addition & 1 deletion web/berry/src/views/Topup/component/InviteCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const InviteCard = () => {
邀请奖励
</Typography>
<Typography variant="body" sx={{ color: theme.palette.primary.dark }}>
分享您的邀请链接,邀请好友注册,即可获得奖励!
分享您的邀请链接,邀请好友注册,即可获得奖励
</Typography>

<OutlinedInput
Expand Down

0 comments on commit fbc1e21

Please sign in to comment.