diff --git a/website/src/components/Contributors/Contributors.tsx b/website/src/components/Contributors/Contributors.tsx deleted file mode 100644 index 899581df8..000000000 --- a/website/src/components/Contributors/Contributors.tsx +++ /dev/null @@ -1,246 +0,0 @@ -import Translate from '@docusaurus/Translate'; -import Tooltip from '@mui/material/Tooltip'; -import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction'; -import Avatar from '@mui/material/Avatar'; -import Badge from '@mui/material/Badge'; -import Chip from '@mui/material/Chip'; -import Dialog from '@mui/material/Dialog'; -import DialogContent from '@mui/material/DialogContent'; -import DialogTitle from '@mui/material/DialogTitle'; -import Grid from '@mui/material/Grid'; -import IconButton from '@mui/material/IconButton'; -import List from '@mui/material/List'; -import ListItem from '@mui/material/ListItem'; -import ListItemIcon from '@mui/material/ListItemIcon'; -import ListItemText from '@mui/material/ListItemText'; -import Typography from '@mui/material/Typography'; -import { green, yellow } from '@mui/material/colors'; -import { makeStyles, withStyles } from '@mui/styles'; -import { ThemeProvider, createTheme } from '@mui/material/styles'; -import EmojiEventsIcon from '@mui/icons-material/EmojiEvents'; -import MergeTypeIcon from '@mui/icons-material/MergeType'; -import StarIcon from '@mui/icons-material/Star'; -import Layout from '@theme/Layout'; -import React from 'react'; - -const generateImage = (id) => `https://avatars3.githubusercontent.com/u/${id}?s=120&v=4`; - -const theme = createTheme({ - palette: { - primary: { - main: '#4B5E40', - }, - secondary: { - main: '#808a79', - }, - }, -}); - -const useStyles = makeStyles(({ theme }: { theme: any }) =>({ - '@global': { - inline: { - display: 'inline', - }, - starColor: { - color: yellow[500], - }, - archived: { - opacity: `0.4`, - }, - emojiEvent: { - color: green[800], - }, - }, -})); - -const StyledBadge = withStyles(() => ({ - badge: { - right: -3, - top: 8, - padding: '0 4px', - }, -}))(Badge); - -function ListItemLink(props) { - return ; -} - -type ContributorsProps = { - contributors: any; -}; - -function convertItemTo(item) { - const node = { - url: item.login, - userId: item.id, - id: `key-${item.login}`, - contributions: item.contributions, - repositories: item.repositories, - }; - - return { node }; -} - -const Contributors: React.FC = ({ contributors }): React.ReactElement => { - const [user, setUser] = React.useState(null); - const [open, setOpen] = React.useState(false); - const classes = useStyles(); - - const handleClickOpen = (item) => { - setUser(item); - setOpen(true); - }; - - const handleClose = () => { - setOpen(false); - setUser(null); - }; - - const handleKeyDown = (event, userItem) => { - if (event.keyCode === 13) { - handleClickOpen(userItem); - } - }; - - return ( - <> - - -
-
-

- Contributors - ({contributors.length}) 🎉🎉🎉 -

-

- - Thanks to everyone involved in maintaining and improving Verdaccio, this page is a - way to thank you for all the effort you have put on it. - - - Thanks!!! - -

-
-
- -
- {contributors.map((item, index) => { - const userItem = convertItemTo(item); - return ( -
handleKeyDown(event, userItem)} - onClick={() => handleClickOpen(userItem)} - > - -
- ); - })} -
- {user && ( - - - - - - - - - - {user.node.url} - - - } - label={user.node.contributions} - color="default" - /> - - - - - -
- - {user.node.repositories.map((repo) => { - return ( - - - - - - - - {repo.name}} - secondary={ - - {repo.description} - - } - /> - - - - - - - - - - - - ); - })} - -
-
-
- )} -
-
- - ); -}; - -export default Contributors; diff --git a/website/src/components/Contributors/index.ts b/website/src/components/Contributors/index.ts deleted file mode 100644 index e69de29bb..000000000