Skip to content

Commit 655c593

Browse files
authored
Merge pull request #9 from CodeDead/release/1.0.1
Release/1.0.1
2 parents ef28d3f + 94afee0 commit 655c593

File tree

35 files changed

+5941
-5248
lines changed

35 files changed

+5941
-5248
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"env": {
33
"browser": true,
4-
"es2020": true
4+
"es2021": true
55
},
66
"extends": [
77
"plugin:react/recommended",
@@ -11,7 +11,7 @@
1111
"ecmaFeatures": {
1212
"jsx": true
1313
},
14-
"ecmaVersion": 11,
14+
"ecmaVersion": 12,
1515
"sourceType": "module"
1616
},
1717
"plugins": [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports={name:"yarn-up-all-plugin",factory:a=>{const{Configuration:b,Project:c}=a("@yarnpkg/core"),{Cli:d,Command:e}=a("clipanion"),f=a("yup"),g=a("@yarnpkg/plugin-essentials"),h=(a,b)=>a?`@${a}/${b}`:b,i=(a,b)=>{const c=[...a.values()];return b?c.filter(a=>{const c=h(a[1].scope,a[1].name);return!b.includes(c)}):c};class j extends e{async execute(){if(!g.default.commands)throw new Error("Yarn commands are not available!");const a=await b.find(this.context.cwd,this.context.plugins),{workspace:e}=await c.find(a,this.context.cwd),f=[...e.manifest.dependencies,...e.manifest.devDependencies],j=i(f,this.exclude?this.exclude.split(" "):null),k=j.map(a=>h(a[1].scope,a[1].name)),l=d.from(g.default.commands);return l.runExit(["up",...k],this.context)}}return j.addOption("exclude",e.String("--exclude")),j.addPath("up-all"),j.schema=f.object().shape({exclude:f.string()}),j.usage=e.Usage({description:"Yarn2 plugin that will upgrade all dependencies to their latest version with one simple command",details:"This command will upgrade all dependencies to their latest version",examples:[["Upgrade all dependencies","yarn up-all"],["Upgrade all dependencies but exclude a single dependency","yarn up-all --exclude react-dom"],["Upgrade all dependencies but exclude multiple dependencies","yarn up-all --exclude \"react-dom react-router\""]]}),{commands:[j]}}};
1+
module.exports={name:"yarn-up-all-plugin",factory:a=>{const{Configuration:b,Project:c}=a("@yarnpkg/core"),{Cli:d,Command:e}=a("clipanion"),f=a("yup"),g=a("@yarnpkg/plugin-essentials"),h=(a,b)=>a?`@${a}/${b}`:b,i=(a,b)=>{const c=[...a.values()];return b?c.filter(a=>{const c=h(a[1].scope,a[1].name);return!b.includes(c)}):c};class j extends e{async execute(){if(!g.default.commands)throw new Error("Yarn commands are not available!");const a=await b.find(this.context.cwd,this.context.plugins),{workspace:e}=await c.find(a,this.context.cwd),f=[...e.manifest.dependencies,...e.manifest.devDependencies],j=i(f,this.exclude?this.exclude.split(" "):null),k=j.map(a=>h(a[1].scope,a[1].name)),l=d.from(g.default.commands);return l.runExit(["up",...k],this.context)}}return j.addOption("exclude",e.String("--exclude")),j.addPath("up-all"),j.schema=f.object().shape({exclude:f.string()}),j.usage=e.Usage({description:"Yarn 2 plugin that will upgrade all dependencies to their latest version with one simple command",details:"This command will upgrade all dependencies to their latest version",examples:[["Upgrade all dependencies","yarn up-all"],["Upgrade all dependencies but exclude a single dependency","yarn up-all --exclude package"],["Upgrade all dependencies but exclude multiple dependencies","yarn up-all --exclude \"package1 package2\""]]}),{commands:[j]}}};

.yarn/releases/yarn-2.4.0.cjs renamed to .yarn/releases/yarn-2.4.2.cjs

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

.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ nodeLinker: node-modules
22

33
plugins:
44
- path: .yarn/plugins/yarn-up-all-plugin.cjs
5-
spec: "https://github.com/e5mode/yarn-up-all/releases/download/1.0.3/index.js"
5+
spec: "https://github.com/e5mode/yarn-up-all/releases/download/1.0.5/index.js"
66

7-
yarnPath: .yarn/releases/yarn-2.4.0.cjs
7+
yarnPath: .yarn/releases/yarn-2.4.2.cjs

gatsby-config.js

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

88
module.exports = {
99
polyfill: false,
10-
/* Your site config here */
1110
siteMetadata: {
1211
title: 'CodeDead',
1312
description: 'Solving problems using code',
@@ -58,11 +57,14 @@ module.exports = {
5857
},
5958
},
6059
},
60+
'gatsby-plugin-catch-links',
6161
'gatsby-plugin-react-helmet',
6262
'gatsby-transformer-remark',
6363
'gatsby-theme-material-ui',
64-
'gatsby-transformer-sharp',
65-
'gatsby-plugin-sharp',
6664
'gatsby-plugin-sitemap',
65+
'gatsby-plugin-robots-txt',
66+
'gatsby-plugin-image',
67+
'gatsby-plugin-sharp',
68+
'gatsby-transformer-sharp',
6769
],
6870
};

