Skip to content

Commit cff6e28

Browse files
authored
Merge pull request #13 from CodeDead/release/v1.0.2
Release/v1.0.2
2 parents 655c593 + 35f64a9 commit cff6e28

File tree

67 files changed

+6654
-8395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+6654
-8395
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
public
44
gatsby-browser.js
55
gatsby-ssr.js
6+
yarn.lock

.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@
1111
"ecmaFeatures": {
1212
"jsx": true
1313
},
14-
"ecmaVersion": 12,
14+
"ecmaVersion": 13,
1515
"sourceType": "module"
1616
},
1717
"plugins": [
1818
"react"
1919
],
2020
"rules": {
21+
"react/function-component-definition": [
22+
2,
23+
{
24+
"namedComponents": "arrow-function",
25+
"unnamedComponents": "arrow-function"
26+
}
27+
],
2128
"react/prop-types": 0
2229
}
2330
}
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:"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]}}};
1+
module.exports={name:"yarn-up-all-plugin",factory:a=>{const{Configuration:b,Project:c}=a("@yarnpkg/core"),{Cli:d,Command:e,Option:f}=a("clipanion"),g=a("@yarnpkg/plugin-essentials"),h=a("typanion"),i=(a,b)=>a?`@${a}/${b}`:b,j=(a,b)=>{const c=[...a.values()];return b?c.filter(a=>{const c=i(a[1].scope,a[1].name);return!b.includes(c)}):c};class k extends e{constructor(){super(),this.exclude=f.String("-e,--exclude",{validator:h.isString()})}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],h=j(f,this.exclude?this.exclude.split(" "):null),k=h.map(a=>i(a[1].scope,a[1].name)),l=d.from(g.default.commands);return l.runExit(["up",...k],this.context)}}return k.paths=[["up-all"]],k.usage={category:"Utilities",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. You can exclude certain dependencies from being upgraded by using the `-e,--exclude` option.",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 a single dependency","yarn up-all -e package"],["Upgrade all dependencies but exclude multiple dependencies","yarn up-all --exclude \"package1 package2\""]]},{commands:[k]}}};

.yarn/releases/yarn-2.4.2.cjs

Lines changed: 0 additions & 55 deletions
This file was deleted.

.yarn/releases/yarn-3.1.1.cjs

Lines changed: 768 additions & 0 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.5/index.js"
5+
spec: "https://github.com/e5mode/yarn-up-all/releases/download/1.1.0/index.js"
66

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ yarn build
2323

2424
## About
2525

26-
This website is maintained by CodeDead.
26+
This website is maintained by [CodeDead](https://codedead.com).
2727

2828
Copyright © 2021 CodeDead

gatsby-config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ module.exports = {
1414
author: 'CodeDead',
1515
github: 'https://github.com/CodeDead',
1616
twitter: 'https://twitter.com/C0DEDEAD',
17-
reddit: 'https://reddit.com/r/CodeDead/',
1817
facebook: 'https://facebook.com/deadlinecodedead',
1918
},
2019
plugins: [
20+
'gatsby-theme-material-ui',
2121
{
2222
resolve: 'gatsby-source-filesystem',
2323
options: {
@@ -60,7 +60,6 @@ module.exports = {
6060
'gatsby-plugin-catch-links',
6161
'gatsby-plugin-react-helmet',
6262
'gatsby-transformer-remark',
63-
'gatsby-theme-material-ui',
6463
'gatsby-plugin-sitemap',
6564
'gatsby-plugin-robots-txt',
6665
'gatsby-plugin-image',

package.json

Lines changed: 27 additions & 24 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.1",
5+
"version": "1.0.2",
66
"license": "0BSD",
77
"scripts": {
88
"build": "gatsby build",
@@ -14,39 +14,42 @@
1414
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
1515
},
1616
"dependencies": {
17-
"@material-ui/core": "^4.11.4",
18-
"@material-ui/icons": "^4.11.2",
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",
17+
"@emotion/react": "^11.7.1",
18+
"@emotion/styled": "^11.6.0",
19+
"@mui/icons-material": "^5.2.5",
20+
"@mui/material": "^5.2.8",
21+
"axios": "^0.24.0",
22+
"gatsby": "^4.5.3",
23+
"gatsby-plugin-catch-links": "^4.5.0",
24+
"gatsby-plugin-google-gtag": "^4.5.0",
25+
"gatsby-plugin-image": "^2.5.2",
26+
"gatsby-plugin-react-helmet": "^5.5.0",
27+
"gatsby-plugin-robots-txt": "^1.7.0",
28+
"gatsby-plugin-sharp": "^4.5.2",
29+
"gatsby-plugin-sitemap": "^5.5.0",
30+
"gatsby-remark-images": "^6.5.2",
31+
"gatsby-source-filesystem": "^4.5.2",
32+
"gatsby-theme-material-ui": "^5.1.0",
33+
"gatsby-transformer-remark": "^5.5.2",
34+
"gatsby-transformer-sharp": "^4.5.0",
3335
"react": "^17.0.2",
3436
"react-dom": "^17.0.2",
3537
"react-helmet": "^6.1.0"
3638
},
3739
"devDependencies": {
38-
"eslint": "^7.28.0",
39-
"eslint-config-airbnb": "^18.2.1",
40-
"eslint-plugin-import": "^2.23.4",
41-
"eslint-plugin-jsx-a11y": "^6.4.1",
42-
"eslint-plugin-react": "^7.24.0",
43-
"eslint-plugin-react-hooks": "^4.2.0"
40+
"eslint": "^8.7.0",
41+
"eslint-config-airbnb": "^19.0.4",
42+
"eslint-plugin-import": "^2.25.4",
43+
"eslint-plugin-jsx-a11y": "^6.5.1",
44+
"eslint-plugin-react": "^7.28.0",
45+
"eslint-plugin-react-hooks": "^4.3.0"
4446
},
4547
"repository": {
4648
"type": "git",
4749
"url": "https://github.com/CodeDead/codedead.com"
4850
},
4951
"bugs": {
5052
"url": "https://github.com/CodeDead/codedead.com/issues"
51-
}
53+
},
54+
"packageManager": "[email protected]"
5255
}

src/components/AlertDialog/index.jsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { useState } from 'react';
2-
import DialogTitle from '@material-ui/core/DialogTitle';
3-
import DialogContent from '@material-ui/core/DialogContent';
4-
import DialogContentText from '@material-ui/core/DialogContentText';
5-
import DialogActions from '@material-ui/core/DialogActions';
6-
import Button from '@material-ui/core/Button';
7-
import Dialog from '@material-ui/core/Dialog';
2+
import DialogTitle from '@mui/material/DialogTitle';
3+
import DialogContent from '@mui/material/DialogContent';
4+
import DialogContentText from '@mui/material/DialogContentText';
5+
import DialogActions from '@mui/material/DialogActions';
6+
import Button from '@mui/material/Button';
7+
import Dialog from '@mui/material/Dialog';
88

99
const AlertDialog = ({
1010
title, content, ok, onClose,
@@ -28,9 +28,7 @@ const AlertDialog = ({
2828
>
2929
<DialogTitle id="alert-dialog-title">{title}</DialogTitle>
3030
<DialogContent>
31-
<DialogContentText id="alert-dialog-description">
32-
{content}
33-
</DialogContentText>
31+
{content}
3432
</DialogContent>
3533
<DialogActions>
3634
<Button onClick={handleClose} color="primary" autoFocus>

0 commit comments

Comments
 (0)