Skip to content

Commit

Permalink
feat: display version and copyright in drawer footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissium committed Aug 16, 2024
1 parent 7313089 commit 52493b6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
39 changes: 38 additions & 1 deletion client/src/DrawerContent.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react';
import Box from '@mui/material/Box';
import Drawer from '@mui/material/Drawer';
import MuiLink from '@mui/material/Link';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemButton from '@mui/material/ListItemButton';
import ListItemText from '@mui/material/ListItemText';
import Typography from '@mui/material/Typography';
import SearchIcon from '@mui/icons-material/Search';
import StarIcon from '@mui/icons-material/Star';
import ManageSearchIcon from '@mui/icons-material/ManageSearch';
Expand Down Expand Up @@ -92,6 +95,40 @@ export default function DrawerContent() {
/>
))}
</List>
<Box sx={{
position: 'absolute',
bottom: 0,
width: '100%',
textAlign: 'center',
paddingBottom: 3
}}>
<Box>
<MuiLink
href='https://silverdict.lecoteauverdoyant.co.uk/'
target='_blank'
variant='body2'
sx={{ display: 'inline-block', marginRight: 0.5 }}
>
SilverDict
</MuiLink>
<Typography
variant='body2'
sx={{ display: 'inline-block' }}
>
v1.1.6
</Typography>
</Box>
<Box>
<Typography variant='body2'>
&copy; <MuiLink variant='body2' href='mailto:[email protected]'>Yi Xing</MuiLink> 2024
</Typography>
</Box>
<Box>
<Typography variant='body2'>
{localisedStrings['licence']}
</Typography>
</Box>
</Box>
</Drawer>
);
}
}
1 change: 1 addition & 0 deletions client/src/translations/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"library-screen-rescan-sources-dialogue-title": "Scanning sources…",
"library-screen-sources-tab-title": "Sources",
"library-screen-title": "Library",
"licence": "Licensed under GPLv3",
"query-screen-title": "Query",
"search-placeholder": "Search…",
"settings-screen-change-size-history-dialogue-content": "A non-negative integer. Set to 0 to disable history.",
Expand Down

0 comments on commit 52493b6

Please sign in to comment.