chore: update ui copy

This commit is contained in:
JustSong 2024-01-07 14:19:36 +08:00
parent 1227877718
commit fbc1e21abf
6 changed files with 13 additions and 13 deletions

View File

@ -157,7 +157,7 @@ const ProfileSection = () => {
<ListItemIcon> <ListItemIcon>
<IconLogout stroke={1.5} size="1.3rem" /> <IconLogout stroke={1.5} size="1.3rem" />
</ListItemIcon> </ListItemIcon>
<ListItemText primary={<Typography variant="body2">Logout</Typography>} /> <ListItemText primary={<Typography variant="body2">登出</Typography>} />
</ListItemButton> </ListItemButton>
</List> </List>
</MainCard> </MainCard>

View File

@ -22,7 +22,7 @@ const panel = {
children: [ children: [
{ {
id: 'dashboard', id: 'dashboard',
title: 'Dashboard', title: '总览',
type: 'item', type: 'item',
url: '/panel/dashboard', url: '/panel/dashboard',
icon: icons.IconDashboard, icon: icons.IconDashboard,
@ -40,7 +40,7 @@ const panel = {
}, },
{ {
id: 'token', id: 'token',
title: 'Token', title: '令牌',
type: 'item', type: 'item',
url: '/panel/token', url: '/panel/token',
icon: icons.IconKey, icon: icons.IconKey,
@ -82,7 +82,7 @@ const panel = {
}, },
{ {
id: 'profile', id: 'profile',
title: '个人设置', title: '我的',
type: 'item', type: 'item',
url: '/panel/profile', url: '/panel/profile',
icon: icons.IconUserScan, icon: icons.IconUserScan,

View File

@ -71,7 +71,7 @@ const Dashboard = () => {
<Grid item lg={4} xs={12}> <Grid item lg={4} xs={12}>
<StatisticalLineChartCard <StatisticalLineChartCard
isLoading={isLoading} isLoading={isLoading}
title="今日Token" title="今日 token"
chartData={tokenChart?.chartData} chartData={tokenChart?.chartData}
todayValue={tokenChart?.todayValue} todayValue={tokenChart?.todayValue}
/> />
@ -87,19 +87,19 @@ const Dashboard = () => {
<UserCard> <UserCard>
<Grid container spacing={gridSpacing} justifyContent="center" alignItems="center" paddingTop={'20px'}> <Grid container spacing={gridSpacing} justifyContent="center" alignItems="center" paddingTop={'20px'}>
<Grid item xs={4}> <Grid item xs={4}>
<Typography variant="h4"> :</Typography> <Typography variant="h4"></Typography>
</Grid> </Grid>
<Grid item xs={8}> <Grid item xs={8}>
<Typography variant="h3"> {users?.quota ? '$' + calculateQuota(users.quota) : '未知'}</Typography> <Typography variant="h3"> {users?.quota ? '$' + calculateQuota(users.quota) : '未知'}</Typography>
</Grid> </Grid>
<Grid item xs={4}> <Grid item xs={4}>
<Typography variant="h4">已使用:</Typography> <Typography variant="h4">已使用</Typography>
</Grid> </Grid>
<Grid item xs={8}> <Grid item xs={8}>
<Typography variant="h3"> {users?.used_quota ? '$' + calculateQuota(users.used_quota) : '未知'}</Typography> <Typography variant="h3"> {users?.used_quota ? '$' + calculateQuota(users.used_quota) : '未知'}</Typography>
</Grid> </Grid>
<Grid item xs={4}> <Grid item xs={4}>
<Typography variant="h4">调用次数:</Typography> <Typography variant="h4">调用次数</Typography>
</Grid> </Grid>
<Grid item xs={8}> <Grid item xs={8}>
<Typography variant="h3"> {users?.request_count || '未知'}</Typography> <Typography variant="h3"> {users?.request_count || '未知'}</Typography>

View File

@ -142,7 +142,7 @@ export default function Token() {
return ( return (
<> <>
<Stack direction="row" alignItems="center" justifyContent="space-between" mb={5}> <Stack direction="row" alignItems="center" justifyContent="space-between" mb={5}>
<Typography variant="h4">Token</Typography> <Typography variant="h4">令牌</Typography>
<Button <Button
variant="contained" variant="contained"
@ -152,12 +152,12 @@ export default function Token() {
}} }}
startIcon={<IconPlus />} startIcon={<IconPlus />}
> >
新建Token 新建令牌
</Button> </Button>
</Stack> </Stack>
<Stack mb={5}> <Stack mb={5}>
<Alert severity="info"> <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> </Alert>
</Stack> </Stack>
<Card> <Card>

View File

@ -51,7 +51,7 @@ const InviteCard = () => {
邀请奖励 邀请奖励
</Typography> </Typography>
<Typography variant="body" sx={{ color: theme.palette.primary.dark }}> <Typography variant="body" sx={{ color: theme.palette.primary.dark }}>
分享您的邀请链接邀请好友注册即可获得奖励! 分享您的邀请链接邀请好友注册即可获得奖励
</Typography> </Typography>
<OutlinedInput <OutlinedInput