package.json

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "codedead.com",
33
"private": true,
44
"description": "CodeDead Website",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"license": "0BSD",
77
"scripts": {
88
"build": "gatsby build",
@@ -14,35 +14,39 @@
1414
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
1515
},
1616
"dependencies": {
17-
"@material-ui/core": "^4.11.3",
17+
"@material-ui/core": "^4.11.4",
1818
"@material-ui/icons": "^4.11.2",
19-
"@material-ui/lab": "^4.0.0-alpha.57",
20-
"gatsby": "^2.31.1",
21-
"gatsby-image": "^2.10.0",
22-
"gatsby-plugin-google-gtag": "^2.7.0",
23-
"gatsby-plugin-sharp": "^2.13.4",
24-
"gatsby-plugin-sitemap": "^2.11.0",
25-
"gatsby-remark-images": "^3.10.0",
26-
"gatsby-source-filesystem": "^2.10.0",
27-
"gatsby-theme-material-ui": "^1.0.13",
28-
"gatsby-transformer-remark": "^2.15.0",
29-
"gatsby-transformer-sharp": "^2.11.0",
30-
"react": "^17.0.1",
31-
"react-dom": "^17.0.1",
19+
"@material-ui/lab": "^4.0.0-alpha.58",
20+
"axios": "^0.21.1",
21+
"gatsby": "^3.6.2",
22+
"gatsby-plugin-catch-links": "^3.6.0",
23+
"gatsby-plugin-google-gtag": "^3.6.0",
24+
"gatsby-plugin-image": "^1.6.0",
25+
"gatsby-plugin-robots-txt": "^1.6.2",
26+
"gatsby-plugin-sharp": "^3.6.0",
27+
"gatsby-plugin-sitemap": "^4.2.0",
28+
"gatsby-remark-images": "^5.3.0",
29+
"gatsby-source-filesystem": "^3.6.0",
30+
"gatsby-theme-material-ui": "^2.0.1",
31+
"gatsby-transformer-remark": "^4.3.0",
32+
"gatsby-transformer-sharp": "^3.6.0",
33+
"react": "^17.0.2",
34+
"react-dom": "^17.0.2",
3235
"react-helmet": "^6.1.0"
3336
},
3437
"devDependencies": {
38+
"eslint": "^7.28.0",
3539
"eslint-config-airbnb": "^18.2.1",
36-
"eslint-plugin-import": "^2.22.1",
40+
"eslint-plugin-import": "^2.23.4",
3741
"eslint-plugin-jsx-a11y": "^6.4.1",
38-
"eslint-plugin-react": "^7.22.0",
42+
"eslint-plugin-react": "^7.24.0",
3943
"eslint-plugin-react-hooks": "^4.2.0"
4044
},
4145
"repository": {
4246
"type": "git",
43-
"url": "https://github.com/gatsbyjs/gatsby-starter-hello-world"
47+
"url": "https://github.com/CodeDead/codedead.com"
4448
},
4549
"bugs": {
46-
"url": "https://github.com/gatsbyjs/gatsby/issues"
50+
"url": "https://github.com/CodeDead/codedead.com/issues"
4751
}
4852
}

src/components/Application/index.jsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import { navigate } from 'gatsby';
44
import CardContent from '@material-ui/core/CardContent';
55
import Typography from '@material-ui/core/Typography';
66
import Card from '@material-ui/core/Card';
7-
import { CardHeader } from '@material-ui/core';
7+
import { CardMedia } from '@material-ui/core';
8+
import { GatsbyImage } from 'gatsby-plugin-image';
9+
import CardHeader from '@material-ui/core/CardHeader';
810

9-
const Application = ({ name, description, url }) => {
11+
const Application = ({
12+
name, description, url, image,
13+
}) => {
1014
/**
1115
* Go to the designated URL
1216
*/
@@ -20,6 +24,11 @@ const Application = ({ name, description, url }) => {
2024
onClick={goToUrl}
2125
style={{ height: '100%' }}
2226
>
27+
<CardMedia
28+
title={name}
29+
>
30+
<GatsbyImage alt={name} image={image} style={{ width: '100%' }} />
31+
</CardMedia>
2332
<CardHeader
2433
title={name}
2534
/>

src/components/DefaultAppBar/index.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ import Typography from '@material-ui/core/Typography';
66
import IconButton from '@material-ui/core/IconButton';
77
import MenuIcon from '@material-ui/icons/Menu';
88
import { Link } from 'gatsby';
9-
import { SvgIcon } from '@material-ui/core';
10-
import NavigationDrawer from '../NavigationDrawer';
11-
import GitHubIcon from '../GithubIcon';
12-
import TwitterIcon from '../TwitterIcon';
13-
import FacebookIcon from '../FacebookIcon';
149
import Brightness5Icon from '@material-ui/icons/Brightness5';
1510
import Brightness7Icon from '@material-ui/icons/Brightness7';
11+
import NavigationDrawer from '../NavigationDrawer';
1612
import { MainContext } from '../../contexts/MainContextProvider';
1713
import { setThemeIndex } from '../../reducers/MainReducer/Actions';
1814

@@ -29,7 +25,7 @@ const useStyles = makeStyles((theme) => ({
2925
}));
3026

3127
const DefaultAppBar = ({
32-
title, githubUrl, twitterUrl, facebookUrl,
28+
title,
3329
}) => {
3430
const [state, dispatch] = useContext(MainContext);
3531

src/components/Footer/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const Footer = ({ facebookUrl, githubUrl, twitterUrl }) => {
2020
return (
2121
<BottomNavigation
2222
showLabels
23-
style={{ marginTop: 20 }}
23+
style={{
24+
position: 'fixed', bottom: 0, width: '100%',
25+
}}
2426
>
2527
<BottomNavigationAction
2628
icon={(

src/components/Layout/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const Layout = ({ children }) => {
8888
</Button>
8989
</Alert>
9090
)}
91+
<div style={{ marginBottom: 65 }} />
9192
<Footer
9293
facebookUrl={data.site.siteMetadata.facebook}
9394
githubUrl={data.site.siteMetadata.github}

0 commit comments

Comments
 (0)