Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tibuild): update user guide link #143

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tibuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ make run
```
After waiting a few seconds, application is available and can be visited in the browser:[localhost:8080](http://localhost:8080/)

## User Guide
[click and jump](https://pingcap.feishu.cn/wiki/wikcnlRSh8dyOoHGbMQEJN9x77d)

## File Structure
```
tibuild
Expand Down
20 changes: 10 additions & 10 deletions tibuild/website/src/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import Button from '@mui/material/Button';
import IconButton from '@mui/material/IconButton';
import {CLIENTID} from "../utils";
import { CLIENTID } from "../utils";
import storage from "../request/storageUtils";
import {Badge, Link, Tooltip} from "@mui/material";
import { Badge, Link, Tooltip } from "@mui/material";
import HelpOutlineIcon from '@mui/icons-material/HelpOutline';

function userLoginIn() {
Expand All @@ -32,8 +32,8 @@ export default function ButtonAppBar() {
}
};

const handleUserGuide=(event)=>{
const userGuideUrl="https://pingcap.feishu.cn/wiki/wikcnlRSh8dyOoHGbMQEJN9x77d";
const handleUserGuide = (event) => {
const userGuideUrl = "https://pingcap-cn.feishu.cn/wiki/ST9jwAE5ZiPHJUkFjT4cspRSnAf";
window.open(userGuideUrl);
}

Expand All @@ -46,21 +46,21 @@ export default function ButtonAppBar() {
};

return (
<Box sx={{flexGrow: 1}}>
<Box sx={{ flexGrow: 1 }}>
<AppBar position="static" color="primary">
<Toolbar>
<IconButton
size="large"
edge="start"
color="inherit"
aria-label="menu"
sx={{mr: 2}}
sx={{ mr: 2 }}
>
{/*<MenuIcon />*/}
</IconButton>
<Typography variant="h6" component="div" sx={{flexGrow: 1}}>
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
<Link href={"/"} underline="none" align={"left"}><font color="#F5F5F5" size={5} face="Comic Sans MS">TiBuild</font>
</Link>
</Link>
</Typography>
<Box>
<Tooltip title="User Guide">
Expand All @@ -69,9 +69,9 @@ export default function ButtonAppBar() {
</IconButton>
</Tooltip>
</Box>
<Box sx={{flexGrow: 0}}>
<Box sx={{ flexGrow: 0 }}>
<Tooltip title="LogIn or LogOut">
<Button onClick={handleOpenUserMenu} sx={{p: 0}}>
<Button onClick={handleOpenUserMenu} sx={{ p: 0 }}>
{/*<Avatar alt="Remy Sharp" src="/static/images/avatar/2.jpg" />*/}
<p align={"left"}><font color="#F5F5F5" size={4} face="Comic Sans MS">{loginName}</font>
</p>
Expand Down