Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maltejur committed Nov 29, 2023
1 parent 82821a0 commit 872b8ee
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 16 deletions.
36 changes: 31 additions & 5 deletions components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,41 @@ export default function Footer() {
<Link href="/#donate">{t("donateTitle")}</Link>
</div>
<div className={classes.list}>
<a href="https://github.com/TheAlgorithms/" target="_blank" rel="noreferrer">GitHub</a>
<a href="https://matrix.to/#/#TheAlgorithms_community:gitter.im" target="_blank" rel="noreferrer">
<a
href="https://github.com/TheAlgorithms/"
target="_blank"
rel="noreferrer"
>
GitHub
</a>
<a
href="https://matrix.to/#/#TheAlgorithms_community:gitter.im"
target="_blank"
rel="noreferrer"
>
Gitter
</a>
<a href="https://twitter.com/The_Algorithms" target="_blank" rel="noreferrer">X</a>
<a href="https://github.com/TheAlgorithms/website" target="_blank" rel="noreferrer">
<a
href="https://twitter.com/The_Algorithms"
target="_blank"
rel="noreferrer"
>
X
</a>
<a
href="https://github.com/TheAlgorithms/website"
target="_blank"
rel="noreferrer"
>
{t("sourceCodeFooter")}
</a>
<a href="mailto:hello@the-algorithms.com" target="_blank" rel="noreferrer">{t("contact")}</a>
<a
href="mailto:hello@the-algorithms.com"
target="_blank"
rel="noreferrer"
>
{t("contact")}
</a>
</div>
<a
className={classes.vercelLogo}
Expand Down
20 changes: 16 additions & 4 deletions components/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
SwipeableDrawer,
ListItem,
} from "@material-ui/core";
import NextLink from "next/link";
import { JumboThemeProvider } from "hooks/themes";
import Link from "components/link";
import { useRouter } from "next/router";
Expand Down Expand Up @@ -133,7 +132,9 @@ export default function Navbar({
<GithubOriginalIcon color="white" />
</IconButton>
{menu.map((item) => (
<Button key={item.name} href={item.href} target={item.target}>{item.name}</Button>
<Button key={item.name} href={item.href} target={item.target}>
{item.name}
</Button>
))}
</div>
)}
Expand All @@ -152,13 +153,24 @@ export default function Navbar({
</ListItem>
{menu.map((item) => (
<MenuItem key={item.name}>
<Button href={item.href} target={item.target} className={classes.sidebarLink}>
<Button
href={item.href}
target={item.target}
className={classes.sidebarLink}
>
{item.name}
</Button>
</MenuItem>
))}
<MenuItem>
<a className={classes.unstyledLink} href="https://github.com/TheAlgorithms" target="_blank" rel="noreferrer">GitHub</a>
<a
className={classes.unstyledLink}
href="https://github.com/TheAlgorithms"
target="_blank"
rel="noreferrer"
>
GitHub
</a>
</MenuItem>
<MenuItem onClick={() => switchTheme()}>
{darkTheme ? t("lightModeNavbar") : t("darkModeNavbar")}
Expand Down
16 changes: 11 additions & 5 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,17 @@ export default function Home({
rel="noreferrer"
aria-label={t("X")}
>
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512" version="1.1">
<g id="surface1">
<path d="M 304.757812 217.003906 L 495.394531 0 L 450.234375 0 L 284.636719 188.382812 L 152.472656 0 L 0 0 L 199.902344 284.894531 L 0 512.425781 L 45.160156 512.425781 L 219.921875 313.445312 L 359.527344 512.425781 L 512 512.425781 M 61.457031 33.347656 L 130.832031 33.347656 L 450.203125 480.71875 L 380.808594 480.71875 "/>
</g>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
>
<g id="surface1">
<path d="M 304.757812 217.003906 L 495.394531 0 L 450.234375 0 L 284.636719 188.382812 L 152.472656 0 L 0 0 L 199.902344 284.894531 L 0 512.425781 L 45.160156 512.425781 L 219.921875 313.445312 L 359.527344 512.425781 L 512 512.425781 M 61.457031 33.347656 L 130.832031 33.347656 L 450.203125 480.71875 L 380.808594 480.71875 " />
</g>
</svg>
</IconButton>
</Card>
</Tooltip>
Expand Down
5 changes: 3 additions & 2 deletions scripts/fetch-algorithms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ const categoriesToSkip = ["main", "src", "algorithms", "problems"];
if (match) {
const algorithm = algorithms[normalizeAlgorithm(match[1])];
if (algorithm) {
algorithm.explanationUrl[locale.code] =
`https://github.com/TheAlgorithms/Algorithms-Explanation/tree/master/${dir}`;
algorithm.explanationUrl[
locale.code
] = `https://github.com/TheAlgorithms/Algorithms-Explanation/tree/master/${dir}`;
algorithm.body[locale.code] = await renderMarkdown(
(await fs.promises.readFile(dir))
.toString()
Expand Down

1 comment on commit 872b8ee

@vercel
Copy link

@vercel vercel bot commented on 872b8ee Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

website – ./

website-git-main-thealgorithms.vercel.app
the-algorithms.com
website-thealgorithms.vercel.app

Please sign in to comment.