forked from Place1/wg-access-server
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85943e5
commit 9890516
Showing
10 changed files
with
1,225 additions
and
4,509 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,72 @@ | ||
import { Accordion, AccordionDetails, AccordionSummary, Box, Button, Card, CardContent, CardHeader, Checkbox, FormControl, FormControlLabel, FormHelperText, Input, InputLabel, Skeleton, Typography } from "@mui/material"; | ||
import { | ||
Accordion, | ||
AccordionDetails, | ||
AccordionSummary, | ||
Box, | ||
Button, | ||
Card, | ||
CardContent, | ||
CardHeader, | ||
Checkbox, | ||
FormControl, | ||
FormControlLabel, | ||
FormHelperText, | ||
Input, | ||
InputLabel, | ||
Skeleton, | ||
Typography, | ||
} from '@mui/material'; | ||
import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; | ||
import AddIcon from '@mui/icons-material/Add'; | ||
|
||
|
||
export function AddDeviceSkeleton() { | ||
return( | ||
<Card> | ||
<CardHeader title="Add A Device" /> | ||
<CardContent> | ||
<FormControl fullWidth> | ||
<InputLabel htmlFor="device-name"> | ||
<Skeleton variant="text" width={100} /> | ||
</InputLabel> | ||
<Input | ||
id="device-name" | ||
aria-describedby="device-name-text" | ||
return ( | ||
<Card> | ||
<CardHeader title="Add A Device" /> | ||
<CardContent> | ||
<FormControl fullWidth> | ||
<InputLabel htmlFor="device-name"> | ||
<Skeleton variant="text" width={100} /> | ||
</InputLabel> | ||
<Input id="device-name" aria-describedby="device-name-text" /> | ||
</FormControl> | ||
<Box mt={2} mb={2}> | ||
<Accordion> | ||
<AccordionSummary | ||
expandIcon={<ExpandMoreIcon />} | ||
aria-controls="advanced-options-content" | ||
id="advanced-options-header" | ||
> | ||
<Typography> | ||
<Skeleton variant="text" width={80} /> | ||
</Typography> | ||
</AccordionSummary> | ||
<AccordionDetails> | ||
<FormControl fullWidth> | ||
<InputLabel htmlFor="device-publickey"> | ||
<Skeleton variant="text" width={180} /> | ||
</InputLabel> | ||
<Input id="device-publickey" aria-describedby="device-publickey-text" /> | ||
<FormHelperText id="device-publickey-text"> | ||
<Skeleton variant="text" width="80%" /> | ||
</FormHelperText> | ||
</FormControl> | ||
<FormControlLabel | ||
control={<Checkbox id="device-presharedkey" value={<Skeleton variant="text" width={20} />} />} | ||
label={<Skeleton variant="text" width={100} />} | ||
/> | ||
</FormControl> | ||
<Box mt={2} mb={2}> | ||
<Accordion> | ||
<AccordionSummary | ||
expandIcon={<ExpandMoreIcon />} | ||
aria-controls="advanced-options-content" | ||
id="advanced-options-header" | ||
> | ||
<Typography> | ||
<Skeleton variant="text" width={80} /> | ||
</Typography> | ||
</AccordionSummary> | ||
<AccordionDetails> | ||
<FormControl fullWidth> | ||
<InputLabel htmlFor="device-publickey"> | ||
<Skeleton variant="text" width={180} /> | ||
</InputLabel> | ||
<Input | ||
id="device-publickey" | ||
aria-describedby="device-publickey-text" | ||
/> | ||
<FormHelperText id="device-publickey-text"> | ||
<Skeleton variant="text" width="80%" /> | ||
</FormHelperText> | ||
</FormControl> | ||
<FormControlLabel | ||
control={ | ||
<Checkbox | ||
id="device-presharedkey" | ||
value={<Skeleton variant="text" width={20} />} | ||
|
||
/> | ||
} | ||
label={<Skeleton variant="text" width={100} />} | ||
/> | ||
</AccordionDetails> | ||
</Accordion> | ||
</Box> | ||
<Typography component="div" align="right"> | ||
<Button color="secondary" type="button" > | ||
Cancel | ||
</Button> | ||
<Button color="primary" variant="contained" endIcon={<AddIcon />} type="submit"> | ||
Add | ||
</Button> | ||
</Typography> | ||
</CardContent> | ||
</Card> | ||
|
||
); | ||
</AccordionDetails> | ||
</Accordion> | ||
</Box> | ||
<Typography component="div" align="right"> | ||
<Button color="secondary" type="button"> | ||
Cancel | ||
</Button> | ||
<Button color="primary" variant="contained" endIcon={<AddIcon />} type="submit"> | ||
Add | ||
</Button> | ||
</Typography> | ||
</CardContent> | ||
</Card> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,50 @@ | ||
import { Card, CardContent, CardHeader, Skeleton } from "@mui/material"; | ||
import { Card, CardContent, CardHeader, Skeleton } from '@mui/material'; | ||
|
||
export function DeviceListItemSkeleton() { | ||
return( | ||
|
||
<Card> | ||
<CardHeader | ||
return ( | ||
<Card> | ||
<CardHeader | ||
title={<Skeleton variant="text" width={100} />} | ||
subheader={<Skeleton variant="text" width={50} />} | ||
avatar={<Skeleton variant="circular" width={40} height={40} />} | ||
action={<Skeleton variant="text" width={50} />} | ||
/> | ||
<CardContent> | ||
/> | ||
<CardContent> | ||
<table cellPadding="5"> | ||
<tbody> | ||
<tbody> | ||
<tr> | ||
<td>Endpoint</td> | ||
<td><Skeleton variant="text" width={100} /></td> | ||
<td>Endpoint</td> | ||
<td> | ||
<Skeleton variant="text" width={100} /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Download</td> | ||
<td><Skeleton variant="text" width={100} /></td> | ||
<td>Download</td> | ||
<td> | ||
<Skeleton variant="text" width={100} /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Upload</td> | ||
<td><Skeleton variant="text" width={100} /></td> | ||
<td>Upload</td> | ||
<td> | ||
<Skeleton variant="text" width={100} /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Public key</td> | ||
<td><Skeleton variant="text" width={100} /></td> | ||
<td>Public key</td> | ||
<td> | ||
<Skeleton variant="text" width={100} /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Pre-shared key</td> | ||
<td><Skeleton variant="text" width={100} /></td> | ||
<td>Pre-shared key</td> | ||
<td> | ||
<Skeleton variant="text" width={100} /> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</tbody> | ||
</table> | ||
</CardContent> | ||
</Card> | ||
) | ||
|
||
</CardContent> | ||
</Card> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.