Skip to content

Commit

Permalink
fix: 更新信息组件,翻译为中文并移除不必要的配置参数
Browse files Browse the repository at this point in the history
  • Loading branch information
Shua-github committed Dec 29, 2024
1 parent 829b861 commit 4b42d40
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions src/components/Info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ListItemAvatar from "@mui/material/ListItemAvatar";
import Avatar from "@mui/material/Avatar";
import Typography from "@mui/material/Typography";

export default function Info({ open, handleClose, config }) {
export default function Info({ open, handleClose }) {
return (
<div>
<Dialog
Expand All @@ -20,13 +20,30 @@ export default function Info({ open, handleClose, config }) {
aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description"
>
<DialogTitle id="alert-dialog-title">About</DialogTitle>
<DialogTitle id="alert-dialog-title">关于</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-description">
<Typography variant="h6" component="h3">
This tool made possible by:
这个工具由以下人员提供支持:
</Typography>
<List>
<ListItem
button
onClick={() =>
(window.location.href = "https://github.com/Shua-github")
}
>
<ListItemAvatar>
<Avatar
alt="Shua"
src="https://avatars.githubusercontent.com/Shua-github"
/>
</ListItemAvatar>
<ListItemText
primary="Shua"
secondary="汉化此工具并修改了一些地方"
/>
</ListItem>
<ListItem
button
onClick={() =>
Expand All @@ -41,7 +58,7 @@ export default function Info({ open, handleClose, config }) {
</ListItemAvatar>
<ListItemText
primary="Rosemoe"
secondary="for the Arcaea variant of sticker maker"
secondary="Arcaea 版本的贴纸制作工具提供支持"
/>
</ListItem>
<ListItem
Expand All @@ -53,13 +70,13 @@ export default function Info({ open, handleClose, config }) {
>
<ListItemAvatar>
<Avatar
alt="Contributors"
alt="贡献者"
src="https://pbs.twimg.com/profile_images/1829853648521723905/rnRP3FCZ_400x400.jpg"
/>
</ListItemAvatar>
<ListItemText
primary="Xestarrrr"
secondary="for the Arcaea sticker images"
secondary="Arcaea 贴纸图像提供支持"
/>
</ListItem>
<ListItem
Expand All @@ -77,19 +94,19 @@ export default function Info({ open, handleClose, config }) {
</ListItemAvatar>
<ListItemText
primary="Ayaka"
secondary="for the original sticker maker"
secondary="为原始贴纸制作工具提供支持"
/>
</ListItem>
</List>
<Typography variant="h6" component="h3">
You can find the source code or contribute here:
你可以在这里找到源代码或贡献:
</Typography>
<List>
<ListItem
button
onClick={() =>
(window.location.href =
"https://github.com/Rosemoe/arcaea-stickers")
"https://github.com/Shua-github/arcaea-stickers-zh")
}
>
<ListItemAvatar>
Expand All @@ -98,21 +115,14 @@ export default function Info({ open, handleClose, config }) {
src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
/>
</ListItemAvatar>
<ListItemText primary="GitHub" secondary="Source Code" />
<ListItemText primary="GitHub" secondary="源代码" />
</ListItem>
</List>
<Typography variant="h6" component="h3">
Total stickers made using the app:
<br />
{config?.global
? config?.global.toLocaleString() + " Sticker"
: "not available"}
</Typography>
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={handleClose} color="secondary" autoFocus>
Close
关闭
</Button>
</DialogActions>
</Dialog>
Expand Down

0 comments on commit 4b42d40

Please sign in to comment.