Skip to content

Commit

Permalink
package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed May 23, 2021
1 parent 01b1941 commit f1a6384
Show file tree
Hide file tree
Showing 13 changed files with 7,172 additions and 9,350 deletions.
1 change: 0 additions & 1 deletion content/articles/2020-05-22-gatsby-redirect-from/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ redirect_from:
- /2008/04/aperture-file-types/
# note: trailing slashes are required
---

```

## Default Query
Expand Down
1 change: 1 addition & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './src/global/global.css'
import './src/global/imports.css'

import wrapPageElementWithLayout from './src/helpers/wrapPageElement'
export const wrapPageElement = wrapPageElementWithLayout
Expand Down
1 change: 0 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = {
options: {
excerpt_separator: '<!-- more -->',
plugins: [
'gatsby-remark-breaks',
{
resolve: 'gatsby-remark-images',
options: {
Expand Down
16,361 changes: 7,101 additions & 9,260 deletions package-lock.json

Large diffs are not rendered by default.

105 changes: 52 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,45 +28,44 @@
"not op_mini all"
],
"dependencies": {
"@ethersproject/providers": "^5.0.24",
"@ethersproject/units": "^5.0.11",
"@loadable/component": "^5.14.1",
"@ethersproject/providers": "^5.2.0",
"@ethersproject/units": "^5.2.0",
"@loadable/component": "^5.15.0",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"classnames": "^2.2.6",
"date-fns": "^2.19.0",
"classnames": "^2.3.1",
"date-fns": "^2.21.3",
"dms2dec": "^1.1.0",
"ethereum-blockies": "github:MyEtherWallet/blockies",
"fast-exif": "^1.0.1",
"feather-icons": "^4.28.0",
"fraction.js": "^4.0.13",
"gatsby": "^3.1.1",
"gatsby-plugin-catch-links": "^3.1.0",
"gatsby-plugin-feed": "^3.1.0",
"gatsby-plugin-image": "^1.1.1",
"fraction.js": "^4.1.0",
"gatsby": "^3.5.1",
"gatsby-plugin-catch-links": "^3.5.0",
"gatsby-plugin-feed": "^3.5.0",
"gatsby-plugin-image": "^1.5.0",
"gatsby-plugin-lunr": "^1.5.2",
"gatsby-plugin-manifest": "^3.1.0",
"gatsby-plugin-matomo": "^0.9.0",
"gatsby-plugin-manifest": "^3.5.0",
"gatsby-plugin-matomo": "^0.10.0",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^4.1.0",
"gatsby-plugin-react-helmet": "^4.1.0",
"gatsby-plugin-sharp": "^3.1.1",
"gatsby-plugin-sitemap": "^3.1.0",
"gatsby-plugin-offline": "^4.5.1",
"gatsby-plugin-react-helmet": "^4.5.0",
"gatsby-plugin-sharp": "^3.5.0",
"gatsby-plugin-sitemap": "^4.1.0",
"gatsby-plugin-svgr": "^3.0.0-beta.0",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.21",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.22",
"gatsby-plugin-webpack-size": "^2.0.1",
"gatsby-redirect-from": "^0.3.0",
"gatsby-remark-autolink-headers": "^3.1.0",
"gatsby-remark-breaks": "^1.0.0",
"gatsby-remark-copy-linked-files": "^3.1.0",
"gatsby-remark-images": "^4.1.0",
"gatsby-redirect-from": "^0.4.1",
"gatsby-remark-autolink-headers": "^4.2.0",
"gatsby-remark-copy-linked-files": "^4.2.1",
"gatsby-remark-images": "^5.2.1",
"gatsby-remark-images-medium-zoom": "^1.7.0",
"gatsby-remark-smartypants": "^3.1.0",
"gatsby-remark-smartypants": "^4.2.0",
"gatsby-remark-vscode": "^3.2.1",
"gatsby-source-filesystem": "^3.1.0",
"gatsby-source-graphql": "^3.1.0",
"gatsby-transformer-remark": "^3.1.0",
"gatsby-transformer-sharp": "^3.1.0",
"gatsby-source-filesystem": "^3.5.0",
"gatsby-source-graphql": "^3.5.0",
"gatsby-transformer-remark": "^4.2.0",
"gatsby-transformer-sharp": "^3.5.0",
"node-fetch": "^2.6.1",
"nord-visual-studio-code": "github:arcticicestudio/nord-visual-studio-code",
"pigeon-maps": "^0.19.5",
Expand All @@ -76,55 +75,55 @@
"react-dom": "^17.0.2",
"react-feather": "^2.0.9",
"react-helmet": "^6.1.0",
"react-qr-svg": "^2.3.0",
"react-qr-svg": "^2.4.0",
"react-transition-group": "^4.4.1",
"remark": "^13.0.0",
"remark-react": "^8.0.0",
"slugify": "^1.5.0"
"slugify": "^1.5.3"
},
"devDependencies": {
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@types/classnames": "^2.2.11",
"@types/fs-extra": "^9.0.8",
"@types/jest": "^26.0.21",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.7",
"@types/classnames": "^2.3.1",
"@types/fs-extra": "^9.0.11",
"@types/jest": "^26.0.23",
"@types/loadable__component": "^5.13.3",
"@types/lunr": "^2.3.3",
"@types/node": "^14.14.35",
"@types/node-fetch": "^2.5.8",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"@types/react-helmet": "^6.1.0",
"@types/react-transition-group": "^4.4.0",
"@types/node": "^15.6.0",
"@types/node-fetch": "^2.5.10",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/react-helmet": "^6.1.1",
"@types/react-transition-group": "^4.4.1",
"@types/shortid": "^0.0.29",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@welldone-software/why-did-you-render": "^6.1.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@welldone-software/why-did-you-render": "^6.1.4",
"eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-testing-library": "^3.10.2",
"fs-extra": "^9.1.0",
"fs-extra": "^10.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"markdownlint-cli": "^0.27.1",
"node-iptc": "^1.0.5",
"npm-run-all": "^4.1.5",
"ora": "^5.4.0",
"postcss": "^8.2.8",
"prettier": "^2.2.1",
"postcss": "^8.3.0",
"prettier": "^2.3.0",
"shortid": "^2.2.16",
"stylelint": "^13.12.0",
"stylelint": "^13.13.1",
"stylelint-config-css-modules": "^2.2.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^21.0.0",
"stylelint-config-standard": "^22.0.0",
"stylelint-prettier": "^1.2.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.3",
"typescript": "^4.2.4",
"typescript-plugin-css-modules": "^3.2.0"
},
"repository": {
Expand Down
11 changes: 2 additions & 9 deletions src/components/atoms/Exif.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,8 @@ const ExifData = ({
)

export default function Exif({ exif }: { exif: ExifMeta }): ReactElement {
const {
iso,
model,
fstop,
shutterspeed,
focalLength,
exposure,
gps
} = exif.formatted
const { iso, model, fstop, shutterspeed, focalLength, exposure, gps } =
exif.formatted

return (
<aside className={styleExif}>
Expand Down
14 changes: 5 additions & 9 deletions src/components/atoms/ExifMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ import { Map } from 'pigeon-maps'
import Marker from 'pigeon-marker'
import useDarkMode from '../../hooks/useDarkMode'

const mapbox = (mapboxId: string) => (
x: string,
y: string,
z: string,
dpr?: number
) =>
`https://api.mapbox.com/styles/v1/mapbox/${mapboxId}/tiles/256/${z}/${x}/${y}${
dpr >= 2 ? '@2x' : ''
}?access_token=${process.env.GATSBY_MAPBOX_ACCESS_TOKEN}`
const mapbox =
(mapboxId: string) => (x: string, y: string, z: string, dpr?: number) =>
`https://api.mapbox.com/styles/v1/mapbox/${mapboxId}/tiles/256/${z}/${x}/${y}${
dpr >= 2 ? '@2x' : ''
}?access_token=${process.env.GATSBY_MAPBOX_ACCESS_TOKEN}`

const providers = {
light: mapbox('light-v10'),
Expand Down
9 changes: 2 additions & 7 deletions src/components/molecules/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@ export default function Pagination({
}: {
pageContext: PageContext
}): ReactElement {
const {
slug,
currentPageNumber,
numPages,
prevPagePath,
nextPagePath
} = pageContext
const { slug, currentPageNumber, numPages, prevPagePath, nextPagePath } =
pageContext
const isFirst = currentPageNumber === 1
const isLast = currentPageNumber === numPages

Expand Down
6 changes: 3 additions & 3 deletions src/components/molecules/Web3Donation/Alert.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { ReactElement } from 'react'
import { success, error, alert } from './Alert.module.css'

export function getTransactionMessage(
transactionHash?: string
): { [key: string]: string } {
export function getTransactionMessage(transactionHash?: string): {
[key: string]: string
} {
return {
transaction: `<a href="https://etherscan.io/tx/${transactionHash}" target="_blank">See your transaction on etherscan.io.</a>`,
waitingForUser: 'Waiting for your confirmation',
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/Archive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function Archive({
}

export const archiveQuery = graphql`
query($tag: String, $skip: Int, $limit: Int) {
query ($tag: String, $skip: Int, $limit: Int) {
allMarkdownRemark(
filter: {
fields: { type: { nin: "photo" } }
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/Photos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function Photos(props: PhotosPageProps): ReactElement {
}

export const photosQuery = graphql`
query($skip: Int, $limit: Int) {
query ($skip: Int, $limit: Int) {
allMarkdownRemark(
filter: { fields: { type: { eq: "photo" } } }
sort: { order: DESC, fields: [fields___date] }
Expand Down
5 changes: 0 additions & 5 deletions src/global/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,6 @@ td {
/* More basic elements
///////////////////////////////////// */

@import '_buttons';
@import '_code.css';
@import '_toast.css';
@import '_alerts.css';

.medium-zoom-overlay {
background-color: var(--body-background-color) !important;
}
Expand Down
4 changes: 4 additions & 0 deletions src/global/imports.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import '_buttons';
@import '_code.css';
@import '_toast.css';
@import '_alerts.css';

0 comments on commit f1a6384

Please sign in to comment.