Skip to content

Commit 8275825

Browse files
committed
Upgraded to gatsby 5, fixed an issue with trailing slashes
1 parent b396f96 commit 8275825

27 files changed

Lines changed: 1245 additions & 1458 deletions

File tree

Lines changed: 280 additions & 274 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-3.2.4.cjs
3+
yarnPath: .yarn/releases/yarn-3.3.0.cjs

gatsby-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const path = require('path');
77

88
module.exports = {
99
polyfill: false,
10+
trailingSlash: 'ignore',
1011
siteMetadata: {
1112
title: 'CodeDead',
1213
description: 'Solving problems using code',
@@ -35,6 +36,8 @@ module.exports = {
3536
{
3637
resolve: 'gatsby-transformer-remark',
3738
options: {
39+
footnotes: true,
40+
gfm: true,
3841
plugins: [
3942
{
4043
resolve: 'gatsby-remark-images',

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,32 @@
1616
"dependencies": {
1717
"@emotion/react": "^11.10.5",
1818
"@emotion/styled": "^11.10.5",
19-
"@mui/icons-material": "^5.10.9",
20-
"@mui/material": "^5.10.12",
19+
"@mui/icons-material": "^5.10.14",
20+
"@mui/material": "^5.10.14",
2121
"axios": "^1.1.3",
22-
"gatsby": "^4.24.7",
23-
"gatsby-plugin-catch-links": "^4.24.0",
24-
"gatsby-plugin-google-gtag": "^4.24.0",
25-
"gatsby-plugin-image": "^2.24.0",
26-
"gatsby-plugin-react-helmet": "^5.24.0",
27-
"gatsby-plugin-robots-txt": "^1.7.1",
28-
"gatsby-plugin-sharp": "^4.24.0",
29-
"gatsby-plugin-sitemap": "^5.24.0",
30-
"gatsby-remark-images": "^6.24.0",
31-
"gatsby-source-filesystem": "^4.24.0",
22+
"gatsby": "^5.0.1",
23+
"gatsby-plugin-catch-links": "^5.0.0",
24+
"gatsby-plugin-google-gtag": "^5.0.0",
25+
"gatsby-plugin-image": "^3.0.0",
26+
"gatsby-plugin-react-helmet": "^6.0.0",
27+
"gatsby-plugin-robots-txt": "^1.8.0",
28+
"gatsby-plugin-sharp": "^5.0.0",
29+
"gatsby-plugin-sitemap": "^6.0.0",
30+
"gatsby-remark-images": "^7.0.0",
31+
"gatsby-source-filesystem": "^5.0.0",
3232
"gatsby-theme-material-ui": "^5.3.0",
33-
"gatsby-transformer-remark": "^5.24.0",
34-
"gatsby-transformer-sharp": "^4.24.0",
33+
"gatsby-transformer-remark": "^6.0.0",
34+
"gatsby-transformer-sharp": "^5.0.0",
3535
"react": "^18.2.0",
3636
"react-dom": "^18.2.0",
3737
"react-helmet": "^6.1.0"
3838
},
3939
"devDependencies": {
40-
"eslint": "^8.26.0",
40+
"eslint": "^8.27.0",
4141
"eslint-config-airbnb": "^19.0.4",
4242
"eslint-plugin-import": "^2.26.0",
4343
"eslint-plugin-jsx-a11y": "^6.6.1",
44-
"eslint-plugin-react": "^7.31.10",
44+
"eslint-plugin-react": "^7.31.11",
4545
"eslint-plugin-react-hooks": "^4.6.0"
4646
},
4747
"repository": {
@@ -51,5 +51,5 @@
5151
"bugs": {
5252
"url": "https://github.com/CodeDead/codedead.com/issues"
5353
},
54-
"packageManager": "yarn@3.2.4"
54+
"packageManager": "yarn@3.3.0"
5555
}

src/components/AlertDialog/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState } from 'react';
22
import DialogTitle from '@mui/material/DialogTitle';
33
import DialogContent from '@mui/material/DialogContent';
4-
import DialogContentText from '@mui/material/DialogContentText';
54
import DialogActions from '@mui/material/DialogActions';
65
import Button from '@mui/material/Button';
76
import Dialog from '@mui/material/Dialog';

src/pages/about/index.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ const AboutPage = () => {
5151
<Grid item xs={12} md={12} lg={12}>
5252
<Typography variant="h5" color="textPrimary">
5353
<InfoIcon color="inherit" />
54-
{' '}
55-
General
54+
{' General'}
5655
</Typography>
5756
</Grid>
5857
<Grid item xs={12} md={12} lg={12}>
@@ -85,8 +84,7 @@ const AboutPage = () => {
8584
<Grid item xs={12} md={12} lg={12}>
8685
<Typography variant="h5" color="textPrimary">
8786
<GroupIcon color="inherit" />
88-
{' '}
89-
Team
87+
{' Team'}
9088
</Typography>
9189
</Grid>
9290
<Grid item xs={12} md={12} lg={12}>
@@ -155,8 +153,7 @@ const AboutPage = () => {
155153
<SvgIcon color="inherit">
156154
<GitHubIcon />
157155
</SvgIcon>
158-
{' '}
159-
Open Source
156+
{' Open Source'}
160157
</Typography>
161158
</Grid>
162159
<Grid item xs={12} md={12} lg={12}>

src/pages/blog/index.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ const Blog = () => {
2020

2121
const { allMarkdownRemark } = useStaticQuery(graphql`
2222
query {
23-
allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___date] }) {
24-
edges {
25-
node {
26-
frontmatter {
27-
path
28-
title
29-
date(formatString: "MMMM DD, YYYY")
30-
abstract
31-
}
23+
allMarkdownRemark(sort: {frontmatter: {date: DESC}}) {
24+
edges {
25+
node {
26+
frontmatter {
27+
path
28+
title
29+
date(formatString: "MMMM DD, YYYY")
30+
abstract
3231
}
3332
}
3433
}
35-
}`);
34+
}
35+
}`);
3636

3737
/**
3838
* Go to the next slice of blog posts

src/pages/donate/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ const Donate = () => {
151151
<Grid item xs={12} md={12} lg={12}>
152152
<Typography variant="h5" color="textPrimary">
153153
<AccountBalanceIcon color="inherit" />
154-
{' '}
155-
Hall of fame
154+
{' Hall of fame'}
156155
</Typography>
157156
</Grid>
158157
<Grid item xs={12} md={12} lg={12}>

src/pages/index.jsx

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,34 @@ import BlogList from '../components/BlogList';
2222
const Home = () => {
2323
const data = useStaticQuery(graphql`
2424
query {
25-
allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___date] }, limit: 1) {
26-
edges {
27-
node {
28-
frontmatter {
29-
path
30-
title
31-
date(formatString: "MMMM DD, YYYY")
32-
abstract
33-
}
25+
allMarkdownRemark(sort: {frontmatter: {date: DESC}}, limit: 1) {
26+
edges {
27+
node {
28+
frontmatter {
29+
path
30+
title
31+
date(formatString: "MMMM DD, YYYY")
32+
abstract
3433
}
3534
}
36-
},
37-
deadhash: file(relativePath: { eq: "DeadHash/DeadHash.png" }) {
38-
childImageSharp {
39-
gatsbyImageData(layout: FULL_WIDTH)
40-
}
41-
},
42-
memplus: file(relativePath: { eq: "MemPlus/memplus.png" }) {
43-
childImageSharp {
44-
gatsbyImageData(layout: FULL_WIDTH)
45-
}
46-
},
47-
opal: file(relativePath: { eq: "Opal/Opal.png" }) {
48-
childImageSharp {
49-
gatsbyImageData(layout: FULL_WIDTH)
50-
}
51-
}
52-
}`);
35+
}
36+
}
37+
deadhash: file(relativePath: {eq: "DeadHash/DeadHash.png"}) {
38+
childImageSharp {
39+
gatsbyImageData(layout: FULL_WIDTH)
40+
}
41+
}
42+
memplus: file(relativePath: {eq: "MemPlus/memplus.png"}) {
43+
childImageSharp {
44+
gatsbyImageData(layout: FULL_WIDTH)
45+
}
46+
}
47+
opal: file(relativePath: {eq: "Opal/Opal.png"}) {
48+
childImageSharp {
49+
gatsbyImageData(layout: FULL_WIDTH)
50+
}
51+
}
52+
}`);
5353

5454
const [, dispatch] = useContext(MainContext);
5555

@@ -65,8 +65,7 @@ const Home = () => {
6565
<Grid item xs={12} md={12} lg={12}>
6666
<Typography variant="h5" color="textPrimary">
6767
<BuildIcon color="inherit" />
68-
{' '}
69-
Highlighted tools
68+
{' Highlighted tools'}
7069
</Typography>
7170
</Grid>
7271
<Grid item xs={12} md={12} lg={12}>

src/pages/software/advanced-portchecker/index.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ const AdvancedPortCheckerPage = () => {
5050
<Grid item xs={12} md={12} lg={12}>
5151
<Typography variant="h5" color="textPrimary">
5252
<InfoIcon color="inherit" />
53-
{' '}
54-
General
53+
{' General'}
5554
</Typography>
5655
</Grid>
5756
<Grid item xs={12} md={12} lg={12}>
@@ -139,8 +138,7 @@ const AdvancedPortCheckerPage = () => {
139138
<Grid item xs={12} md={12} lg={12}>
140139
<Typography variant="h5" color="textPrimary">
141140
<GetAppIcon color="inherit" />
142-
{' '}
143-
Download
141+
{' Download'}
144142
</Typography>
145143
</Grid>
146144
<Grid item xs={12} md={12} lg={12}>
@@ -195,8 +193,7 @@ const AdvancedPortCheckerPage = () => {
195193
<Grid item xs={12} md={12} lg={12}>
196194
<Typography variant="h5" color="textPrimary">
197195
<FormatQuoteIcon color="inherit" />
198-
{' '}
199-
What others say
196+
{' What others say'}
200197
</Typography>
201198
</Grid>
202199
<Grid item xs={12} md={12} lg={12}>

0 commit comments

Comments
 (0)